cancel
Showing results for 
Search instead for 
Did you mean: 

PCR - Populate only the WT with higher amount in RT Table

Former Member
0 Kudos

Hi,

Can anyone please help me with the following scenario.

I've 2 WTs which are stored manually in IT0015.

WTs hold values in 'Hours' format and the amount is generated in the payroll run according to the valuation bases.

I am trying to develop a PCR which will compare these 2 WTs generated amount and will reflect only the WT with higher mount in RT table. The WT with the lower amount MUST NOT reflect in RT.

Do let me know if any further details are required regarding the scenario.

Looking for your great help!!

Regards,

Abhishek

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

u can user the AMT? compare with two wage types

and passon the wage type to RT,

Regards,

Kapil

Former Member
0 Kudos

Hi Kapil,

Thanks for your input but I'm afraid its not that simple.

I've already created the PCR with the same logic (comparison of the WTs) but I dont know how to stop the WT with lower amount from getting passed to RT table.

Former Member
0 Kudos

Hi,

you can have two wage types say X and Y query Query X with Y

AMT?

After that u can have your processing depending on the requirement.

Regards,

Kapil Kaushal

Former Member
0 Kudos

write three PCR's

First PCR will compare the amounts and will decide whether B is greater than A or less than A

If greater than A using operation GCY which will take you to the second PCR

if less than A using operation GCY branch to the third PCR

second PCR will again read both the WT, but should have addwt * operation only for the WT B

third PCR will agin read both the WT, but should have addwt* operation only for WT A

Former Member
0 Kudos

Hi Abhishek,

If you set the processing class 5 of the WT to Y, then it won't be added to RT.

Regards,

Dilek