Hierarchy

⤷

⤷

IMG Activity
ID | HRPAD00AUTH_CHECK | BAdI: Set Up Customer-Specific Authorization Check |
Transaction Code | S_AHR_61019368 | (empty) |
Created on | 19991202 | |
Customizing Attributes | HRPAD00AUTH_CHECK | Set Up Customer-Specific Authorization Check |
Customizing Activity | HRPAD00AUTH_CHECK | HR: Authorization Check |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | HRPAD00AUTH_CHECK |
You can use this Business Add-In (BAdI) to replace the SAP standard authorization check for HR master data and infotypes with a customer-specific check.
Example
You want to deny specific users access to specific personnel numbers. For example, you may want to prevent an administrator from processing his own, or his wife's salary data. You can only set up a special rule for one personnel number per user in the standard SAP system.
In this case, you could, for example, copy the standard SAP authorization check (class CL_HRPAD00AUTH_CHECK_STD), and then adjust the copy to meet your requirements. You can then use this copy as a BAdI, to replace the standard SAP authorization checks.
Alternatively, you could implement your authorization check so that the functions you require (which are already in the standard SAP version) are delegated to the standard class. You would then only need to implement the additional functions that you require. (decorative template)
Standard settings
The BAdI is not implemented in the standard SAP system. If you do not implement it, the SAP system uses the standard authorization checks HR master data and infotypes.
Activities
After calling up the IMG activity, a dialog box appears, in which you can enter a name for the implementation.
If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:
- In the dialog box, enter a name for the BAdI implementation in the Implementation field, and choose Create.
The screen for creating BAdI implementations is now displayed.
- Enter a short text for the implementation in the Short text for implementation field.
- From the tab index, choose Interface.
The Name of implemented class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it.
- Save your entries, and assign the implementation to a development class.
- Place the cursor on the method, and double-click to enter method processing.
- Enter the code for the implementation between the statements
method <Interface name> ~ <Name of method>
andendmethod
. - Save and implement your code. Return to the Edit Implementation screen.
- Save the entries on the Edit Implementation screen.
Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.
- Choose Activate
The code you stored in the method will be run when the application program is executed.
Further notes
Method : Maximum Check for Infotype Authorization
Method : Maximum Check for Authorization Level
Method : Maximum Check for Subtype Authorization
Method : Minimum Check for Authorization Level
Method : Minimum Check for Subtype Authorization
Method: Set Organizational Assignment
Method: Set Partial Organizational Assignment
Method : Maximum Check for Personnel Number Authorization
Method : Minimum Check for Personnel Number Authorization
Method: Check Personnel Number Authorization
Method: Replacement for CONSTRUCTOR
You can use the classes used in the standard SAP system (CL_HRPAD00AUTH_CHECK_STD and CL_HRPAD00AUTH_CHECK_FAST) as a basis for your implementation.
For more information on using Business Add-Ins, refer to the SAP Library under Basis Components ->ABAP Workbench (BC-DWB) ->Changing the SAP Standard (BC)->Business Add-Ins.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 3 | Nonrequired activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | HRPAD00AUTH_CHECK | 0 | HLA0009715 | Personnel Administration |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20000128 |
SAP Release Created in | 46B |