cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to deliver sales order

Former Member
0 Kudos

Hi experts,

Is there any BAPI to add a delivery item in a exsiting DN with order reference? Just like the following picture.

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shawn,

We have the exact same requirement, but as far as I can tell there is no BAPI that does exactly what you are asking. I tested the BAPI_DELIVERYPROCESSING_EXEC and with this BAPI it is possible.

You could create a simple function module or method to perform this task.

You'll need to compare your delivery items to the sales order items (using lips-vgbel and lips-vgpos obviously) yourself and add all missing items to the request table. For the missing items supply at least the following:

document_type  = 'A'  for Sales order

document_numb = sales order number

document_item   = sales order item

quantity_sales_uom = quantity of sales order item

In delivery_extend you need to supply the delivery number.

In our case this is enough to extend the delivery with additional items from the sales order.

Regards,

Serge.

Former Member
0 Kudos

Hi Serge,

It works,thank you very much.

Best regards,

Shawn.

Answers (0)