PCR for calculating a deduction
I am a beginner into PCR's and Schema. Recently I got a requirement from the client for a deduction PF(Pension Fund). It is only need to show in the RT and need not deduct from the employee as it is only from employer side. I wrote a PCR for that. Once we keep a record with the 2036 wagetype in infotype 14, it will run as per the requirement. Calculation was correct and in RT amount has deducted correctly. But while posting part, if employee has retro, then, it is showing several amounts in PCP0 line item display and FI is getting wrong value which is almost triple of actual amount.
PF is 6% of the basic. That is wagetype (1001+1004+1006+1007)*6%. Wagetype 3008 is the total basis for PF.
Below is the PCR which I wrote.
Am getting the below amounts while posting to FI.
In the above screen showing several amount which created while posting. Retro also added to post.
Below is the posting characteristics of the wagetype.
Please help me to correct it.