cancel
Showing results for 
Search instead for 
Did you mean: 

HCM Leave: Dynamic deduction of quota hours

kammaje_cis
Active Contributor
0 Kudos

We maintain leave quotas in hours.

We have a common 12-hour work schedule assigned to all our employees. But employees work in different hour shifts. Some work for 8 hours/day, some for 9 hours/day, some for 10 hours/day, so on. Employees change their shifts very often as well

When employees apply for leave, they are requested to enter their current schedule, i.e. hours/day as well. If they take a leave for three days and enter 9 hours/day as their schedule for those leave days, then only 27 hours should be deducted. (not 12*3 = 36).

We use Fiori for leave entry, so adding a custom field for entering users current workhours/day easily done.

But how to ensure that only user entered current schedule is considered for deduction? Any suggestion is highly appreciated.

Accepted Solutions (0)

Answers (2)

Answers (2)

BalaAP
Active Contributor

Hi,

Another alternate approach is creating different absence sub types for all 3 types and allowing employees to apply it ( and checking of correct sub-type with appropriate to the employee's current work schedule can be done in user-exit/badi). Deduction hours can be can be configured with dws class (and restriction can be also made in par with a particular dws).

regards,

Bala

kammaje_cis
Active Contributor
0 Kudos

I think it is a possible solution. Only issue is that users will have too many leaves to choose from. Also we need to configure those leave types to share a common quota.

former_member193210
Active Contributor
0 Kudos

Have you tought of using a Quota that is in Hours instead of Days?

kammaje_cis
Active Contributor
0 Kudos

We already have it in hours.

Challenge is how to deduct only user specified hours/day and not the work schedule hours/day.