Skip to Content
0
Dec 23, 2022 at 06:52 PM

Annual Leave Generation Based on Years of Service

250 Views Last edit Dec 25, 2022 at 06:13 PM 2 rev

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!