Skip to Content

Looking for FM to add items to an existing Delivery with reference to Sales Order

Hello,

My current requirement is to be able to:

  • create a delivery with reference to Sales Order items. This task has no issues. I am using FM BAPI_OUTB_DELIVERY_CREATE_SLS
  • update existing delivery items. This task has no issues. I am using FM BAPI_OUTB_DELIVERY_CHANGE
  • insert a new item into existing delivery with the reference to Sales Order item. I have not been able to find a FM that can do this for me.

Can somebody suggest a function module for me. Please note that I am aware of BAPI_OUTB_DELIVERY_CHANGE and it does not have fields for sales order number or sales order item number for me to use...

I thank you in advance,

Felix

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 18, 2016 at 08:23 AM

    Hi Felix

    did you try with BAPI_OUTB_DELIVERY_CHANGE filling the following structures?

    NEW_ITEM_DATA LIKE BAPIOBDLVITEM
    
     NEW_ITEM_DATA_SPL LIKE /SPE/BAPIOBDLVITM
    
     NEW_ITEM_ORG LIKE BAPIOBDLVITEMORG

    I found many threads in the archive suggesting this for the same issue and a couple where marked as "correct answer" but I never tried myself.

    You can give a try and check in debug if it suits your needs.

    Otherwise you can try with WS_DELIVERY_UPDATE_2

    Let me know if it works!


    BR

    Simone

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 22, 2016 at 04:36 PM

    Thanks for your help Simone, but I have checked all of those modules and they do not work for me...

    Felix

    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.