Application Development 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: 

GN_DELIVERY_CREATE to update data of the delivery

former_member588188
Participant
0 Kudos

hello Gurus,

I have a requirement in which I must create new deliveries and for that I am using GN_DELIVERY_CREATE. it is working perfectly.

However, when I am trying to modify the data of a delivery for example the Quantity (EKES-MENGE) and I want to modify this delivery in the code the function GN_DELIVERY_CREATE is not working. Obviously it is for creating but do you know any function for updating or deleting a delivery to call GN_DELIVERY_CREATE again. Any help? If you know the name of the function to use, can you please provide me an example for the maping?

Regards,

David

1 ACCEPTED SOLUTION

p244500
Active Contributor
0 Kudos

Hi,

Try implementing BAdi enhancement LE_SHP_DELIVERY_PROC to modify delivery.

Regards,

Nawa.

3 REPLIES 3

p244500
Active Contributor
0 Kudos

Hi,

Try implementing BAdi enhancement LE_SHP_DELIVERY_PROC to modify delivery.

Regards,

Nawa.

former_member588188
Participant
0 Kudos

hello Nawa,

Thank a lot for your answer.Is the only option a badi? In our requirement we would like to avoid BADIs so maybe any BAPI doing the same? or a way to delete a delivery and then create a new one could be also optimal.

Regards,

David

0 Kudos

Hi David,

you can use to change delivery BAPI , WS_DELIVERY_UPDATE2 , Just try it .If you need to update the delivery amount with function BAPI_OUTB_DELIVERY_CHANGE before calling WS_DELIVERY_UPDATE_2.