Process Flow for Calculation of Cost-of-Living Allowance
Purpose
As a part of payroll for Public Sector Switzerland, the payroll program RPCALCC0 automatically runs through the calculation for the cost-of-living allowance. This calculation is in subschema CHGD ( Bases CH ) under the function P0511 ( Cost-Of-Living Allowance Switzerland ).
Process Flow
For the calculation of the cost-of-living allowance, the following individual steps take place during payroll:
The SAP system chooses all records for Cost-of-Living infotype (0511) that are within the validity period of the payroll period.
If no infotype record exists, the SAP system skips over the function P0511 and then continues to run payroll. In this case, the system does not calculate a cost-of-living allowance for the employee.
From the available infotype records, the SAP system chooses the first record in the payroll period and reads the cost-of-living allowance level that is stored there.
If the cost-of-living allowance level is00, the SAP system skips over the function P0511 and then continues the payroll run. No cost-of-living allowance is calculated for this employee.
From the view V_T5CPBS05 ( Cost-of-Living Levels and Amounts ), t he SAP system determines the monthly amount for the cost-of-living allowance based on the imported cost-of-living allowance level.
Based on the Grouping of Employee Areas for the Personnel Calculation Rule in the internal table WPBP, the SAP system determines whether the employee earns an hourly wage or receives a monthly salary.
If the grouping is 1, the employee is an hourly wage earner. If the grouping is not 1, the employee receives a monthly salary.
If the employee is an hourly wage earner, the SAP system determines the estimated hours from the monthly amount of the cost-of-living allowance as follows:
The SAP system takes the current value of the constant MO2HR (Hours per Month) from the table T511K ( Payroll Constants ).
To determine the estimated hours, the monthly amount is divided by the constant MO2HR (Estimated hours = Monthly amount / MO2HR). The SAP system generates the wage type /P02 and places the estimated hours for the cost-of-living allowance under wage type /P02 in the IT table.
As the leave bonus depends on the employee’s leave entitlement, the SAP system first determines the employee’s leave entitlement.
Based on the leave entitlement, the SAP system determines the leave bonus from the table T5C3C ( HR-CH: Portions of Hourly Wage ). In this table, the leave bonus is defined as a percentage of the estimated hours of the cost-of-living allowance. The SAP system then uses the percentage to calculate the leave bonus. The system generates the wage type /P03 and places the estimated hours for the leave bonus under wage type /P03 in the IT table.
The SAP system runs through the same procedure to determine the estimated hours for the sick pay bonus from the corresponding percentage in table T5C3C. As the sick pay bonus depends on the employee’s leave entitlement, the LvEnttlmt field in the table T5C3C must contain the value 999,99. After calculating the estimated hours for the sick pay bonus, the SAP system generates the wage type /P04 and places the estimated hours under this wage type in the IT table.
If the employee receives a monthly salary, the system reduces the monthly amount by the Capacity Utilization Level stored in Basic Pay infotype (0008). The SAP system generates the wage type /P01 and places the estimated hours under this wage type in the IT table.
The monthly amount is factored in the subschema CHAL ( Factoring and Storage (CH) ) in the personnel calculation rule XVAL (Determine Salary Components) . The wage type /P01 is coded in the processing class 10 with the specification A. In the PC calculation rule XVAL, the wage types that are coded in the processing class10 with A are multiplied by the partial period factor /801 and then rounded to the nearest 5 Swiss centimes.
The multiplication of the estimated hours with the number of hours takes place in subschema CHAL in the personnel calculation rule CHS2 ( HR-CH: Gross and Net Hourly Wage ). Under the function PIT CHS2 ( HrlyWage & Age: Calculate LvBns & 13thMnthWgs ), the wage types /P02, /P03, and /P04 are multiplied by the number of hours (wage type /207) and then rounded to the nearest 5 Swiss centimes. The results are entered and stored in the RT table.
Result
If a value other than00is assigned as the cost-of-living allowance level in the Cost-Of-Living infotype, the SAP system calculates a cost-of-living allowance for the employee. The pay statement contains the amounts for the cost-of-living allowance.