cancel
Showing results for 
Search instead for 
Did you mean: 

Employee should not be able to request leave if no quota - how to do?

Former Member
0 Kudos

Hi All,

We are on 7.3 ehp1 sp7.

We have a situation where employees are able to request leave even though they have no quoata.  I would have thought that there would be checks in place to prevent this from happening.

Is this configurable or do we need to write code to check?

Many thanks in advance,

Liz.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

So it turns out we were missing some code in our z implentation.  see note:

1806182 - ESS LEA: No (error) messages in ESS Leave Request

many thanks to everyone for the help

Answers (2)

Answers (2)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

You mean the absence type is not attached to the quota ?

You assign an absence to a quota in table V_556R_B and this is what we call deduction rule

check below and in table T556C

Time Management

  Time Data Recording and Administration

     Managing Time Accounts Using Attendance/Absence Quotas

           Time Quota Types

                Define Absence Quota Types

Table:

      V_T556A

we had similar issue, where you can request leave even though your quota is exhausted

Please read here and verify if this is similar to your case

Former Member
0 Kudos

Hi Liz,

If there is a quota type attached with the attendance/absence type then the standard SAP system will restrict in case if there is no quota balance for the absence type.

But in case if there is no quota type attached with the absence type then system will not restrict in this case please do implement the BADI - CL_PT_ARQ_REQ for the customer specific validations to be in place.

Hope this solves the issue.

Regards,

Mithun K

Former Member
0 Kudos

Hi Mithun,

Many thanks for the response.  Do you happen to know where I can check if a quota type is attched to the attendance type?  I have looked in spro and I can't see where quota type could be mentioned in the absense type.

This is where I'm looking:

Thanks again!

Liz.

Former Member
0 Kudos

hi

go to sm30  ----v_t554s_web  > clik on maintian

Specify Processing Processes for Types of Leave

For each rule group, maintain all the leave types that you want to allow on ESS.

For eg: For rule 1, maintain Personal Sub grouping for time ( in this case 40 ), maintain all the leave /

Attendance type ( like 0100, 0150, 0001 etc).

For employees, maintain all the leaves for rule group 1 and for self approval (for F and G) maintain all

the leaves for rule group 5. When you maintain a leave, specify it needs an approval or not and if

requires an approval maintain the workflow template to be used

Former Member
0 Kudos

Hi Liz,

Find the screenshot where you can check for the quotas which are been displayed against each rule group in ESS in table - V_T556A_WEB

And the association between the Absence type and a quota type will be through the configuration settings maintained.

A counting rule will be assigned to a Absence type and in turn in the counting rule there would be a deduction rule embedded in.

So this deduction rule will be assigned to the counting rule only if there is a quota attached with the particular absence type so in case there is no quota then no deduction rule assigned to counting rule.

Hope this clears the issue.

Regards,

Mithun K