cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP PCR: How to get Previous month Basic

istiaqhaider81
Explorer
0 Kudos
963

Dear experts,

I try to pay bounds(additional payment) to some of the employees. bonus is Pervious month Basic

Example:

Previous Salary year: 2023 Jan

basic: 8000tk

------------------------

Current Salary year: 2023 Feb

basic: 9000tk

------------------------

Bouns Date: Feb 2023

Bouns Pay Previous basic which was: 8000tk

But It is not working how can write this PCR

ZGRA ---------------------

ZAPC ------------------------

Accepted Solutions (1)

Accepted Solutions (1)

corriveau_remi
Active Participant

First, I must presume that pcr ZGRA and ZAPC are part of a sub-schema (or an IF statement) whereby you have selected for processing only "some of the employees" (and if required, processing only in a certain Month or Payroll Period).

When you process the Old Payroll Results (PORT), pcr ZGRA should process the Basic Pay Wage Type and then transfer it's Amount into WT 1255 of the Output Table (OT), and in your Payroll Schema, that PCR must be not far after the Function that processes the Previous Pay's Results.

Then, WT 1255 would exist in the Input Table to pcr ZAPC, with an Amount, and you would then only have to multiply it by the appropriate percentage (and I suggest that you use a constant from T511K instead of a fixed number since in the future, it would be easier to change the value of the constant than to delimit the pcr and change it).

During the testing phase in your DEV environment, you could add Operation PRINT between some of the Operations in your PCRs in order to see (in the Payroll Log) the Input, Processing and Output to the Operation. Once your you have confirmed that your PCR works correctly, you can delete Operation PRINT from the pcr.

istiaqhaider81
Explorer
0 Kudos

Dear Remi Corriveau,

Thank you

Answers (0)