cancel
Showing results for 
Search instead for 
Did you mean: 

PCR Multiply NUM * AMT

Former Member
0 Kudos

Hi Experts,

I have generated a wage type for absence type via Valuate Absences by Constants/Averages. Now this wage type has the Num. I am writing a PCR where i am calling this absence wage type and want to multiply the NUM of this wage type with my Basic Type wage type. Hoever i am not getting the vale of my basic pay wage type in the pcr. Please see the PCR below

*

XXXX (Absence wage type generated)

Amt= YYYY (Basic Pay wage type. The one that have a values in the amount).

Multi NAR (as I mentioned above)

Addwt * (send it to the it)

In schema i have placet: PIT ZXXX NOAB

This PCR is not working for the wage type generated for absence via Valuate Absences by Constants/Averages.

Please help me reslove this.

Remi & Edoardo you have provided a solution for a similar kind of issue. Please provide your inputs.

Regards,

Koutilya A.K

Accepted Solutions (1)

Accepted Solutions (1)

former_member193210
Active Contributor
0 Kudos

In the input table just before your PCR is processed, what are the ESG splits and RTE, NUM, AMT values of WTs XXXX and YYYY ?

According to your PCR, they both must have the same ESG split, WT XXXX must have a value in RTE and in NUM, and WT YYYY must have a value in AMT.

Former Member
0 Kudos

Hi Remi,

Wage Type xxxx has Num as 4 and wage type yyyy has amt as 1248. In the pcr the amt value of yyyy is not being read.

Where can i see the split.

PLease perovide your inputs.

Regards,

Koutilya A.K

Former Member
0 Kudos

Hi Remi,

I have used operation elimi to remove the splits, before the processing in the IT table wage type xxxx has has Num as 4 and wage type yyyy has amt as 1248.

In the processing PCR is not reading the amt value of wage type yyyy.

REgards,

KOutilya A.K

former_member193210
Active Contributor
0 Kudos

Eliminating all splits of WT XXXX may not be the solution because WT YYYY could still have some.

Create a new PCR to insert just before the one you are working on, and make a decision using operation WGTYP?

for return value ****, use operation ADDWT *

for return value YYYY, use operation ADDWT& YYYY followed by ADDWT *

This will transfer the values of WT YYYY into a temporary variable.

Then, modify your PCR for ESG * and WT XXXX to have the following operation sequence:

AMT=& YYYY MULTI NAR ADDWT *

Former Member
0 Kudos

Hi Remi,

Thanks a lot... your inputs solved my problem. I am still wonering why it didnt work with regular with one PCR y should we add to variable and then write another pcr.

REgards,

KOutilya A.K

former_member193210
Active Contributor
0 Kudos

If the 2 WTs in IT don't have the same splits, it can be tricky to combine them in a PCR.

Answers (0)