Create a Time pcr that will query the Quota (using Operation OUTAQTYP), and for the return value 14, use Operation HRS=QCREST to find it's Balance and transfer that into an Information Time Type (using Operation ADDDBxxxx). Insert that pcr in your Time Evaluation Schema before the Quota Allowance Calculation pcr, and call it through Function P2006.
You will then have an Information TT that can be used to calculate the Allowance of Permanent employees, but you should still delimit the Temporary employee's Quota as of the Transfer Date.
Thank you very mucha Remi !
I ve tried counting the days between the current date and expiration day of the quota by HRS=FV14L, if its bigger than 365 then is not the current year. I think Its similar.
ZPRP * **** OUTWPPERSG
ZPRP * **** * HRS=YDEYZ3
ZPRP * **** * HRS?1 Operac.decisión HRS
ZPRP * **** * * HRS=FV14L
ZPRP * **** * * GCYGZPRP1
ZPRP 1 **** HRS?365 Operac.decisión HRS
ZPRP 1 **** * HRS=FR14C
------....
ZPRP 2 **** < HRS/14
ZPRP 2 **** < HRS-D0QTA
ZPRP 2 **** < HRS*-1
ZPRP 2 **** < ADDDB0QTAZ Activ.SaldDía = 0
ZPRP 2 **** < ADDDB0QTBZ Activ.SaldDía = 0
Add comment