on 11-10-2010 10:14 AM
Hello ,
I have written a below PCR to carry forward maximum 10 leaves to the next year .
ZO02 Personnel Calculation Rule ZO02
*
****
VARSTCURMO Current period
**
03
VARSTREDAY Rel. day of period
**
31
HRS=FR05C Set
ADDDB9001 Add to day balance
04
VARSTREDAY Rel. day of period
**
30
HRS=9001 Set
HRS?10 Decision op. HRS
*
ADDDB9001 Add to day balance
UPDTQA05 Abs. Quota Accrual
>
HRS=10 Set
ADDDB9001 Add to day balance
UPDTQA05 Abs. Quota Accrual
Problem i am facing in this is value for remaining leaves is correctly coming in time type. but it is not updating in quota .
for example : when i am generating quota in 30 th April 2011 then quota entilment should be 2 + 10 carry forward from previous record if the remaining balance is more the 10 . In this scenario in my time type value is coming correct as 10 . but in Aprill 2011 month it is generating only 2 . it is not updating time types value .
My quota configuration is as follows :
Validity & deduction start & end date is 01042010 - 31032011 24 quota per annum , monthly 2 leaves , monthly accrual period.
Please help in solving this issue .
Thanks & Regards
I'm not familiar with operation UPDTQ since we don't use it, but there seems to be a time gap in your PCR.
If I read your PCR correctly, if it's the 31st of March, operations HRS=FR05C and ADDDB9001 are called,
and if it's the 30th of April, you make a decision on 9001 before calling operation UPDTQA05.
It seems that the carry forward should be done between March 31st and April 1st (not March 31st and April 30th).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What Remi said is correct, use HRS=FR05C instead of UPDTQA05 and ADDDB9001.
Now ur quota will be updated.
Regards
S.Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anant Dalvi,
You just write two PCRs for this,
one for identifying the quota on 31st March from the Absence Quota, which is working fine and the time type is getting the value on 31st march.
Second for carry forwarding the quota from time type to Absence Quota on 1st April, for that the logic provided below.
*
****
VARSTCURMO
**
Leave
04
VARSTREDAY Rel. day of period
**
Leave
01
HRS=L9001 Set
HRS?10 Decision op. HRS
*
ADDDB9001Z Add to day balance
UPDTQA05 Abs. Quota Accrual
>
HRS=10 Set
ADDDB9001Z Add to day balance
UPDTQA05 Abs. Quota Accrual
Just put this in a Second PCR, and insert two PCRs before CUMBT in Time Schema , run time evaluation and check it.
It should work.
Regards
Venu
Hi Venu Gopal ,
Thanks for your input .
I wrote Two PCRS as you suggested . Below is the logic for them .
First PCR
ZO02 Personnel Calculation Rule ZO02
*
****
VARSTCURMO Current period
**
03
VARSTREDAY Rel. day of period
**
31
HRS=FR05C Set
ADDDB9001 Add to day balance
Second PCR
ZO03 Personnel Calculation Rule ZO03
*
****
VARSTCURMO Current period
**
04
VARSTREDAY Rel. day of period
**
01
HRS=L9001 Set
HRS?10 Decision op. HRS
*
ADDDB9001Z Set day balance = 0
UPDTQA05 Abs. Quota Accrual
>
HRS=10 Set
ADDDB9001Z Set day balance = 0
UPDTQA05 Abs. Quota Accrual
And i called them in main schema using ACTIO function before CUMBT function .
On 01 April the value in time type is coming properly but same problem it is not updating the quota . Any other quota or time type configuration is missing ?
Please help .
Hi Anant Dalvi,
Check whether the time type is showing in ZES internal table,
I think you have missed one step.
You need to add this time type to TR11 PCR or best you copy the TR11 to your custom name (Ex: ZR11) and add this time type as provided below.
TR11
*
****
9001
ADDDB*
Let me know after that whether it is working or not, I think after that it should work.
Regards
Venu
Ok, in view V_T559L at the "Transfer Time" tab, what set in this tab?
Try to inform "Upon Accrual" at this tab, and check if the transfer packages is empty, or your Transfer will occur in packages to the infotype.
In the tab "Total entitl." the field Max. entitl. should be empty as well.
Regards,
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.