cancel
Showing results for 
Search instead for 
Did you mean: 

Add item to the outbound delivery from ABAP programm

Former Member
0 Kudos

Hi,

My customer has a specific business scenario in the warehouse, that I need an ABAP code to add a additional item into the existing delivery. This item would be without a reference to any preceding document (warehouse is allowed to add an item, whic was not ordered in the preceding document). It is easy to do it via VL02N manually, but I have not found any ABAP function to do it from the ABAP programm. What I have found is WS_DELIVERY_UPDATE, BAPI_OUTB_DELIVERY_CHANGE, but it seems, that those can make changes in the existing outbound delivery items, but cannot add additional one. Any ideas?

Mazvydas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You may find valuable answers in a development or ABAP forum.

Here is what we have done:

Create a BDC to add a delivery line item. In order to do this, the program had to do the following:

Determine the last line item number of the delivery

Determine the number range interval for line items

In the BDC, use the "Cursor placement" fuction to place the curser on the last line item

Add a new line item on the next line.

There may be much smarter ways to do this, but this seemed to work for us.