cancel
Showing results for 
Search instead for 
Did you mean: 

Operation On Wage Types in PCR

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Operation SUBWT

PRess F1 to read document and syntax

Regards

...Sadhu