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)
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
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
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.
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 ??
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
ADDDBZ011Z Set day balance = 0
ADDDBZ012Z Set day balance = 0
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 ???