cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting line item in VL02n in LE_SHP_DELIVERY_PROC

mohan_irla
Explorer
0 Kudos
1,526

Hi All!

I have to calculate rebate for each line item in vl02n.

now this i calculate in

BADI: LE_SHP_DELIVERY_PRO

Method: CHANGE_DELIVERY_ITEM

and rebate calculation for entire Document i calculate in

Method: SAVE_DOCUMENT_PREPARE

where i get Current Status of Delivery Items in CT_XLIPS

uptill now it is ok.

but i get all line item in CT_XLIPS even when user delete one line from the document. i am unable to distingsh between deleted line item.

Please advise

regards

mohan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Check for the field UPDKZ (Update indicator) in the XLIPS

structure. This should indicate if the line has been set for deletion or not.

Regards

Shounak

Answers (2)

Answers (2)

mohan_irla
Explorer
0 Kudos

hi Shounak,

One more query is can i get condition document number

in this delivary or any other function module to get pricing condition i.e. can i get KNUMV of table KONV in current structure of XLIPS

Now in XLIPS i have VGBEL which give me

SO Number(VBAK-VBELN) i get condition document number (VBAK-KNUMV) and from this i will get different condition types from KONV table, but this entire logic fails when i go for inter-company orders (Purchase order) over here i have to go to the EKKO table for KNUMV.

please can give some solution.

regards,

mohan

mohan_irla
Explorer
0 Kudos

hi Shounak Mukherjee ,

yes it really solve the probelem i tested for different batch split and line item

thanks a lot