Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create OutboundDelivery and set shipping condition (VSBED)

Former Member
0 Kudos

I am trying to use BAPI_OUTB_DELIVERY_CREATE_SLS to create an Outbound Delivery from a Sales Order Trading Contract.  The BAPI creates the Delivery from the SO easily enough, but how to do I control the shipping condition value that is created in LIKP (LIKP-VSBED)?  I need the delivery to be created with a specific VSBED.

Thank you for any help that you can provide.

1 REPLY 1

jitendra_it
Active Contributor
0 Kudos

Hello,

As per my understanding delivery is taking VSBED from sales order.

You can use USEREXIT_SAVE_DOCUMENT_PREPARE" of include MV50AFZ1 to change VSBED based on your custom logic.

You can also refer SAP note 0000415716 which contain details about various exits available during delivery processing and choose the correct exist accordingly.