Hi Team,
I have a requirement to generate absence quota to be generated thru PCR :
Quota to be generated during beginning of the year(Jan' every year) for all existing @ of 12 days of Sick leave and 7 days of Casual Leave. I have written a pcr and it works fine.
However I need help to write a pcr to generate quota proportionality as and when a new employee joins any time during the year.
Requirement is advance quota to be credited during the first time evaluation for the new joinee i.e Sick Leave 1 day per month for remaining months in the year and 0.5833 day of Casual Leave.
Illustration : If a person joins during June'2012 for Leave year 2012, concerned employee should get : SL 7 and CL 4.08 (need to be rounded of to nearest whole no)
Regards,
Sandev
Hi Devesh,
I don't think you need a PCR for this. You can achieve this by making the following setting in reduction rule.
Reduction rule for inactive days - Accrual period.
Pct. of Inactive calendar days - 100%
To Percentage - Proportionate Reduction.
Thanks
Sairam Maharaj
Thanks Sai for your quick response.
1. In the standard system can we create advance leave accrual; to be credited in the beginning of the calendar year ?? We need to credit 12 day at once.
2. Need to generate quota for new joinees i.e advance leave on monthly basis on the first day of joining /month joining ?? Can this two things work together ?? Need your help to analyse
Regards,
Sandev
hi,
yes i agree with sairam dont need a PCR you can do it through generation rules V_T559L
ACCRUAL PERIOD as monthly
ACCRUAL ENTITLEMENT as pro rata calculation
TRANSFER TIME as upon accrual
and in table V_T559E
RELATED TO PERIOD as calender year
for sick leave you could round off using rounding rule
regards
vishal
Hi Vishal / Sai,
Then 1 day quota is Cr to the account as base is calendar year...How to credit 15 at once during the first time evaluation ??? I have tested it.
Need help.
Regards,
Sandev
Hi Devesh,
I thought you just want to reduce the quotas proportionately based on the hire date for which reduction rule will work. To generate quotas on the hire date, you will have to set the accrual flag for the employee in your PCR using HRS=YSAD01. If the valus is 1 then generate quota.
Thanks.
Sairam Maharaj
Hi Sai,
The issue is to create an exception only for new joinees and count the months remaining in the same calendar year so that we can multiply the monthly quota to be generated and credit it.
Which means; in the PCR we need to create two separate condition one for existing members entire advance leave can be created on 01 Jan of respective month. How to create an exception for new joinees ??
How to get the months remaining in same calendar year so that it could be multiplied and passed on to the base entitlement ??
Regards,
Sandev
Hi,
This will meet your requirement.
Z008 Personnel Calculation Rule Z008
*
****
VARSTREDAY Rel. day of period
**
HRS=QNUMAH Set
HRS/MZAMO Division
ADDDBTECL Add to day balance
Thanks
Sairam Maharaj
Hi Sai,
Any inputs ?? Suggestions Pl ??
Regards,
Sandev
Hi Sandev,
Sorry for the delayed response.
Try using reduction rule for proportiante reduction for new hires. Add the following for the new hires in your PCR and then configure reduction rule to reduce the quota proportionately.
*
****
VARSTCURMO Current period
**
HRS?YSAD01 Decision op. HRS
1
HRS=12 Set
ADDDBZ011Z Set day balance = 0
HRS=7 Set
ADDDBZ012Z Set day balance = 0
Thanks
Sairam Maharaj
Thanks a lot Sai,
Please note that below HRS?YSAD01 decision operation only <=> are allowed hence I am not able to add 1. Any work around ???
Regs,
Sandev
Hi Sai,
This works prefect to Cr leave on the date of joining keeping full year as base i.e Yearly 7 days of CL and 12 days of SL without checking the month..!!
I did check configuring reduction rule --> Accrual rule etc. This does not work as per the requirement. Any way out thru PCRs ???
Regards,
Sandev
Any inputs Sai ???
Regards,
Sandev