on 10-18-2016 12:17 PM
Hi
I have a requirement , we have earned leave split in two leave ie PL & MPL
Written PCR for splitting Earned Leave please check below.
ZFUP Split PL & MPL
*
****
HRS=0
Set HRS+D9P44 Addition
HRS?10 Decision op.
HRS * COLOP* TIP >TOP curr.TType >
HRS=0 Set HRS+D9P44 Addition
HRS-10 Subtraction
ADDDB9P02 Add to day balance
HRS=0 Set
HRS+D9P44 Addition
HRS-D9P02 Subtraction
ADDDB9P75 Add to day balance
My client wants it has to split when employee joins on 01.01.2016 to 15.01.2016
If employee joins on 16.01.2016 doesnt want to split this leave
Please help!!!
Regards
Srinivas Naidu
If the only period when you have to "Split" PL and MPL is between 01.01.2016 and 15.01.2016, then you could create a Constant in table view V_T511K with a value of 1 for that period and a value of 0 before and after that period. You could then use that constant in a Time Evaluation pcr to query the date being processed (as in HRS=CZZZZZ HRS?1 ), and if the return value is 1 then you do the split, and if the return value is something else (*) then you don't split the Quotas.
If the Quota Splitting Rule is to be applied every year and/or every month, then perhaps some other Operations would be more suitable for the Query, such as one on the Month and on the Day (as in VARSTCURMO and VARSTREDAY).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
In this case you have to maintain the Employee DOJ in the IT 0041 and in the PCR you have to check with the condition that DOJ is < or > the 15th of month and if the condition is > then you have to go with the above written PCR. If the condition is </= then you have to write the another PCR to add to the one abs quota only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
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.