‎2010 Dec 30 11:31 AM
Hello All,
Can anyody please tell me a fucntion module to update the fields LIKP-BTGEW and LIKP-ANZPK.
I have checked BAPI_OUTB_DELIVERY_CHANGE and WS_DELIVERY_UPDATE. Both these FMs are not having these fields.
Request you to please help me out..
Regards,
Danish.
‎2010 Dec 30 12:57 PM
Hi,
Trz with these fms.
V50I Delivery BAPIs
BAPI_INB_DELIVERY_CONFIRM_DEC BAPI for inbound delivery verification from a decentralized system
BAPI_INB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Inbound Deliveries
BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Verification from a Decentralized System
BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries
BAPI_OUTB_DELIVERY_SPLIT_DEC BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
V50R_CREA Create Delivery from Delivery Due List
BAPI_DELIVERYPROCESSING_EXEC Delivery Processing: Deliver Preceding Document, Expand Delivery *** It is very helpful for your problem
May be this is helpful
‎2010 Dec 30 12:57 PM
Hi,
Trz with these fms.
V50I Delivery BAPIs
BAPI_INB_DELIVERY_CONFIRM_DEC BAPI for inbound delivery verification from a decentralized system
BAPI_INB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Inbound Deliveries
BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Verification from a Decentralized System
BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries
BAPI_OUTB_DELIVERY_SPLIT_DEC BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
V50R_CREA Create Delivery from Delivery Due List
BAPI_DELIVERYPROCESSING_EXEC Delivery Processing: Deliver Preceding Document, Expand Delivery *** It is very helpful for your problem
May be this is helpful
‎2010 Dec 30 1:19 PM
‎2010 Dec 31 4:52 AM
Guys,
From the above mentioned function modules, I have found that 2 function modules fulfill my requirement i.e they are having the fields :
1) Total Weight
2) Total No. of Packages in delivery.
The FMs are :
1) BAPI_OUTB_DELIVERY_SAVEREPLICA
2) BAPI_INB_DELIVERY_SAVEREPLICA
I am writing a module pool program in which I am having a screen which I am having the 3 I/p fields and a button to save the data. The input fields are
1) Delivery Number 2) Total Weight 3) Total No. of Packages in delivery.
Based on the delivery Number, I need to update the total weight and the number of packages in delivery in all corresponding delivery tables using any of the function modules after clicking on save button.
Can you please help me out which function module to use ?
Also what is the difference between the 2 function modules ?
Also please help me write the code of calling the function module and the parameters required.
Thanks.
‎2010 Dec 31 11:57 AM
hI,
If you are going for Outbound delivery then use
BAPI_OUTB_DELIVERY_SAVEREPLICA
If you are going for Inbound delivery then use
BAPI_INB_DELIVERY_SAVEREPLICA
'
‎2013 Aug 02 3:44 PM
This solution is in kzapk and kzntg.
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.