04-06-2009 8:48 AM
Hi,
I am using BAPI_OUTB_DELIVERY_CHANGE to update deliveries, but now, a new requirement needt to update ANZPK and LIFEX fields from LIKP, but i dont find this fields in any structure/table from the BAPI.
Do you know if there are any possibility to use this BAPI to update this fields?
I have found WS_DELIVERY_UPDATE, maybe with this FM i can update this fields but i would not like to change the FM now if it is possible...
Regards,
Manel
04-06-2009 11:24 AM
04-06-2009 11:38 AM
Hi,
Yes, finally im using WS_DELIVERY_UPDATE_2 but the update for ANZPK field is not working. Do u have any idea? For LIFEX field is working. Im just filling the VBKOK_WA structure.
pwa_vbkok-vbeln_vl = wa_cabecera-deliv_numb.
pwa_vbkok-lifex = wa_cabecera-extdelv_no.
pwa_vbkok-anzpk = wa_cabecera-noshpunits.
pwa_vbkok-ntgew = wa_cabecera-net_weight.
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
VBKOK_WA = lwa_vbkok
COMMIT = ' '
DELIVERY = l_delivery.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
NTGEW field is not working too.
Any idea?
04-06-2009 12:21 PM
Hello,
Im still trying to do an update of NTGEW and ANZPK fields of a delivery. Do u have any idea?
Thx!
04-06-2009 2:36 PM
08-02-2013 3:28 PM
Good Morning...
Really,
The solution is to fill KZAPK and KZNTG fields.
Example:
CLEAR ls_vbkok.
ls_vbkok-vbeln_vl = <ls_created>-document_numb.
ls_vbkok-vbtyp_vl = <ls_created>-document_category_sd.
ls_vbkok-anzpk = id_volum.
ls_vbkok-kzapk = 'X'.
ls_vbkok-kzntg = 'X'.
ls_vbkok-wabuc = 'X'.
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = ls_vbkok
update_picking = 'X'
synchron = 'X'
commit = 'X'
delivery = <ls_created>-document_numb
IMPORTING
ef_error_any = ld_error.
04-14-2016 3:11 PM