Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Packaging related information is found in VEKP table Packed items information in VEPO table These tables are related

through internal HU number VENUM VEPO is related to delivery through, the delivery item that is being packaged VEPO-VBELN = Delivery number = LIKP-VBELN VEPO-POSNR = Delivery item = LIPS-POSNR VEKP-VHART indicates packaging material type which can be like Pallet, Box, Cart on etc. Allowable Packaging types are defined in table TVTY **************************************************************8 Using BAPI_HU_GETLIST You can use the BAPI BAPI_HU_GETLIST to get a list of Handling Units in terms of the unique tracking number (HU key EXIDV) on them and count them based on wheth er the packaging material is Pallet or Box Read the documentation of BAPI_HU_GETLIST Basically, execute BAPI_HU_GETLIST in SE37, make the parameter ONLYKEY blank, po pulate HUOBJECTS-OBJECT = 01 (for delivery), 04 (for shipment) and HUOBJECTS-OBJ KEY with delivery or shipment number. You will get list of keys for handling uni ts in HUKEY table, packaging header in HUHEADER table and packaging content in H UITEM table The above BAPI is the best way to query packaging on a delivery, sales doc or sh ipment but if you don't have the BAPI in your system, you can also use SQVI quer y, but it gets more detailed. Using SQVI Each handling unit (Pallet, Box etc) is uniquely identified by HU number VEKP-EX IDV. So you can count how many unique values of EXIDV are there to count the pac kages. You should distinguish between pallets and boxes, as both of them will ha ve records in VEKP and will be mapped to EXIDV (tracking number) If a packaging contains directly material contents (and no packaged contents aga in) then VEPO-VELIN = 1 if a packaging contains in turn other packaging (like pallets with cartons), the n VEPO-VELIN = 3 So VEPO items indicate the packaged content which can be the end material qty or intermediate packaging units All packaging units (Pallets, Boxes etc) will have a record in VEKP and EXIDV ge nerally indicates the tracking number on the package.

You might also like