Ansicht
Dokumentation
OHIRURP_ST_AEN_002 - BAdI: Calculate Average Number Using Individual Schedule
Vendor Master (General Section) CPI1466 during BackupThis documentation is copyright by SAP AG.
The Business Add-Ins (BAdI) HRPAYRU_B_AVR_INDIV_SCHEDULE is part of the HRPAYRU_AVR_INDIV_SCHEDULE enhancement spot; it enables you to change the algorithm of the average employee number calculation for part-timers on payroll and external employees that is used in statistics reports (HRULP4 and HRULSTAT).
The BAdI is called after the average number is calculated using factory calendar.
The BAdI implementation should return the average employee number in the following fields of table CT_AVNCOUNT:
- avnk - The average number according to the factory calendar based on calendar days (used for payroll employees working full time and contract employees).
- pavn – The average number according to the individual schedule for part-timers and external employees.
- davnw - The average number according to the factory calendar for part-timers and external employees.
If the average number is calculated using the individual work schedule in the period, the value is stored in field pavn and the amount in field davnw is cleared.
As input parameters, the BAdI receives the personnel number, period (start and end date) and table with employee characteristics and the average number calculated using the factory calendar.
Method RESTRICT_AEN uses the already calculated values of the average employee number to restrict the average number if it is greater than 1.
The standard system delivers implementation HRPAYRU_IM_AVR_INDIV_SCHEDULE with two methods:
- CALC_AEN_VIA_INDIV_SCHEDULE – Calculates the average number using the individual schedule for part-timers and external employee.
- RESTRICT_AEN – Restricts the average number for an employee by 1 in the period.
BAL_S_LOG - Application Log: Log header data rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 2584 Date: 20240523 Time: 154952 sap01-206 ( 43 ms )