cancel
Showing results for 
Search instead for 
Did you mean: 

RE-RUN ATP programitically just before saving the sales order

0 Kudos

Hi all,

We have a custom requirement where scheduling should happen based on the departure day maintained in custom table(Requirement is -In transportation and shipping process we do not have daily departure for all destinations. Therefore Goods issue day should be same as the day maintained in custom table and then change the customer requested date accordingly).

We have implemented this logic in USEREXIT_CHECK_VBAP, where we are changing the VBEP-EDATU(delivery date) by comparing goods issue day with the departure day maintained in custom table. But dates are not getting calculated correctly when we save the SO.

We observed that if we re-run ATP(i.e. click on 'check Item availability' button) in Va02, we are getting the correct dates as per departure day.

Therefore we are looking for a FM/Perform using which we can re-run ATP automatically in user exit 'USEREXIT_SAVE_DOCUMENT_PREPARE'.

Note: I already tried perform fcode_pore(sapmv45a) but it is not working.

Accepted Solutions (0)

Answers (0)