I am writing a validation, where the scenario is like this:-
Actual costs are getting booked to AUC through PR,PO,GR,IR, where a statistical CAPEX Internal Order is assigned at the PR,PO level. Now, the final asset too will have an OPEX Internal Order. The validation is to map the order type of the CAPEX and OPEX Internal Order.
This validation has to take place in either of the two places
---> When saving the settlement rule in AIAB or When executing the AIBU if the order types of the two orders do not map then it should throw an error
Now, the problem is, how to pick the Settlement Receiver. Because this validation has to take place before the document gets posted, so from which table can I get this Settlement Receiver -- Final Asset.
This I need to provide the ABAB guys in the User Exit.
An early response would be appreciated.