Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8078

Re: pcr help

$
0
0

Dear Omid,

Am really stuck and need your help!

need to get this working in payroll asap.

 

I have modified the PCR as per your inputs and details are as below--> I created two pcr's one to check the existence of WT ( ZEOF )and other to process the rule in case the wage type does not exists( ZESF )

 

I also placed the PCR ZEOF before ZEOS in schema ZAP9( copy of XAP9 after funtion P0015. However its not working when the WT exists. It goes to rule ZESF too even when the WT exists. Please check the pcr and suggest the correction!!

 

  1. 1. Check if 3113 exists in IT?

ZEOF Personnel Calculation Rule  ZEOF

    *

      ****

WGTYP?     Query wage type

3113

NUM=1      Set

ADDWT&VAR1 VAR  Variable table

 

  1. 2. If WT 3113 exists process rule ZEOS

ZEOS End of service calculation new WT creation

    *

      ****

        ADDWT *    OT   Output table

      3113 EOSB Payment (Final)

        PPPAR A    Termination in mnth?

*

A

AMT-  9008 Subtraction

AMT?0      Comparison

<

ADDWTE9308 RT   Results table

FILLF NRA  Fill amt/no/rate

ADDWT *    OT   Output table

=

ADDWT *    OT   Output table

>

ADDWTE9208 RT   Results table

FILLF NRA  Fill amt/no/rate

ADDWT *    OT   Output table

 

  1. IF WT 3113 DOES NOT exists process another rule( ZESF )

Process the amount held in accrual WT 9008 to WT 9308

 

ZESF Personnel Calculation Rule  ZESF

    *

      ****

        ADDWT *    OT   Output table

      3113 EOSB Payment (Final)

NUM=&VAR1  Set

NUM?0      Comparison

*

ADDWT *    OT   Output table

=

AMT=  9008 Set

ADDWTE9308 RT   Results table

FILLF NRA  Fill amt/no/rate

ADDWT *    OT   Output table


Viewing all articles
Browse latest Browse all 8078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>