cancel
Showing results for 
Search instead for 
Did you mean: 

Compare, multiply, divide wagetype amounts in Rule

Former Member
0 Kudos

Hi,

wagetypes 1000, 10001, 1002 prcessed in payroll and stored in RT Table. Now i want to process another wage type (2000) amount with comparing the wagetypes 1000, 10001, 1002 Constant amount (KONST) from Payroll parameter tabel.

In case of wagetype 10002 amount exceed KONST amount ---> Wagetype 2000 Value should calculate as 1000 * 10001/1002

In case of wagetype 1002 amount less than KONST amount ---> Wagetype 2000 Value should equla to 1000

Any one help on this...

Thanks in Advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try creating a new PCR as below:

*

****

AMT=  1002 (Read wage type 1002 from IT)

AMT?K<constant>   (If your constant is stored in T511k,else AMT?I<constant> if T511P)

>

AMT=  1000

AMT*   1001

AMT/   1002

ADDWTE2000

<

AMT=  1000

ADDWTE2000

*      (left blank since you have not mentioned the scenario where 1002= constant)

Call this PCR in an appropriate place in your schema using function ACTIO.