Skip to Content
Dec 13, 2018 at 05:24 AM

HCM Leave: Dynamic deduction of quota hours

304 Views Last edit Dec 17, 2018 at 05:03 PM 3 rev

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.