
Technical Process of Average Processing (New)
Purpose

The procedure for processing averages described in this and the following sections refers to releases from Release 4.6B. The processing of averages has fundamentally changed since this release.
For more information, see the Implementation Guide (IMG) for Payroll under Time Wage Type Valuation
® Averages New ® Bases for Valuation of Averages.If you have been using the old version for processing averages up until now, you can still continue to use this version. You do not have to convert your system to the new version. However, the old version for processing averages will no longer be developed. If you reconfigure, you should only use the new version for processing averages.
Prerequisites
When setting up the new average valuation of wage types in your system, you must perform the following activities:
The average calculation bases are used as a basis for calculating averages. The wage types assigned to the average calculation bases are stored in the secondary wage types /201 to /232.
The calculation rules are made up of the following rules and values:
This assignment defines which primary wage type should be calculated according to which calculation rule.
For information on setting up average valuation, see the Implementation Guide (IMG) for
Payroll under Time Wage Type Valuation ® Averages New .Process Flow

In the following, certain personnel calculation schemas and rules that start with the letter X serve as an example. The X represents the international personnel calculation schemas and rules and can be replaced with a country-specific letter. For example, there is a German personnel calculation schema D000 for the international personnel calculation schema X000.
The subschema XT00 (Processing of Time Data for Payroll) is accessed by personnel calculation schema X000. The function AVERA
(Average Calculation) is called within this schema and performs the whole average calculation.Averages are calculated in the following sequence:
You can specify which wage types you want to valuate with an average value in Payroll Customizing under Time Wage Type Valuation ® Averages New ® Basis for Valuation of Averages. The function AVERA selects the wage types marked in such a way and establishes which calculation rules are assigned to these wage types.
The system checks if a manually assigned value already exists for a wage type in the internal table IT for every calculation rule. The system uses this value from the AMT field as an average value. In this case, the system skips averages calculation and continues processing with step 7.
For each calculation rule, the system checks the start and finish date specified in the internal table AVERAGE: If a frozen average already exists for the relevant wage type and is valid for the current period, the system skips the calculation of averages and continues processing with step 7.
You have specified under which conditions a period should be relevant for the calculation of averages in the IMG for Payroll using the calculation rule in the relevancy rule. The system selects all payroll results that are, according to the relevancy rule, relevant and checks these according to the
You can also flag the current period as being relevant for the calculation of averages. The system then accesses a preliminary value from the data previously determined for the current period and uses this value for average calculation. The system finally calculates the final value for the current period that is written to the results table RT at the end of averages calculation in step 9.
The system cumulates the individual average calculation bases from the selected payroll results (from the relevant periods) for each calculation rule in the internal table MV.
In Customizing for Payroll under Time Wage Type Valuation ® Averages New ®
In Customizing for Payroll under Time Wage Type Valuation ® Averages New ® Create Calculation Rules for Averages, you can make the following settings in the view Adjustment Rules for Bases for Calculating Average Values (V_T51AV_C) using adjustment rules:
The average value is calculated in the personnel calculation rule X018. In the standard system, the system divides the cumulated amount calculated in step 5 for all AMT fields by the cumulated amount from all NUM fields of the average calculation bases. You can also specify your own formulas or constants in the personnel calculation rule X018. The result of the calculation is the average value in the RTE field (rate).
In Customizing for Payroll under Time Wage Type Valuation ® Averages New ® Create Calculation Rules for Averages, you can create your own final processing rules in the view Final Processing Rules for Averages (V_T51AV_E), which you can then assign to a calculation rule.
In Customizing for Payroll under Time Wage Type Valuation ® Averages New ® Create Calculation Rules for Averages, you can create your own final comparison rules in the view Comparison Rules for Averages (V_T51AV_W), which you can then assign to a calculation rule. For example, you can compare the calculated value with a specified value (for example, standard pay) and specify under which conditions which value should be used as an average value.
The system writes the average value calculated in step 6 in the RTE field for every calculation rule to the RTE field for all wage types that are assigned to this calculation rule. The amount of the average value in the field AMT of the wage types is the result of multiplying the contents of the fields RTE and NUM for each wage type.
You may want to freeze the value obtained by calculating averages. To do so, you can save the average value from the RTE field in the payroll results in the internal table AVERAGE for every calculation rule. In Customizing for Payroll under Time Wage Type Valuation ® Averages New ® Create Calculation Rules for Averages, you can specify the period for which the average should be frozen in the view Calculation Rules for Averages (V_T51AV_A).
The function ADDCU (Update Cumulations) checks which wage types from the results table RT should be included in an average calculation basis. These wage types are collected in the relevant average calculation bases and the average calculation bases are finally written to the results table RT. This means that they are available in the payroll results for future calculations according to the principle of averages.