on 07-14-2009 8:19 AM
Hello experts,
I want to subtract a wagetype(WT) result from other WT and store it in first WT in PCR. I want to equate the following equation in PCR
A = A - B
where A = /3RB (Technical WT : Perk value)
B = customized WT value with negative sign
Which function to use in PCR ?
Thanks in advance.
Hi Deepti,
First write a PCR to put the value of B into a variable.
i.e. * BBBB : ADDWT&BBBB
Then add this value into A in another PCR(you're adding not subtracting as value of B is already negative).
i.e. * /3RB :
AMT+& BBBB ADDWT *
Regards,
Dilek
Edited by: Dilek Ersoz on Jul 14, 2009 9:52 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created the PCR to store the value of WT B in variable.
I wrote * 1017 ADDWT&ZSAP (PCR ZCLA)
*/3RB AMT+ &ZSAP ADDWTE * (PCR ZHRR)
On simulation of payroll the PCR is not processed for the WT 1017. Also the second PCr, though it is processed the results are not changed... output is same as Input table
First check the input IT of PCR ZCLA whether there is an entry * 1017 (or anything else, e.g. 3 1017)
If it is 3 1017, for example, you should write PCR ZCLA for 3 1017.
Check this condition for the second PCR also.
Secondly, in the second PCR, you directly writing /3RB into RT table via operation ADDWTE *.
Depends on your schema structure, but you may need to keep it in output IT via ADDWT * as I have suggested before.
Dilek
I have checked the input IT of PCR. Its * 1017. when I used with other wage type /3R9 , it processed the PCR. In the output this wage type /3R9 was not available.
The second PCr was getting processed earlier as well but with no calculated results. Output is still same as input
Also I am using ADDWT * (to the output table) only.
Edited by: DeeptiGupta on Jul 14, 2009 1:05 PM
Operation SUBWT
PRess F1 to read document and syntax
Regards
...Sadhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.