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: 

Creation of N deliveries from N sales orders with bapi BAPI_OUTB_DELIVERY_CREATE_SLS

Former Member
0 Kudos

Hi gurus,

I need to improve the performance of my program that create delivery from sales order.

Actually i'm calling the BAPI in subject in a loop for every SO.

I'd like to make only one call to the bapi and get N deliveries but, right now I'm getting a delivery only for the first sales order of the structure SALES_ORDER_ITEMS.

Can you please suggest a way to fullfill my requirement?

Thank you in advance

Riky

1 REPLY 1

former_member542222
Discoverer
0 Kudos

BAPI_OUTB_DELIVERY_CREATE_SLS calls RV_DELIVERY_CREATE eventually. That's why both functions work the same for the criteria specified. Realize that SAP just wraps existing functions when they create BAPIs...

You can activate the split log analysis either by config or in debug during the RV_DELIVERY_CREATE call. See OSS note 399912 for more details. Just follow the split analysis in debug and see what logic causes the log table to be populated or just check the results in the table when the log is generated in RV_DELIVERY_CREATE.