Skip to Content
avatar image
Former Member

Creation of N deliveries from N sales orders with bapi BAPI_OUTB_DELIVERY_CREATE_SLS

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 10, 2018 at 11:14 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded