I am using BAPI - BAPI_SALESORDER_CREATEFROMDAT2 to create the sales order.
I am passing all the required values and Sales order number is getting generated.
The issue is -
Only one schedule line is getting updated in the sales order. I have plenty of Schedule line passing to the BAPI - but its picking always the first schedule line and updating the sales order.