Problem with BAPI_OUTB_DELIVERY_CREATE_SLS in creating deliveries
We are using the BAPI 'BAPI_OUTB_DELIVERY_CREATE_SLS' to create deliveries. The problem is we are unable to create same no. of deliveries as of VL10A.
When we are using VL10A to create deliveries, for a particular order, we are able to create 2 deliveries for a single sales order. Where as with the above BAPI it is creating only one delivery for sales order.
Could you please let me know what I should do inorder to make BAPI to create 2 deliveries like that of VL10A.