cancel
Showing results for 
Search instead for 
Did you mean: 

Weekly Off (Saturday and Sunday ) Unpaid in PCR when LW/oP

Former Member
0 Kudos

Hi Experts,

How to make Weekly Off (Saturday and Sunday ) Unpaid in PCR when LW/oP is taken on Friday and Monday  , we are in +VE Time

Thanks

Dvnr

Accepted Solutions (0)

Answers (2)

Answers (2)

venkateshorusu
Active Contributor
0 Kudos

Try to use operation VARSTWEDAY VARSTWDY X then you can query particular week day in the week and then check whether employee has absent record or not operations VARSTABSCE, VARSTABSWD VARSTP2001, once we decided he/she is absent then accordingly we can generate a time type and use for further calculations.

Since our agenda Friday/Monday i.e we add 2 more days Saturday/Sunday and same can be updated in a wage type,imported to Payroll, can be used for further calculations.

Regards

Venkatesh

Former Member
0 Kudos

Hi All,

Any inputs on this please

Thanks

Dvnr

jagan_gunja
Active Contributor
0 Kudos

1. Table/view config:

1.1 T555A: Define time types as below:

   ZLWC - LWOP on wkg day: with daily cumulation.

   ZLWN - Prev day LWOP w/ curr day off.  daily cum

1.2  T554S - Ensure LWOP abs types are configured with

   Absence type(or category) (field ABSTP) = 'U'

1.3 Copy/create time w/t for off days in between LWOP days

   9LWP Off days for LWOP

   These are for no.of days

   If you need this w/t to be in hrs, then multiply the days by average daily hrs in IT 7

2. Time eval schema/PCRs

2.1 PCRs:

2.1.1  ZLW1 - Check if LWOP on non-working day

  (call pcr with RTIP)

        Grouping */****

              D  VARSTP2001         Set cond false; Input from IT 2001?

  *

  Y          D  VARABTYP                                -Yes;Abs category LWOP?

  Y *

  Y U       D VARABDAY                                 -  - Full day absent?

  Y U *

  Y U Y    D VARSTFREE                             -  -  -Yes;working day?

  Y U Y *

  Y U Y N    HRS=1          ADDDBZLWC          - -   -  Yes; add 1 LWOP t/t

2.1.2 pcr ZLW2  - Check if curr day not wkg and prev day LWOP

   (call pcr with RTIP)

     Grouping */****

              D  HRS=LZLWC  HRS?0                 Prev day LWOP with wkg day?

  *               VARSTFREE                             -Yes; today free day?

  *  *

  *  Y          HRS=1           ADDDBZLWN

2.1.3 pcr ZLW3 - Check if prev day & curr day not wkg and last wkg day LWOP

  (call with RTIP)

     Grouping */****

              D  HRS=LZLWN  HRS?0

  *           D  VARSTFREE

  * *

  * Y            HRS+1          ADDDBZLWN      

  =

2.1.4 pcr ZLW4  - Check if today and last wkg day LWOP and days between off

     (call with RTIP)

        Grpg */****

               D  HWS=DZLWC HRS?0

*

>            D  HRS=LZLWN  HRS?0

> *

> >             ADDZL 9LWP                      Add days off to LWOP days

Or to obtain hrs using average daily WS hrs from IT 7 replace last line as below

> >              HRS*IDAHRS ADDZL 9LWP

2.2 Insert following lines in time schema after TP20

          RTIP ZLW1  GEN         Check if LWOP on non-working day

          RTIP ZLW2  GEN         Check if curr day not wkg and prev day LWOP

          RTIP ZLW3  GEN         Check if prev day & curr day not wkg and last wkg day LWOP

          RTIP ZLW4  GEN         Check if today and last wkg day LWOP and days between off

2.3 In Payroll schema:

2.3.1 In XPPF and its sub PCR's or any other relevant PCR where the partial pay factor w/t's /801 to /816 are calculated (after function GEN8), use w/t 9LWP to reduce the factor for attendance hrs (or the hrs on which basic pay etc are to be reduced)

Above should cover the requirement