Ansicht
Dokumentation
EXIT_HARCALC0_001 - User exits Argentina: Averages
RFUMSV00 - Advance Return for Tax on Sales/Purchases CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
You can use this function module to determine daily average calculation methods for variable remuneration, separate from those specified in the standard system.
One example of these averages is leave payment average (vacation or other leave) calculated in wage type /006 or wage type /012.
You determine the different average calculation methods for variable remuneration by giving values to the output parameters in the function module.
The meaning of parameters is the following:
* NUMBER_OF_MONTH: You use this to specify the number of months you want to consider in the averages calculation. You must always specify this.
* DIVISOR: This indicates what divisor type you must use in the averages calculation. Possible values are:
DIVISOR Definition
1 Divisor is determined by months of 30
,,,,,,,,,,set days (NUMBER_OF_MONTH * 30).
2 Divisor is determined by calendar days.
3 Divisor is determined by NUMBER_OF_MONTH.
4 Divisor is determined by months with the number of
,,,,,,,,,,days specified in the parameter NUMBER_OF_DAYS
,,,,,,,,,,(NUMBER_OF_MONTH * NUMBER_OF_DAYS).
5 Divisor is determined by the value of parameter
,,,,,,,,,,NUMBER_OF_DAYS.
* NUMBER_OF_DAYS: You use this to specify the number of days. Their value is linked to the value of the DIVISOR parameter.
DIVISOR Definition
1 Not relevant for the averages calculation.
2 Not relevant for the averages calculation.
3 Not relevant for the averages calculation.
4 NUMBER_OF_DAYS specifies the number of days you must
,,,,,,,,,,consider in each month to calculate the average,
,,,,,,,,,,according to the following formula:
,,,,,,,,,,NUMBER_OF_MONTH * NUMBER_OF_DAYS
5 NUMBER_OF_DAYS specifies the number of days to
,,,,,,,,,,consider as divisor for the averages calculation.
,,,,,,,,,,Example:
,,,,,,,,,,NUMBER_OF_DAYS = 180
Additionally, the function module receives the following input parameters:
* PNR: Personnel number for which you calculate the average.
* WPBP: Internal table for payroll calculation using employee data.
* WAGE_TYPE: Wage type in which you store the average you want to calculate.
The possible values of this wage type are:
'/006': For the variable remuneration average within the calculation
,,,,of advance vacation and other leave payments,
,,,,using the same calculation method.
'/007': For the variable remuneration average within the calculation
,,,,of vacation allowance in the regular payroll run.
'/012': For the variable remuneration average within the calculation
,,,,of other payments, using calculation methods different from
,,,,vacation payment methods.
In the standard system, to calculate variable remuneration for leave payment, the number of months for the cumulation period (parameter NUMBER_OF_MONTH) is six. The divisor type (parameter DIVISOR) has a value of 1 (months of 30 days).
You can use this function module if, when you calculate the variable remuneration for leave payment,
- you want to use a number of months different from the number used in the standard system, or if
- you want to use a different divisor type (instead of months) as the divisor,
- you want to use a number of days per month different from 30,
- you want to use a specific set divisor in the parameter NUMBER_OF_DAYS.
Moreover, when you evaluate the input parameter value WAGE_TYPE, you can specify the output parameter values depending on the wage type.
Example
You can modify the following values:
- Number of months you want to cumulate when you calculate vacation allowance.
- Divisor; that is, the number of months the employee has worked since being contracted by the company (multiplied by 30 days), or the number of calendar days, or the number of months (multiplied by the parameter NUMBER_OF_DAYS), or the number of days, determined by the value of the parameter NUMBER_OF_DAYS.
Notes
You do not use this function module to calculate variable remuneration for leave due to industrial accident or disease (ART = Labor Risk Insurance Company).
Further information
The WPBP table constitutes an input parameter. Using this table you can decide whether the employee is paid by the hour or by the month.
Parameters
DIVISORNUMBER_OF_DAYS
NUMBER_OF_MONTHS
PNR
WAGE_TYPE
WPBP
Exceptions
Function Group
XPARrdisp/max_wprun_time - Maximum work process run time RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 5415 Date: 20240604 Time: 000433 sap01-206 ( 62 ms )