Skip to Content
author's profile photo Former Member
Former Member

Generate Annual leave based on Sceniority

Hi All,

Please help me in the enclosed scenerio:

The scenerio is that the employees who join before 1st Jan 2010 are entitled for flat 20 days of annual leave.The employees who join after 1st Jan 2010 are entitled for Annual leave based in sceniority as below:

1)

Constant in t511k Sceniority Days

0032A More Than 19 years 30,00

0032B 18-19 years 29,00

0032C 17-18 years 28,00

0032D 16-17 years 27,00

0032E 15-16 years 26,00

0032F 14-15 years 25,00

0032G 13-14 years 24,00

0032H 12-13 years 23,00

0032I 11-12 years 22,00

0032J 10-11 years 21,00

0032K 1-10 years 20,00

0032L Less Than 1 year 0

0032M Ann. Leave Before Jan2010 20,00

2) T555A : Maintained a Time Type as 0032.

3) T559L :

a) Grouping in Selection Rule is as follows:

ESG for time quotas 3

PSG for time quotas 28

PSG for time rec. 28

Quota type sel. grp 01

Selection rule 014 Annual leave

Absence quota type 32 Annual Leave

b) Assigned the time type in Base entitlement in the Day Balance.

ES grpg for time quotas 3

PS grpg for time quotas 28

PS grpg for time recording 28

Absence quota type 32 Annual Leave

Rule for base entitlement 001

Sequential no. 001

c) Quota type is set to Increase.

4) Time Schema being used : TM04.

5) Coded a PCR as follows:

000010 D HRS=BCURYRHRS?2010

000020 * D VARSTCURMO

000030 * **

000040 * 01 D VARSTREDAY

000050 * 01 **

000060 * 01 01 Z HRS=YDAY01PAYTP C

000070 > HRS=YDAA01HRS=1 HRS=C0032M

000010 D HRS?0

000020 * Z PAYTP D

000010 D HRS?1

000020 * D HRS?10

000030 * * Z PAYTP E

000040 * > HRS=C0032KADDDB0032

000050 < HRS=C0032LADDDB0032

000010 D HRS?11

000020 * D HRS?12

000030 * * Z PAYTP F

000040 * > HRS=C0032IADDDB0032

000050 < HRS=C0032JADDDB0032

000010 D HRS?13

000020 * D HRS?14

000030 * * Z PAYTP G

000040 * > HRS=C0032GADDDB0032

000050 < HRS=C0032HADDDB0032

000010 D HRS?15

000020 * D HRS?16

000030 * * Z PAYTP H

000040 * > HRS=C0032EADDDB0032

000050 < HRS=C0032FADDDB0032

000010 D HRS?17

000020 * D HRS?18

000030 * * Z PAYTP I

000040 * > HRS=C0032CADDDB0032

000050 < HRS=C0032DADDDB0032

000010 D HRS?19

000020 * HRS=C0032AADDDB0032

000030 > HRS=C0032BADDDB0032

Issue : Either one of the scenerio doesn't work . My Question(s) are as follows:

1) How can ce check if the hire date is before 1st Jan 2010 in a PCR . (I am new in PCR coding)

2) Please help me find out the changes I shall make to get the desired result.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 08, 2010 at 02:30 PM

    HI SHIVANI

    IF U R USING TIME EVALUATION, U NEED TO DO IT WITH RULES, STANDARD CONFIGURATION WILL HELP U. jUST IN THE FEATURE HDATE MAINTAIN THE HIRING DATE AS 01.

    When an employee joins ur company maintian dynamic actino that creates date type 01 in ur infotype 41 as 01.

    In quota configuration for lenght of service maintain ur requirement as

    0-20 x days

    20-30 y days

    30-4- z days

    it will work.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 04:32 AM

    You can do this using T559L.

    1. Assign two work contracts (P0001-ANSVH); one to employees joining before 01.01.2010 and one to employees joining on and after 01.01.2010*

    2. Use feature QUOMO to divide employees (on the basis of their work contract) to two separate quota selection rule groups

    3. Build two sets of base entitlement rules, one with flat 20 days and one with the gradually increasing version on the basis of seniority

    4. Assign your quota generation rules to the appropriate quota selection rule group and base entitlement.

    • If the number of employees joining before 01.01.2010 is not that many, you can also use PERNR in the feature to segregate these employees into the appropriate quota selection rule group.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.