cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member626958
Discoverer
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member626958
Discoverer
0 Kudos

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

Felix

SimoneMilesi
Active Contributor
0 Kudos

Even with WS_DELIVERY_UPDATE_2?

SimoneMilesi
Active Contributor
0 Kudos

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