This article explains about designing of a PCR for a specific scenario of a company.
This document explains the method of using payroll constant table v_t511k and making the flexibility of controlling the PCR to stop or make payment.
A company wants to pay a deputation allowance for different grade of employees (employee sub-group). This allowance is calculated based on the percentage of basic pay wage type and this will vary for different grades of employees. This has to be fulfilled using a custom PCR. This payment may be delimited (stopped) as per the requirements.
a) Employee Sub-group (Grade) along with percentage
b) Basic pay wage type
c) Payment period
Deputation allowance wage type as per the grade entitlement.
Employee Subgroup with the percentage is listed below:
PCR switch to calculate deputation allowance WEF 01.06.2014 has been maintained in constant table V_T511K.
Constant name: ZCALO.
Basic pay wage type 9000 is maintained in infotype 8. A new wage type ‘8002’ for storing the depuation allowance is created in infotype 15.
PCR for calculating the deputation allowance is given in the below diagram:
Explanation for PCR:
Above PCR will load the constant ZCALO value from v_t511k and will be checked with the comparison operation. Based on the return value of this comparison, control will be branched to node A. Here the employee subgroup will be placed in the variable key using OUTWPPERSB. Then further calculation will happen to get the value of wage type 9000. Different calculation logic can be put for different employee sub-groups for flexibility.
Placement of PCR:
This PCR can be placed after the function P0015 in your payroll schema.