Skip to Content
0

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

Nov 17, 2016 at 11:09 PM

140

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Simone Milesi Nov 18, 2016 at 08:23 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Felix Rubinshtein Nov 22, 2016 at 04:36 PM
0

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

Felix

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Even with WS_DELIVERY_UPDATE_2?

0