on 03-12-2013 5:23 AM
Hi ,
I am trying to update a delivery with LFIMG and PKIMG of Outbound Delivery.
The details are like this.
Item No. Material Deliv. Qty Pick Qty
----------- ------------ ------------ ------------
000010 ABC1 10 0
000020 ABC1 20 0
000030 ABC2 5 0
000040 ABC2 15 0
000050 ABC3 7 0
000060 ABC3 8 0
From WMS, if they send total of 18 for Material ABC2. In this scenario, we'll keep 5 as LFIMG and PIKMG for Item No. 000030
and remaining 13 for PIKMG and LFIMG for Item No. 000040.
I am trying to use the FM WS_DELIVERY_UPDATE, SD_DELIVERY_UPDATE_PICKING. It didn't help me.
This is the way I am using them.
wa_vbkok-vbeln_vl = wa_vbeln.
wa_vbkok-wadat_ist = sy-datum.
wa_vbkok-vbtyp_vl = c_j.
wa_vbkok-wabuc = c_x.
wa_vbkok-komue = c_x.
wa_vbkok-kodat = <fwa_data>-zpickdt.
wa_vbkok-kouhr = <fwa_data>-zpicktm.
wa_vbkok-kzkodat = 'X'.
wa_vbpok-vbeln = <fwa_likp_lips2>-vgbel.
wa_vbpok-posnn = <fwa_likp_lips2>-vgpos.
wa_vbpok-vbeln_vl = <fwa_staging>-vbeln.
wa_vbpok-posnr_vl = <fwa_likp_lips2>-posnr.
wa_vbpok-matnr = <fwa_likp_lips2>-matnr.
wa_vbpok-pikmg = at_lfimg.
wa_vbpok-lfimg = at_lfimg.
APPEND wa_vbpok TO t_vbpok.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = fp_vbkok
COMMIT = 'X'
delivery = fp_vbeln
update_picking = c_x
if_database_update = '1'
if_error_messages_send_0 = c_x
TABLES
vbpok_tab = fp_vbpok
.
So I even tried using the method CHANGE_DELIVERY_ITEM of BADI LE_SHP_DELIVERY_PROC.
I believe I am not passing the right set of values .
Could you please help me at the earliest ?
Regards,
SP.
Did you ever manage to solve your problem?
I am also trying to update LFIMG via Change delivery item method in BADI LE_SHP_DELIVERY_PROC.
Any assistance would be greatly appreciated!
Regards
LW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.