Skip to Content

BAPI_OUTB_DELIVERY_CREATE_STO does not respect the quantity been passed in parameter.

BAPI_OUTB_DELIVERY_CREATE_STO does not always create delivery with quantity as specified in the parameter, sometimes could be more if there are more inventory.

Also apart from this in program after delivery creation i have to do the picking, batchsplit and PGi. But sometimes till the code reach the picking and batch split the delivery is not created and i am getting the error.

i am using the BAPI_TRANSACTION_COMMIT after the main bapi but still the issue. Please let me know your suggestions.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 01, 2019 at 06:29 AM

    Hi Aasim,

    'Code reaches Picking, but delivery not created' -> Try using BAPI_TRANSACTION_COMMIT with WAIT as 'X'.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 01, 2019 at 06:37 AM


    The reason for the issue is you are not allowing sufficient for the system to register the Objects created through MAIN BAPI, the system needs some time for completing the Commits at backend. Try using the below code which will wait for the system to complete the COMMITS and then proceed to next step.This Should solve your issue.

                wait   = abap_true
                return = ls_return.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.