Manually trigger Availability Check in the Sales Order User Exit MV45AFZZ
As per the normal scenario where sales orders are created and the schedule line delivery dates are determined.
Based on some business logic for few customers we need to change the delivery priority and confirmation delivery date.
We are implementing this logic in the user exit MV45AFZZ in the routine USER_EXIT_SAVE_DOCUMENT_PREPARE.
The availability check logic is already implemented by then. Now we have scenarios where the date redetermined by the custom logic is greater than the one determined by the standard availability check done by SAP.
We have changed the values of the field VBEP-EDATU as per our logic but we still have 2 lines in the schedule line data where the requested date is greater than the confirmed date.
This can be tackled if we can redo the Availability Check.
Can someone provide pointers on how can we trigger the availability check manually in the code.