cancel
Showing results for 
Search instead for 
Did you mean: 

PCR syntax

Former Member
0 Kudos

Hi Experts

I am facing a problem regarding the syntax of a customized payroll PCR.

The PCR is designed to deduct 2 wage types, and add the result on a third wage type. The syntax written was as the following:

    *

       9501 Gain Work Tax

            ADDWT *    OT   Output table

            AMT-  3046 Subtraction

            SUBWT 3047 OT   Output table

The problem is in the subtraction part, as its not working. When I checked the IT for the rule in the payroll log, I found only wage type 9501 ,while 3046 is not available, although it is calculated in another previous PCR.

I appreciate your feedback.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Sanky
Active Contributor
0 Kudos

Hi,

I think you would like do the following arithmetic calculation in your custom pcr.

WT3047=WT9501-WT3046  Am i correct?. If i am correct then do the below way.

*

  9501

          ADDWT *

          AMT= 9501 (after = give one space)

          AMT- 3046  (after - give one space)

          ADDWT 3047(after ADDWT give one space)

****

        ADDWT *

Check this.

Regards,

Sankarsan

Former Member
0 Kudos

Hi,

Thanks a lot for your reply. Your equation is correct.

The problem is that wage type 3046 does not exist in the input table of the calculation rule.

The problem is still there.

Thanks

Sanky
Active Contributor
0 Kudos

OK.

Then you insert this PCR in the schema where in the input table you are getting wage type 9501 and 3046.

Regards,

Sankarsan

Former Member
0 Kudos

The pcr is already inserted in the schema where 9501 is generated. 3046 is generated in an earlier schema.

Sanky
Active Contributor
0 Kudos

Hi,

Are you saying that WT3046 is generated in the previous sub schema?

Then tell me what's the pcr you have written for WT3046 generation.

Are you used ADDWTE3046 in the pcr? If then change it to ADDWT 3046. or if you don't want it into Input table and pass the WT3046 value to variable wage type &3046 like the operation ADDWT&3046.

And in the current which we are working change the AMT-  3046 to AMT-& 3046.

Check and tell me.

Regards,

Sankarsan

Former Member
0 Kudos

Many thanks for your reply.

Based on your decision, I added ADDWT&3046 in the end of 3046 calculation rule. The problem is resolved.

Answers (1)

Answers (1)

venkateshorusu
Active Contributor
0 Kudos

Modify PCR slightly where you wanted to deduct 2 wage types then later you can use ADDWT SUBWT according to the requirement.

XXXX is 10000 YYYY,ZZZZ is 1000

   AMT-  YYYY(10000-1000)

   AMT-  ZZZZ(9000-1000)

   SUBWT AAAA(-8000 will be stored in AAAA)

   FILLF ANR

   ADDWT XXXX(XXXX will hold the value 10000 in output table).

Regards

Venkatesh

Former Member
0 Kudos

Hi,

I appreciate your reply.

For more clarification, the following equation is the one i need to apply:

WT3047=WT9501-WT3046


The problem is that, wage type 3046 is not available in the input table of the calculation rule.

This is the main problem which i face now.

venkateshorusu
Active Contributor
0 Kudos

Write PCR as mentioned below.

   9051

     AMT-  3046(10000-1000)

     ADDWT 3047(9000 will be stored in 3047)

     FILLF ANR

     ADDWT 9501(9501 will hold the value 10000 in output table).

  and check from where 3046 is getting calculated  and whether it is there in Input table or not if not we have to pass the wage type 3046 to Input table then it works.

Regards

Venkatesh

Former Member
0 Kudos

Thanks a lot for your reply. It was very useful.

I appreciate your help in supporting me how to pass 3046 in the input table, as the main issue is that 3046 is not available in the input table of the rule.

Thanks in advance.

venkateshorusu
Active Contributor
0 Kudos

As mentioned there is a rule which is calculating 3046 whether it is calculating 3046 or not check. place the same what logic is being used to calculate 3046 and where exactly it is been placed in schema.

Further more rule which has been written for 9501 calculation where exactly it is placed in schema.

The PCR which has been written for the 3046 calculation should read first in the schema then later 9501 PCR should read.

Regards

Venkatesh

Sanky
Active Contributor
0 Kudos

oo great.

Regards,

Sankarsan