cancel
Showing results for 
Search instead for 
Did you mean: 

Update PCR Rule Effective 01.10.2014 To Include Additional Employee Contract Types OUTWPEMPLR

Former Member
0 Kudos
217

I discovered a rule that didn't include all contract types for exclusion of counting bonus in to leave rate of pay. I don’t know where to put in my date stamp in the rule so that the rest of the work contracts are included effective 01.10.2014, currently only contract type 27 was excluded.

I’m thinking decision D WC20141001 but struggling to include the rule after 0101.

ZAVH Include Average rates into Rates of Pay

*

****

WGTYP? Query wage type

****

ADDWT * OT Output table

0101

OUTWPEMPLR Wrk contrct in v.key

**

ADDWT * OT Output table

NUM=1 Set

ZERO= R AmtNumRteTime = 0

AMT/2340 Division

MULTI ANR Multipl.amt/no/rate

ADDWT /093 OT Output table

27

ADDWT * OT Output table

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All

Thank you for the feedback

Solution is as below using operation CMPER.

ZAVH Include Average rates into Rates of Pay

    *

      ****

        WGTYP?     Query wage type

          ****

            ADDWT *    OT Output table

          0101

            CMPER 1508 Compare payroll per.

              <

                GCY ZAVHB  With exact w.types

              =

                GCY ZAVHA  With exact w.types

              >

                GCY ZAVHA  With exact w.types

    A

      ****

        OUTWPPERSB EE subgroup in v.key

          **

            ADDWT *    OT Output table

            NUM=1      Set

            ZERO= R    AmtNumRteTime = 0

AMT/2340   Division

            MULTI ANR  Multipl.amt/no/rate

            ADDWT /093 OT   Output table

          21

            ADDWT *    OT Output table

          22

            ADDWT *    OT Output table

          23

            ADDWT *    OT Output table

          24

            ADDWT *    OT Output table

          25

            ADDWT *    OT Output table

   26

     ADDWT *    OT Output table

   27

     ADDWT *    OT Output table

***

OUTWPEMPLR Wrk contrct in v.key

   **

     ADDWT *    OT Output table

     NUM=1      Set

     ZERO= R    AmtNumRteTime = 0

     AMT/2340   Division

     MULTI ANR  Multipl.amt/no/rate

     ADDWT /093 OT   Output table

   27

     ADDWT *    OT Output table

Answers (2)

Answers (2)

akshay_patil2
Explorer
0 Kudos

Hi Sabina,

One of the options would be as follows. This is based on the assumption that 01.10.2014 is the start date of a payroll period. If so, i suggest you do the following:

ZAVH Include Average rates into Rates of Pay

*

****

WGTYP? Query wage type

****

ADDWT * OT Output table

0101

<Check for the payroll period using the operation CMPER. If it is less than the payroll period for 01.10.2014, process below. If not, branch to a new node to include all the contracts>

OUTWPEMPLR Wrk contrct in v.key

**

ADDWT * OT Output table

NUM=1 Set

ZERO= R AmtNumRteTime = 0

AMT/2340 Division

MULTI ANR Multipl.amt/no/rate

ADDWT /093 OT Output table

27

ADDWT * OT Output table


If my assumption is not correct regarding the payroll period, please let me know and I will suggest an alternative solution.


Hope it helps.

-Akshay

GirieshM
Active Contributor
0 Kudos

Hi Sabina,

I have faced similar to your scenario before, to make comparison with the date in rule and you can find my post as well but I haven't received replies on that. later I proceeded with custom function. I am not sure that the date stamp can be done in rule, if you wish go with standard / custom function before doing that we can wait for some experts answer to this query.

With Regards,

Giriesh M

Former Member
0 Kudos

Hi Giriesh

Can you give me step by step  if using function WC20141001 how I would update below.

1153 Shift Allowance 5%

  OUTWPPLANT P.area in v.key

    ****

    0300

    0301

    0400

    1200

      WC20140401 Relate period 2 date

        *

          AMT=& 9701 Set

          AMT%80     Percent calculation

          AMT%KZ223A Percent calculation

          ZERO= N    AmtNumRteTime = 0

          ELIMI A    Elim.time period ID

          WPBPCD     for all WPBP

        <

          AMT=& BACA Set

          AMT%KZ223A Percent calculation

          AMT<KZ223B Form minimum

          ZERO= N    AmtNumRteTime = 0

          ELIMI A    Elim.time period ID

          WPBPCD     for all WPBP

GirieshM
Active Contributor
0 Kudos

Hi Sabina,

You need the help of an abaper in order to achieve this.

From the rule above I understood that,

if the WT 1153 exist and the personnel area is 1200, have to perform a logic.

Explain the logic to developer and tables to retrieve the data. Rest will be done by him.

Check the thread for reference: SAP HCM - Creating custom payroll function.

Revert back if you need any help. If my understanding is wrong anywhere please explain me.

With Regards,

Giriesh M

Former Member
0 Kudos

Hi Sabina,

You can try like query with Operation VARST for day & month in your pcr and use IF function in Schema with Jxx Parameter for year query and check documentation in PE04 and hope you can able to query your desired date wise PCR.

Try and let us know.

:Kedhar

former_member193210
Active Contributor
0 Kudos

Wether you use Operation WC (which I've never tried) or Operation CMPER (which I always use to delimit changes in Payroll PCRs), it must be inserted at a point where processing will differ depending on the return value from the operation.

In your initial query for PCR ZAVH, your first operation was a decision on the WT being processed (WGTYP?) and if it was WT 0101, then a new decision was taken on the Contract Type (OUTWPEMPLR).  Since you don't want to exclude Contract Type 27 as of 01.10.2014, this would be an appropriate place to insert Operation CMPER or WC.  If before that date, proceed with the decision on the Contract Type as previously, but as of that date, use the new processing.

Example :

WC20141001

*   ADDWT *     NUM= 1     ZERO= R   AMT/2340   MULTI ANR ADDWT /093

<  OUTWPEMPLR

     **      ADDWT *     NUM= 1     ZERO= R   AMT/2340   MULTI ANR ADDWT /093

     27     ADDWT *