Skip to Content
0

PCR to Generate Different Absence Quotas depending on Initial Date of Entry?

Dec 18, 2017 at 08:16 AM

23

avatar image

Dear Experts,

In my scenario, we have two contract types, a One Year contract and a Two Year contract.

One Year contract employees are entitled to 30 days of annual leave per year. (C1)

Two Year contract employees are entitled to 21 days of annual leave per year. (C2)

However, once a Two Year contract employee has completed 5 years (1825 days since joining date) his/her entitlement should be increased to 30 days of annual leave per year.

Can anyone please help me on how I should write the PCR where it will accomplish the following;

C2 Employee

IF

(Today Date - Employee Date of Entry) >= 1825

THEN

Generate Quota as C1

ELSE

Generate Quota as C2

Thank you all in advance for taking out the time to help. Much appreciated.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Rémi Corriveau Dec 18, 2017 at 06:03 PM
0

What "Entry Date" will you be using? The initial Hire Date or a Date in IT0041?

To achieve "(Today Date - Employee Date of Entry) >= 1825" will require Time Evaluation Operation HRS=Yxxxxx (read the documentation on Operation HRS and then HRS1, and then HRS1Y, to find what you require as the last 5 characters).

You will then need to compare the result (return value) to a constant in V_T511K through Operation HRS?Cxxxxx (read the documentation on Operation HRS and then HRS1, and then HRS1C).

Look at some other Time Evaluation Rules (how they are built, how they are called in the TE Schema, how they process the data, etc.) and make an attempt at creating the change you require.

P.S.: If this is a change to an existing system, try to identify if you need to delimit the change in time. What should happen if TE is calculated retroactively?

Share
10 |10000 characters needed characters left characters exceeded