cancel
Showing results for 
Search instead for 
Did you mean: 

2 Leaves per occasion and for maximum of 3times in a year

Former Member
0 Kudos

hi all,

I have a requirement of a leave which get deducted from another absence quota. EE can take upto 2 consequent days and maximum of 3 times in a year.

as said, this leave has to be deducted from another absence quota.

Looking for solution.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

sikindar_a
Active Contributor
0 Kudos

For Deduction of Absence from another Quota you can check the functionality of Deduction priorities in Deduction rule of absence Quota V_556R_B.  The other requirement if you have positive time you can achieve via PCR else for an year employee can take 6 days ie 2 days at a time for 3 times in case of negative u have to go with Enhance ment  lets Wait for other time experts suggestions

Answers (5)

Answers (5)

Former Member
0 Kudos

can anyone reply to this requirement pls..

raghu_c
Active Contributor
0 Kudos

The restriction of 3 times a year can be met through user exit PBAS0001 (include ZXPADU02) if in R3 and BADi PT_ABS_REQ in ESS as suggested by Rajasekhar.

The logic for the ABAP consultant would be Read the Leave subtype in the current year and if the count is 3 give an error.

Hope this helps.

Raghu

seg_hr_it
Active Contributor
0 Kudos

SAP cannot support that case. You have to request Abaper to build easy logic to check these condition from data in IT2001.

In SAP, it's userexit: you can find in function module EXIT_SAPFP50M_002 with T-code Se37.

Regards!

Woody

Former Member
0 Kudos

Hi Godavari, 

In table T554S, Enter "2" in Maximum Duration field for your absence type.Insert below PCR in your schema,replace "SICK" with you absence type in PCR. Use ACTIO function to call the PCR:

Table: V_T555A

Table V_T555E

Let me know if you still face any issue.

Regards

Shanmukh

Former Member
0 Kudos

Hi,

Thank you all.

Everything works fine, except the maximum 3 times per year, can we have any PCRs to control this...

Thanks.

Former Member
0 Kudos

I will try and let you all know..  thank you for the responses.

rajasekhar_reddy3
Active Contributor
0 Kudos

Hi,

First 2 leave per occasion this can be restricted through config V_T554S through Min and Maximum 001 to 002 days.

Leave has to deduct from another quotas as said by sikindar you can do it.

Below BADI will restrict employee not take leave more than 3 times a year.

If you are using ESS/MSS use badi :- PT_ABS_REQ

For R/3 you can use BADI HRPAD00INFTY

Regards,

Raja Sekhar

Former Member
0 Kudos

The deduction prirorites can be setup as Sikindar suggested. For the 2x3 requirement, it would be better if you built a custom table with PSG, ESG, Leave Type, Min, Max etc. An user exit on 2001 can read this table and make appropriate decison. If you are using ESS/MSS then same code needs to be used in the BADI PT_ABS_REQ.

Pramod