BAPI_OUTB_DELIVERY_CREATE_STO does not always create delivery with quantity as specified in the parameter, sometimes could be more if there are more inventory.
Also apart from this in program after delivery creation i have to do the picking, batchsplit and PGi. But sometimes till the code reach the picking and batch split the delivery is not created and i am getting the error.
i am using the BAPI_TRANSACTION_COMMIT after the main bapi but still the issue. Please let me know your suggestions.