Dear Experts,
We have a requirement, if working hour is 4 hours and less than 4 hours, in that case, deduct half and full day leave respectively. We have written a custom pcr and are able to store the value in time type.
Now, second requirement is to deduct leave in sequence, where we are getting issue. For example, there are three quotas, and system should deduct in sequence first, 01, 02 & 03 and after that LOP will be marked.
Illustration:
Value of less than 4 hours time type is = 6
and suppose, quota balance of 01 is 2, 02 is 1, & 03 is 2, in that case, system should deduct leave in defined sequence, 01, 02, 03 and if still balance, in that case, mark the lop.
*
****
HRS=FR01C Set
HRS?M9999 (less than 4 hours time type) Decision op. HRS
<
HRS-M9999 Subtraction
HRS*-1 Multiplication
ADDDB9LTE Add to day balance (store remaining deductable leave)
GCY ZBUFA Goto PC rule
=
HRS-M9999 Subtraction
UPDTQA01 Abs. Quota Accrual
>
HRS-M9999 Subtraction
UPDTQA01 Abs. Quota Accrual
Please advise, how to resolve the issue.
Regards,
Naidu.