Skip to Content
avatar image
Former Member

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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • 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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded