My requirement is to create an outbound delivery w.r.t. sales order; but materials and line item numbers would not match the data sequence in sales order. E.g. Sales order will have POSNR1 00010, MATNR1 = 10000010; POSNR2 = 00020 and MATNR2 = 10000020.
Desired output delivery should have POSNR1 = 00010, MATNR1 = 10000020;; POSNR2 = 00020 and MATNR2 = 1000010. BAPIs 'BAPI_OUTB_DELIVERY_CREATE_SLS' and 'BAPI_DELIVERYPROCESSING_EXEC' did not work because we have to pass SO number as reference object. BDC cannot be used for various reason as per our requirement.
Please suggest if any other BAPI/FM can create delivery with all the data same as sales order data but item numbers and materials as mentioned above.