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: 

Creating DO with BAPI_DELIVERYPROCESSING_EXEC

khllatifi
Explorer
0 Kudos
589

Hello,

I have been using BAPI_DELIVERYPROCESSING_EXEC to create Delivery Order and it has been working fine for most instances. From what I understand, if there are five requests, CREATEDITEMS parameter will return five items.

However, there are a few particular instances where the number of items created is less than the number of requests, while BAPI_DELIVERYPROCESSING_EXEC does not return any error messages (RETURN parameter). Are there some other methods of getting error messages for BAPI_DELIVERYPROCESSING_EXEC aside from RETURN parameter that I am not aware of?

Also, I am sorry if I'm not being specific enough with my question. Please inform me if there are other details needed to answer this post

2 REPLIES 2

FredericGirod
Active Contributor
0 Kudos
516

Did you commit every time you call it ? do you have gap in the delivery number generated ?

khllatifi
Explorer
0 Kudos
516

I set conditions to only commit when CREATEDITEMS is not empty (so that the DO has items, or at least that's how I understand it, please correct me if I'm wrong) and when the RETURN parameter has no message type 'E' for errors