Start of Content Area

Process documentation Technical Process of Average Processing (Old)  Locate the document in its SAP Library structure

Prerequisites

Caution

The procedure for processing averages described in this section, and in the following sections, refers to releases prior to Release 4.6B. The processing of averages as of Release 4.6B has fundamentally changed. For more information, see Old and New Processing of Averages and the Implementation Guide (IMG) under Payroll ® Time Wage Type Valuation ® Averages New ® Bases for Valuation of Averages.

If you been using the old version for processing averages up until now, you can now 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.

Process Flow

The old version of average processing takes place in the following sequence:

1. Creating Bases for Calculating Averages

Primary wage types to be included in the average bases are cumulated in one of the secondary wage types for average bases in accordance with the entries you have made. This cumulation is performed in each payroll period for each employee. The average bases are stored in internal table RT at the end of payroll, and are available for future calculations performed in accordance with the principle of averages.

2. Specifying the Wage Types to be Valuated Using the Averages Principle

The subschema XT00 (Processing of Time Data for Payroll) is accessed by personnel calculation schema X000. The calculation rule X015 ( Valuation of Time Wage Types) is the first action relevant to the calculation of averages.

Note

In the following, the X sign represents certain personnel calculation schemas and rules. This sign stands for the international versions of the 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 personnel calculation rule X015 determines whether the internal table IT contains time wage types that should be valuated according to the principle of averages. The contents of the AMT (Amount), NUM (Number), and RTE (Rate) fields are checked using decision operations AMT?0, NUM?0 and RTE?0.

Only wage types that meet the following conditions are calculated according to the principle of averages:

3. Defining Calculation Rules

After defining which wage types are to be valuated according to the principle of averages, the calculation rule is defined. This is carried out by the decision operation VWTCL° 15 in the calculation rule X016. This decision operation queries processing class 15. Wage types that are to be evaluated using the principle of averages, are coded in processing class 15 with a particular specification. The operation MEANV <nn> is called for each specification. In this operation, nn stands for a calculation rule from the Calculation Rules for Averages view (V_T511A). Depending on the calculation rule, operation MEANV <nn> performs the actual calculation of average values.

Example

Your wage type has specification 1 in processing class 15. You have entered personnel calculation rules X017 (Relevancy Test for Averages), X018 (Calculation of Averages after Cumulation) and the cumulation type 01 (from the Cumulation Rules for Bases for Calculating Average Values view (V_T511B)) for calculation rule 01. You have also specified that 3 previous periods should be taken into account when the averages are calculated. In rule X016, the operation MEANV 01 is assigned to specification 1. Using parameter 01, calculation rule 01 is determined using personnel calculation rules X017 and X018, cumulation type 01, and 3 previous periods. Operation MEANV performs the calculation of averages on the basis of these entries.

4. Calculating the Averages

Operation MEANV performs the following steps when calculating averages:

  1. The internal table MV is queried and this determines whether averages have already been calculated for the employee concerned within the current payroll period using the same average calculation rule.
  2. – If this is the case, the value that has already been determined is entered in the RTE field (rate).

    – If this is not the case, step 2 is performed.

  3. The internal table IT is queried and determines whether the Average Value wage type exists for the employee concerned (from the Calculation Rules for Averages view (V_T511A)).
  4. – If this is the case, the value is entered in the RTE field (rate).

    – If this is not the case, step 3 is performed.

  5. The individual periods are processed.
    1. Each previous period to be processed is imported, starting with the current period - 1.
    2. The relevancy test is performed.
    3. If the period is relevant, the cumulation takes place using the cumulation rule.
  1. The system checks whether the maximum number of periods to be taken into account has been reached.
  2. If this is not the case, return to step 2.

  3. The final processing of averages is performed:
    1. The average is calculated using personnel calculation rule X016 for final processing of averages from the Calculation Rules for Averages view (V_T511A).
    2. The value is entered in the RTE (Rate) field for the wage type to be valuated.

When the calculation of averages has finished, an average value is entered in the RTE field (Rate) for the appropriate wage type. This average value is used to effect a valuation (usually of absences). To do this, the values in the RTE and NUM fields are multiplied.

5. Special Processing for Frozen Averages

Special processing for frozen averages is dependent on the specification of a wage type in processing class 15. If a wage type has specification A in processing class 15, the decision operation ABEVL? will be called in the calculation rule X016.

The decision operation ABEVL? determines whether an employee’s absence goes beyond the current period and returns a value (0, 1, 2 or 3) as the result of the query. Based on this value, you can trigger the following absence valuations in the personnel calculation rule X016:

Operation MEANV calculates the average.

In this instance, the average value is calculated for the current period and frozen for the next period.

The absence is first valuated in the current period using the frozen average value from the previous period. The average value is then frozen again for the next period.

The absence is valuated using the frozen average value of the previous period.