on 01-25-2013 6:14 AM
Hello All,
I am facing an issue while writing PCR in Time evaluation. My scenario is I have to compare the value of two quota PL12 & PL01 and in this PL12 = 35 and PL 01=12. At the end of the year my rule will check the sum of both quota and if it is greater then 45 then value of PL12 (which is 35) will be subtract from 45 (35-45=10) and remain value (which come 10) will update in PL01. so new value in PL01 will be 10 in place of 12.
Kindly have a look of my PCR:
But it is doing like PL12(35)+PL01(12)-45=2, so PL01 is updating with value 2. But I don't want to add both PL and subtract with 45. I just want to subtract PL12(35) from 45. Please help me to resolve my issue.
Best Regards,
Apoorwa
Hi Apoorwa!
Let me explain why PL01 is 02 after running PT60
As you can see before calling PCR Z11F, current value in PL01 is 12.
PL12 is 35. Let's see how Z11F run
HRS=FR12C => HRS=35
HRS+FRS01C => 35 + 12 = 47
47 > 45 (of course:D)
HRS=0 => assign 0 to HRS
HRS=FR12C => HRS =35
HRS-45 => HRS = 35-45 = -10
UPDTQA01 => update Absence quota type 01: current is 12, reduce (-10) => that's why PL01 is 02.
Because you just one to check total PL12 + PL01 = 45 (it's maximum).
So just edit as below:
HRS=FR12C
HRS+FR01C
HRS?45
*
>
HRS-45
HRS*1-
UPDTQA01
Hope it helps!
Regards!
Woody
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
I think where you have the > criteria and your PCR does this:
hrs=0
hrs=FR12C
HRS-45
UPDTQA01
You need to add in another line after hrs=FR12C and change the -45 to +45:
hrs=0
hrs=FR12C
hrs*1-
hrs+45
UPDTQA01
Result will = 10.
Regards,
Will
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
14 | |
8 | |
6 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.