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: 

WS_DELIVERY_UPDATE issue

john_wayne
Participant
0 Kudos

Hi All,

Im having a problem here right now im using this bapi BAPI_DELIVERYPROCESSING_EXEC to create my delivery order. after the bapi is completed i never perform BAPI_TRANSACTION_COMMIT. Then i call the WS_DELIVERY_UPDATE to update the delivery order to pick items and also insert handling units. the issue is that when i call the WS_DELIVERY_UPDATE function module the outbound delivery is created and can be seen in the document flow of sales order. Is there anyway to not allow the outbound delivery to be created when calling function module WS_DELIVERY_UPDATE?

Im doing this is because i want to keep all the delivery order in the buffer before i commit. if i hit an error during the creation of the delivery order then i can rollback all the delivery order and there would not be any delivery order created.

Any solution on my issue above?

Thanks

2 REPLIES 2

Former Member
0 Kudos

Hi,

As far as I can see the import parameter IF_DATABASE_UPDATE is default set to '1'. This will check and save the delivery. If set to 2 the delivery is only checked and not saved.

Best Regards,

Martin

0 Kudos

Hi

BAPI_DELIVERYPROCESSING_EXEC function module is performing COMMIT internally. And also BAPI is not released for exeternal use. SAP can change the interface and the functions in the interface without prior notification. So please avoid using above BAPI. Try to use other function modules. Pls read BAPI documentation for more info.

Thanks,

Chandra