on 12-18-2017 8:16 AM
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.