cancel
Showing results for 
Search instead for 
Did you mean: 

Annual Leave Generation Based on Years of Service

bhagwatpandya
Explorer
0 Kudos

Dear All,

I have one scenario ; Employee hired on 01.01.2018 and get annual leave every month 1.75 (every year 21) but when he complete five years of service in the organization he will get 2.50 (every year 30).

Already system calculates based on PCR Annual Leave Generation but not consider completion five years.

Also Maintained 2 constant ZAL01 - 2.50 and ZAL02 - 1.75

PCR :

ZAL2 Annual leave quota

*

****

HRS=YDAAZ5 Set

HRS?0 Decision op. HRS

*

>

GCY ZAL21 Goto PC rule

1

****

OUTWPPERSG Employee group

*

N

OUTWPPERSB Employee subgroup

**

GCY ZAL2A Goto PC rule

11

GCY ZAL2C Goto PC rule

12

GCY ZAL2C Goto PC rule

13

GCY ZAL2C Goto PC rule

14

GCY ZAL2C Goto PC rule

15

GCY ZAL2C Goto PC rule

16

GCY ZAL2C Goto PC rule

17

GCY ZAL2C Goto PC rule

S

OUTWPPERSB Employee subgroup

A

****

VARSTCURMO Current period

**

VARSTREDAY Rel. day of period

**

01

HRS=CZAL01 Set

ADDDB9102 Add to day balance

GCY ZAL2B Goto PC rule

01

VARSTREDAY Rel. day of period

**

01

HRS=CZAL01 Set

ADDDB9102 Add to day balance

HRS=M9103 Set

ADDDB9102 Add to day balance

GCY ZAL2B Goto PC rule

B

****

HRS=0 Set

ADDMB9103Z Set month bal. = 0

C

****

VARSTCURMO Current period

**

VARSTREDAY Rel. day of period

**

01

HRS=CZAL02 Set

ADDDB9104 Add to day balance

GCY ZAL2B Goto PC rule

01

VARSTREDAY Rel. day of period

**

01

HRS=CZAL02 Set

ADDDB9104 Add to day balance

HRS=M9103 Set

ADDDB9104 Add to day balance

GCY ZAL2B Goto PC rule

Thanks for the support!

View Entire Topic
sikindar_a
Active Contributor
0 Kudos

you need to Query at the followng point in your PCR

HRS=YDAAZ5 Set

HRS?5 Here 5 is years of service

*

=

Here YDAAZ5 is combination of Caluculation of your years of service + your action type that is Z5 , Means from the start date to

Now you need to query From the start date to equal to 5 years for that you need to write another PCR without distrubing exising or you can tweak the following if you are expert in writing PCRs

Read HRS=Y Combiation in PE04



bhagwatpandya
Explorer
0 Kudos

Thank You.

Let me try and update you.