05-31-2016 10:38 PM
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.
06-02-2016 11:37 AM
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.