MJ
As I suggested, you can find plant in Bapi 'BAPI_MATERIAL_AVAILABILITY' and make your logic to update sales order.
We had similar requirement in previous project where we used this Bapi.
In sales order we were use to give popup to user to select and confirm:
You may put your own logic.
![Cap 1.JPG]()
Regards