on 02-24-2014 6:26 PM
Hello All,
Our company has the following Personal Leave Accrual policy:
At the completeion of:
6 months of employment - employee accrues 8 hours/employment year. (deduction validity starts from after 6 months of employement).
12 months of employment - 16 hours/employment year
24 months of employement - 24 hours/employment year
So, validity period would be FROM Date of hire TO 12 months after the date of hire. It is use or loose by the end of the employment year.
For example: Employee is hired on February 5th, 2014
On August 4th, 2014 - accrues 8 hours of Personal Leave (Validity period = 02/05/2014 - 02/04/2015; Deduction period = 08/04/2014 - 02/04/2015)
On February 4th, 2015 - accrues 16 hours of Personal Leave (Validity period = 02/05/2015 - 02/04/2016; Deduction period = 02/05/2015 - 02/04/2016)
On February 4th, 2016 - accrues 24 hours of Personal Leave (Validity period = 02/05/2016 - 02/04/2017; Deduction period = 02/05/2016 - 02/04/2017)On February 4th, 2017 - accrues 24 hours of Personal Leave......and 24 hours/year in the subsequent years.
This was previously handled by an erroneous custom PCR. However, I have been trying to do get this done by Standard SAP configuration, but do not seem to get the expected results.
Question:
1. Is this doable by Standard configuration tables? If so, how?
2. If it is not doable by standard configuration, how should I build a custom PCR?
Much appreciate any help in this regards.
Thanks,
Soujanya.
Hi,
set the base entitlements accordingly as
Seniority - 6-12 Months,
Constant - 8 hrs
Seniority - 12-24 Months,
Constant - 16 hrs and so on
then you set the date type criteria to Hire date and validity for the first quota as 06 months and 12 months relative position at the valid from and up to tab and the same way the deduction intervals too with your requirements and there also should be a date type maintained in 0041 for same or the system would error out.
BR
Upen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank Upen,
While giving up on the Standard method, yesterday I went ahead correcting erroneous PCR.
This gives me the exact quotas at the exact times, but I am not able to clear the absences already used. Do you have any suggestions for that?
Below is the PCR:
D OUTAQTYP
**
97 D HRS=YDAD01HRS?181
97 * D HRS=YDAD01HRS?366
97 * * D HRS=YDAD01HRS?731
97 * * * Z GCY &QT2
97 * * = HRS=0 HRS+24.00 ADDDB0410Z%PDTQA97
97 * = HRS=0 HRS+16.00 ADDDB0410Z%PDTQA97
97 = HRS=0 HRS+8.00 ADDDB0410Z%PDTQA97
NOTE %PDTQ is a custom operation built similar to UPDTQ, just the difference being this operation replaces quota regardless of the setting on V_556A_B.
This is the result of the PCR:
Personal leave is generated now from hire date to the end of the period:
02/05/2014 - 12/31/9999 with 0 hours on Feb 5th, 2014
02/05/2014 - 12/31/9999 with 8 hours on Aug 4th, 2014
02/05/2014 - 12/31/9999 with 16 hours on Feb 5th, 2015
And so on.
If employee were to take a personal day off on 02/04/2015 = 8hours
When 16 hours add on Feb 5th, 2015, it still keeps the 8 hours used:
02/05/2014 - 12/31/9999 with 16 hours on Feb 5th, 2015 with Used hours = 8hours. How can I clear the used hours also when I replace the Absnece quotas?
Thanks,
Soujanya.
I am checking for the Absence Quota Type (97 - Personal Leave).
If yes, then check for the days from the Anniversary date.
On the 181th day from Anniversary date, I set the quota number = 0 and add 8 hours that day.
On the 366th day from Anniversary date, I set the quota number = 0 and add 16 hours that day.
On the 731st day from Anniversary date, I set the quota number = 0 and add 24 hours that day.
After that, I do similar checking every year till the next 85 years of service (In Rules &QT2 till &QT13)....bit lenghty, but that was what the company has been using for years now, I just tweaked it a little bit to get it right.
Again the problem here is, as I am re-setting the Quota to the right amounts, I would like to reset the used hours for the previous year also, when I update the quota. How to do that?
below is the logic in tree format:
&QTA Quota Accumulation for Personal Time
*
****
OUTAQTYP Quota type
**
97
HRS=YDAD01 Set
HRS?181 Decision op. HRS
*
HRS=YDAD01 Set
HRS?366 Decision op. HRS
*
HRS=YDAD01 Set
HRS?731 Decision op. HRS
*
GCY &QT2 Goto PC rule
=
HRS=0 Set
HRS+24.00 Addition
ADDDB0410Z Set day balance = 0
%PDTQA97 Abs. Quota Accrual
=
HRS=0 Set
HRS+16.00 Addition
ADDDB0410Z Set day balance = 0
%PDTQA97 Abs. Quota Accrual
=
HRS=0 Set
HRS+8.00 Addition
ADDDB0410Z Set day balance = 0
%PDTQA97 Abs. Quota Accrual
Thanks again.
Your PCR is correct and the system is also behaving correctly, if you are using the same quota then it will show the used hours also, untill unless you delete the absence and run the time eval again but then the quota would be shown as unused. If it is the business requirement then there is a need to understand the logic behind why it is needed.
BR
Upen
Basically the Quota is built From hire date to 12/31/9999 (ex: 02/05/2014 - 12/31/9999)
At 6 month mark and at every anniversary, we are replacing the Quota hours but not the number of hours used in the quota.
So at 6 months:
02/05/2014 - 12/31/9999: Quota = 8hours; Used = 0
Lets say employee used 8 hours leave on 02/04/2015 (day before anniversary)
At 1st year anniversary:
02/05/2014 - 12/31/9999:: Quota = 16hours; Used =8hours (this 8 hours satyed back from 02/04/2015)
So for the 16 hour quota alloted for (per say 02/02/2015 - 02/04/2016), now it is left with only 8 hours not yet used, starting on the anniversary date itself. So, I want to reset the used hours also every time I replace Quota. Hope I could clear up the requirement.
Thanks.
User | Count |
---|---|
110 | |
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.