I have seen a lot of questions involving generate absence quota in scn. Thus I would like to share my knowledge to you.
In order to easy understand I will resolve 1 requirement in actual as below:
Generate absence quota 2 days per month for every employee.
If employee is hired:
- Before 10th he will be able to have 2 days in his absence quota.
- From 10th to 20th: 1day.
- From 21st to end of this month: 0 day
I will show you how to do it in my document: http://www.mediafire.com/view/?u40an99i6fde29e
The important points are 2 PCRs here:
HRS=BCURDY -> get the date that it’s running in PT60 (Time Evaluation).
HRS?01 -> Check with the first date of month.
If true, assign 2 into 9H00.
Else check M9H00 ( check absence quota has been created in IT2006 or not).
If not, go to ZE01.
In ZE01, I checked:
If date > 20: Absence Quota = 0.
If date >9 & date <= 20: Absence Quota = 1
If date > 1 & date <= 9, Absence Quota = 2.
And 9H00 is a time type to hold the value of Absence Quota in Infotype 2006.
Hope you can control it soon.