cancel
Showing results for 
Search instead for 
Did you mean: 

Packing Material In Invoice Print

Former Member
0 Kudos

Hi,

I wat to take packing material details of each item in SD invoice print,

It is now comes in LIPS,

but I am notable to take it item wise using LIPS-VBELN = VBRP-VGBEL and LIPS-POSNR = VBRP-VGPOS and LIPS-MTART

itemdetails are taken from VBRP

(LIPS-POSNR for packing material showing a number like 90019 and

VBRP-VGPOS is 00010)

please give me guidence to solve this

Regards

Nausal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I get solution for this,

Packing Material is selected using function module

SD_PACKING_PRINT_VIEW

export a structure containing delivery document number in to this function module it return output in three tables

VBPLK_TAB

VBPLP_TAB

VBPLS_TAB

From this we used following selection at item level to get packing material and number of packing

READ TABLE vbplp_tab

into wa_vbplp_tab WITH KEY

matnr = MATNR u201CMATNR of billing line item

vgpos = POSNR. u201CPOSNR of billing line item

tvenum = wa_vbplp_tab-venum.

*----


To Find No Of Packing -


loop at vbplp_tab.

if vbplp_tab-matnr = GS_IT_GEN-material and vbplp_tab-vgpos = GS_IT_GEN-ITM_NUMBER.

NOOFPACK = NOOFPACK + 1.

endif.

endloop.

*----


READ TABLE VBPLK_TAB

into WA_VBPLK_TAB WITH KEY

venum = TVENUM.

tvhilm = WA_VBPLK_TAB-vhilm.

READ TABLE vbpls_tab

into wa_vbpls_tab WITH KEY

vhilm = tvhilm.

PACKING = wa_vbpls_tab-vebez.

NOOFPACKSTRING = NOOFPACK.

SHIFT NOOFPACKSTRING LEFT DELETING LEADING '0'. u201CUsed to remove leading zeros

Former Member
0 Kudos

I think your higher level item is linked to billing, so you are not getting subitems 9001 from LIPS as it is not directly linked to VBRP. After getting the LIPS line item 10, you can check for sub items with higher level item as 10. Put item 10 in LIPS-UEPOS and get the data of LIPS-POSNR ie 9001