cancel
Showing results for 
Search instead for 
Did you mean: 

PL minimum 3 or 1 depending upon SL cum CL quota

Niladri_B_Nayak
Active Contributor
0 Kudos

Dear Friends,

I've a requirement like this:

A person can avail minimum 3 PL at a time provided he has enough CL/SL balance(at least 1). It's ok with standard config.

But   1 or 2 PL can be availed after one has exhausted CL cum SL. How to fit this scenario in -ve time  ? We are using Time eval.

Regards,

Niladri

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182306
Active Contributor
0 Kudos

After 1 CL leave has exhausted . User should able to use his privilege leaves and for this Go ahead and approach ABAPER to do some kind of user exit.

Sanky
Active Contributor
0 Kudos

Hi Niladri,

As Mr. Jagan said you can define this in the deduction rule which would be connected with Counting rule of SL quota type or CL quota type.

In the deduction rule you have to give the prioruty based upon the quota type.

Check and tell me.

Regards,

Sankarsan

Niladri_B_Nayak
Active Contributor
0 Kudos

Hi Sankarshan/Jagan,

But the condition is , If an employee wants to avail less than 3-days of PL, he must exhaust his sick cum casual leave (Abs type : 0002 ; sick and casual leave are not different Abs type). Will deduction priority rule work here through config?

Let me comeback to you 2morrow

Regards,

Niladri

jagan_gunja
Active Contributor
0 Kudos

The purpose of the sequence of priority is to ensure the quota balance is exhausted in the order as configured.

ShrutiJoshi
Active Contributor
0 Kudos

Hi Niladri

If I understand your requirement correctly, you want the system to deduct 3 or more days of PL from the SL or CL quota provided its there as per the deduction priority set by you. However, if the employee is booking less than 3 PL then it should be booked only when the SL/CL quota is exhausted. Is that correct? If yes, then from which quota would you want your PL to be deducted if the SL/CL are already exhausted? If there is a separate quota from which you want to deduct the less than 3 day PL then I doubt if that would possible simply by the deduction rule configuration. Because the deduction rule does not have a check to count the number of leaves being booked and make the deductions based on that.

Niladri_B_Nayak
Active Contributor
0 Kudos

Hi Shruti,

Thanks for your reply. Requirement is bit different.

We've 2 different Leave types such as PL and Sick_Casual Leave with different Quota no.(Apr-Mar Leave cycle).


PL needs minimum 3-days at a stretch to apply and quota will deduct from PL quota only.

Sick_Casual needs minimum 1-day and quota will deduct from Sick_Casual leave Quota.


However , only dependency between PL and Sick_Casual is as below:


If a person has exhausted Sick_casual completely, then system should allow to take 1 or 2 PL otherwise not.



Regards,

Niladri

former_member182377
Active Contributor
0 Kudos

Hi Niladri,

do you have two separate absence types creaed and linked for each leave types, or just only one absence type to be used for both leave types.

Would you let me know ?

thanks

Sriram

Niladri_B_Nayak
Active Contributor
0 Kudos

Hi Sriram,

We've Abs. type: 0001 for PL and 0002 for Sick_Casual Leave.

Regards,

Niladri

former_member182377
Active Contributor
0 Kudos

Hi Niladri,

So you are saying like,  once abs type 0001 for PL is completely used, then 0002 for sick casual leave start working with the deduction, until PL is not used out,, 0002 should not be deducted though employee apply for that absence type..

Am i right?

Thanks

Sriram

ShrutiJoshi
Active Contributor
0 Kudos

Hi Niladri

Thanks for clearly stating your requirement. I dont think you will be able to achieve this by deduction rules alone. You will need abap intervention in this.

Niladri_B_Nayak
Active Contributor
0 Kudos

No Sriram,

It's different.

If a person wants to take PL , he must take minimum 3-days , provides he is having at least one Sick_casual. At that time he can't take 1 or 2 PL as he is having SL_CL quota.

Once consumed SL_CL completely, PL rule relaxed to minimum should be 1 or 2-day.

Regards,

Niladri

Niladri_B_Nayak
Active Contributor
0 Kudos

Yes Shruti.

My design now became a hybrid model of Standard config and ABAP intervention .

Regards,

Niladri

former_member182306
Active Contributor
0 Kudos

Mr. Niladri,

Please be more clear on your requirement.

jagan_gunja
Active Contributor
0 Kudos

In V_556B_R, for the absence counting rule, ensure the absence quota types are in the order of deduction as you need and not be in alphanumeric sequence.  Absence type configuration and the corresponding absence quota type deduction is purely to do with how IT 2001 is processed and deducted from absence quota types balances in employee data maintenance

The deduction has no bearing with time evaluation.