on 01-25-2015 7:09 PM
Dear Consultants,
I have a scenario, where we have to carry forward only up to 60 annual leave in a year to the next calendar year.
A) For 1st year, the annual leave quota is suppose to be 24 days (Constant field in "Set Base Entitlement)
B) From 2nd year onwards, the quota is suppose to be 30 days (Constant field in "Set Base Entitlement).
I created two time types like QUO1 and QUO2 and have written the following PCRs:
1) To generate the quota of 30 days (2.5 days each month) for the annual leave quota to be generated ( I assigned
the time type "QUO1" in the step "Set Base Entitlement" in the "Day Balance" field.
PCR1: ZQCA Personnel Calculation Rule ZQCA
*
****
HRS=CZQUOT Set
HRS/12 Division
HRS+MQUO2 Addition
ADDDBQUO1Z Set day balance = 0
HRS=0 Set
ADDMBQUO2Z Set month bal. = 0
2) To Identify 31-December
PCR2: ZQCM Personnel Calculation Rule ZQCM
*
****
HRS=BCURMO Set
HRS?12 Decision op. HRS
*
SCOND=F IF If condition false
=
HRS=BCURDY Set
HRS?31 Decision op. HRS
*
SCOND=F IF If condition false
LEAVE Stop with PC Rule
=
SCOND=T IF If condition true
LEAVE Stop with PC Rule
3 ) To check the conditions for carry forwarding only 60 annual leaves.
PCR3: ZQCF Personnel Calculation Rule ZQCF
*
****
HRS=FR10C Set
HRS?60 Decision op. HRS
<
HRS=FR10C Set
ADDDBQUO2Z Set day balance = 0
=
HRS=60 Set
ADDDBQUO2Z Set day balance = 0
>
HRS=60 Set
ADDDBQUO2Z Set day balance = 0
and below is the schema ZM04 positions of all this PCRs:
IF EOP Last day of payroll period
ACTIO TR90 Remunerate balance 0005
ENDIF Endif (end of payroll period)
IF EOM
ACTIO ZQCA
ENDIF
CUMBT Update balances, wage types...
QUOTA Generate absence quotas
IF ZQCM
ACTIO ZQCF
CUMBT
ENDIF
BLOCK END *********************************
Still I am getting only 24 days of annual leave ( Rule A mentioned above in the first line) getting carry forwarded.
Kindly help as it is urgent.
Thanks & Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Remi,
Employee can certainly have more than 60 days, but only the total of 60 leaves can be carry forwarded to the next year.
Details of V_T559E:
1) For first year:
Seniority : 000 - 012 Months.
Constant - 24 Days
Related to Period : Calendar Year.
2) For next year onwards:
Seniority : 012 - 999 Months.
Constant - 30 Days
Related to Period : Calendar Year.
Kindly suggest.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Zuber,
Your configuration is almost correct.You need to midify the ZQCF pcr.
In your ZQCF pcr would be like below.
ZQCF
*
****
HRS=FR10C
HRS?CZCMAX
*
LEAVE
>
HRS=FR10C
HRS-CZCMAX
HRS=R
HRS*-1
ADDDBZQU01
UPDTQA10
"ZCMAX" is the constant of 60 value. Could not understand why you have taken QU02 time type and
the below calculation HRS/12 ; HRS+MQU02.
You can go through the blow some document which will give you clear idea about design.
Check and tell me.
Regards,
Sankarsan
Hi Zuber,
In the base entitlement maintain only one base entitlement with QU01 as the period time balance. Accrual period should be tick and in the generation rule it would be monthly. Create three constant as ZMON1 = 2.00 ; ZMON2=2.5 & ZMAXC=60.00 . Also maintain the date of joining in IT41 with date type. For example i am taking date type is JD.
1st PCR:-
ZQMV (Monthly Quota value based on the Years of experience)
*
****
HRS=YDAYJD
HRS?1
*
HRS=CZMON1
ADDMBQU01Z
>
HRS=CZMON2
ADDMBQU01Z
Use this PCR before CUMBT function in the schema, use with ACTIO function.
2nd PCR:-
ZQCM it will remain same.
3rdPCR:-
ZCFQ
*
****
HRS=FR10C
HRS?CZMAXC
*
LEAVE
>
HRS=FR10C
HRS-CZMAXC
HRS=R
HRS*-1
ADDMBQU01Z
UPDTQA10
Check and tell me.
If result is not coming correctly then sahe the all configuration details with PCR and schema processing for pcr's input and output deatils for details analyze.
Regards,
Sankarsan
Hello Sankarsan,
Thanks for the answer, but the result which I am getting is as below:
I ran the time evaluation for the period 01.01.2014 to 31.12.2016.
On 31.12.2016, system shows the time evaluation log as shown below:
"Operation SCOND was not used in PCR ZQMV"
Technical Error No. 59".
After this I included the "SCOND" operation in ZQMV PCR as shown below:
(As per my understanding, I may be wrong):
ZQMV Personnel Calculation Rule ZQMV
*
****
HRS=YDAYJD Set
HRS?1 Decision op. HRS
*
SCOND=T IF If condition true
HRS=CZMON1 Set
ADDMBQUO1Z Set month bal. = 0
>
SCOND=F IF If condition false
HRS=CZMON2 Set
ADDMBQUO1Z Set month bal. = 0
The, after running the time evaluation, Iit created only the quota of 2.5days.
Please also find below the positions of PCRs in Schema:
IF EOP Last day of payroll period
ACTIO TR90 Remunerate balance 0005
ENDIF Endif (end of payroll period)
IF ZQMV
ACTIO ZQCM
ACTIO ZCFQ
CUMBT
QUOTA
ENDIF
BLOCK END *********************************
Kindly suggest
Hi Zuber,
I think you have not followed the process which i told you.
In the PCR ZQMV should not be lokk like. Kindly follow the last reply of mine of details PCR.
And have you have created Date Type "JD" in the system and you have to maintain date of joining against date type JD in IT41.
Regards,
Sankarsan
Do you have a Current Annual Leave Quota (set to time type QUO1) and a Cumulated Annual Leave Quota (set to time type QUO2)?
From your query, I will presume that the 1st year's monthly allowance is getting created correctly. Could you show how you configured the Base Entitlement for that Quota (in table view V_T559E).
If the employee does not use any of his Quota(s) in the first two years, the balance at the beginning of the third year will be of 54 days, plus the monthly allowance of 30/12 days. Can the employee have more than 60 days in the Quota during the year?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Remi,
Employee can certainly have more than 60 days, but only the total of 60 leaves can be carry forwarded to the next year.
Details of V_T559E:
1) For first year:
Seniority : 000 - 012 Months.
Constant - 24 Days
Related to Period : Calendar Year.
2) For next year onwards:
Seniority : 012 - 999 Months.
Constant - 30 Days
Related to Period : Calendar Year.
Kindly suggest.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.