cancel
Showing results for 
Search instead for 
Did you mean: 

PCR to check basic pay is greater than 5K

SAPHCM2024
Explorer
0 Kudos
179

Hi Experts

My requirement is to call PCR XXXX if the basic pay is greater than 5,000, and call PCR YYYY if basic pay is lesser than 5,000.

When i try to use AMT?5000 in my PCR, it always goes to * irrespective of whether the Basic pay is < or > 5,000.

*

****

AMT?5000

*

ADDWT *

>

GCY XXXX 

<

GCY YYYY

Also please help me what parameter to pass from payroll schema?

Thanks

 

Accepted Solutions (1)

Accepted Solutions (1)

corriveau_remi
Active Participant
0 Kudos

If I'm not mistaken, the first Operation under ESG 2 should be VWTCL 01  and the return values should be all possible values of Processing Class 01. 

Note that all values that should not be considered could be grouped together under return value * with Operation ADDWT *

Next, if you do a Payroll Simulation (with the "Display Log" box checked) for one employee, and drill down to PCR Y016, look at the WTs in the Input Table to that PCR, and at the processing of each WT.

SAPHCM2024
Explorer
0 Kudos
Thanks Remi, I have tried with the VWTC01 as well. But the issue was due to the Division by Zero and its resolved now

Answers (1)

Answers (1)

Sanjayt
Explorer
0 Kudos

Instead of * use = and check

SAPHCM2024
Explorer
0 Kudos
if i use = instead of *, it ended up in error