cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member578797
Discoverer
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193210
Active Contributor
0 Kudos

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?