Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM to update delivery details LIKP-BTGEW and LIKP-ANZPK

Former Member
0 Likes
4,343

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.

1 ACCEPTED SOLUTION
Read only

anjan_paul
Active Contributor
0 Likes
2,050

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

5 REPLIES 5
Read only

anjan_paul
Active Contributor
0 Likes
2,051

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

Read only

Former Member
0 Likes
2,050

Hi check it RV_DELIVERIES_SAVE

Read only

0 Likes
2,050

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.

Read only

0 Likes
2,050

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

'

Read only

max_anjos
Explorer
0 Likes
2,050

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.