Ansicht
Dokumentation
PYXX_HRPAY00_NT_040 - BAdI: Assignmnent of User and Administrator Group
BAL Application Log Documentation Vendor Master (General Section)This documentation is copyright by SAP AG.
Business Add-In (BAdI) HRPAY00_NT_ASSIGN is used to assign tasks to a processor or an administrator group. You can use your own implementation to make customer-specific changes to the default implementation delivered by SAP.
Tasks are assigned to a HCM localization, an area, and a subarea. The combination of these 3 criteria forms the filter value that determines the relevant BAdI implementation. The individual values are separated using the separator "/". The BAdI implementation then delivers the assignment of the task to a processor and/or an administrator group.
(Filter */*/*, class CL_HRPAY00_NT_ASSIGN)
In the standard system (SAP default implementation), the assignment is done using class CL_HRPAY00_NT_ASSIGN if no customer-specific class with a special filter value is found.
Process of default implementation delivered by SAP:
Method ASSIGN is called, which in turn calls further methods to allow special assignments to be made in the following sequence:
- Method ASSIGN_WITH_PERNR
- If the task belongs to a personnel number, the system first tries to make an assignment using method ASSIGN_WITH_PERNR.
- In the default implementation delivered by SAP, infotype Organizational Assignment (0001) is evaluated. A processor is assigned using the administrator entered payroll and field SAP Name (SAP user name). The administrator group is taken from the corresponding field of the infotype.
- Method ASSIGN_FROM_CUSTOMIZING
- If the task does not belong to any personnel number or if a processor has not yet been assigned to method ASSIGN_WITH_PERNR, method ASSIGN_FROM_CUSTOMIZING is used to evaluate table T77PAY00_NTAS.
- Method ASSIGN_FALLBACK
- If method ASSIGN_FROM_CUSTOMIZING has not resulted in an assignment to a processor, method ASSIGN_FALLBACK is used to assign the current user as processor of the task.
If you only want to make a change for specific methods of the assignment in your customer-specific class, you can derive the customer-specific class from the standard class CL_HRPAY00_NT_ASSIGN and then redefine the method you wish to change.
If necessary, create your own BAdI implementation (CL_HRPAY00_NT_ASSIGN) to create assignments that are different to the standard assignments.
There are three active BAdI implementations with the following filter values:
01/ST/ELSTAM | Class ZCL_HRPAY00_NT_ASSIGN_01_ST_EL |
01/ST/* | Class ZCL_HRPAY00_NT_ASSIGN_01_ST |
*/*/* | Class CL_HRPAY00_NT_ASSIGN |
For the following combination of HCM localization, area, and subarea, the BAdI implementation is used with the most suitable filter condition.
Combination | | | Most suitable filter | | | Class behind the BAdI implementation |
---|---|---|---|---|
01/ST/ELSTAM | | | 01/ST/ELSTAM | | | ZCL_HRPAY00_NT_ASSIGN_01_ST_EL |
01/ST/LSTB | | | 01/ST/* | | | ZCL_HRPAY00_NT_ASSIGN_01_ST |
01/SV/EEL | | | */*/* | | | CL_HRPAY00_NT_ASSIGN |
Comment: The two classes beginning with Z are fictitious customer-specific classes for this example.
PERFORM Short Reference SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 4923 Date: 20240523 Time: 215220 sap01-206 ( 61 ms )