Hi,
To design this may I know that are you using time evaluation for this.
If you are using time evaluation run then you will use the time type in this process for quota generation as well as update the quota on the 1st day of the calendar year.
Suppose your quota type is 10 and on the beginning of the year you are generating the quota to employee and it's adding with previous year quota balance if it's not catch the cap value( this process I am not discussing).
Now on the last day of the calendar year you will check that quota balance is more than 20 or not if 30 then excess will be lapse and 30day's will carry forward to next year 1st day.
ZCHK
*
****
VARSTCURMO
**
LEAVE
12
VARSTREDAY
**
LEAVE
31
HRS=FR10C
HRS?CZHQUT
*
HRS=FR10C
ADDDB1010Z
>
HRS=FR10C
HRS-CZHQUT
ADDDB1000Z
HRS=FR10C
HRS-D1000
ADDDB1010Z
Insert this PCR with ACTIO function after CUMBT function in the time schema. Time type will store the 30day's quota amount.
In the next month on the 1s day you will add this time type value with new generated quota against quota type 10.
ZJAN
*
****
VARSTCURMO
**
LEAVE
01
VARSTREDAY
**
LEAVE
01
HRS=L1010
HRS+D2000
ADDDB2000Z
Insert this PCR with ACTIO function after CUMBT function and after this PCR add CUMBT function once again.
Here time type 2000 is being used to generate quota value for quota type 10 in base entitlement( assume this pcr structure is already there and I have added time type 1010 which is taking quota capping value from the previous year).
Check and let me know.
Regards,
Sankarsan