Examples of the HRPAD00AUTH_CHECK BAdI
The following examples are intentionally simple because a description of the complete, new implementation of the HRPAD00AUTH_CHECK BadI (Business Add-In) would be beyond the scope of this documentation.
CL_HRPAD00AUTH_CHECK_STD and CL_HRPAD00AUTH_CHECK_FAST. If no BAdI is active, the second class is used for
COARS = 1. If a BAdI is active, the system only checks the authorization with COARS = 2.The above-mentioned checks are in principle already contained in the CL_HRPAD00AUTH_CHECK_STD class. You need only adjust the time logic. You do not want to create a copy of the class and implement this copy because you want to use the class to implement a complete customer-specific authorization check in your system. This means that all corrections delivered by SAP would need to be integrated manually. Since the CL_HRPAD00AUTH_CHECK_STD class already reacts correctly to all write accesses and also to all read accesses on the current date, you continue to delegate your own checks to this class. However, change the date each time beforehand to ensure the system returns the desired result. Note the following diagram and the