Skip to Content
0
Former Member
Jun 30, 2016 at 04:05 PM

PCR payroll

39 Views

Hi , I have a requirement where I have to check if one wagetype is available in the IT table. If yes then I have to pass the other one unchanged to the output table otherwise not.

For example I have a WT 1234, If this wagetype has a value > or < than 0 then WT ABCD Needs to be passed unchanged to the output table. If WT 1234 is not available in the internal table or has a value of 0 , then WT ABCD needs to be 0 too.

I wrote two rules for this and it seems to be working but wanted to check with experts to make sure I didn't do anything wrong.

Rule 1: I store the value of WT1234 and WT ABCD in a variable

*

****

addwt

1234

addwt&bbbb

addwt

abcd

addwwtz111

addwt

then the second rule

*

****

abcd

amt?0

*

amt=& bbbb

amt?0

=

*

amt=& z111

addwt

=

addwt

Please advise