I want to create a program that will remove the delivery block from a number of sales orders. For this, I am using the BAPI BAPI_SALESORDER_CHANGE to remove the delivery block.
However, the sales order in currently not proposing partial deliveries because sometimes the users are clicking on the complete delivery button when they create a sales order.
What I need is either the BAPI to do partial deliveries or trigger an ATP check before the SO is saved. This would ensure that even if the users did do a mistake, the program will re-check and try to do a partial delivery if possible.