05-07-2019 2:49 PM
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
05-07-2019 6:09 PM
Hi,
Try implementing BAdi enhancement LE_SHP_DELIVERY_PROC to modify delivery.
Regards,
Nawa.
05-07-2019 6:09 PM
Hi,
Try implementing BAdi enhancement LE_SHP_DELIVERY_PROC to modify delivery.
Regards,
Nawa.
05-08-2019 10:08 AM
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
07-11-2019 2:13 PM
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.