SAP Knowledge Base Article - Public

3606065 - Restrict the amount of separate absence/leave requests that can be made during a specific period

Symptom

How to implement a restriction such that a maximum of X separate absence/leave requests can be made during a specific period. 

e.g. An employee should only be able to request up to 8 separate absence/leave requests during their probationary period.

Environment

SAP SuccessFactors Employee Central > Time Off

Resolution

If would like to implement a restriction on the total number of separate absence/leave requests that can be requested during a given period, it may be done so by using the 'Get Number of Absences for Period for Time Types()' rule function.

This function calculates the number of absences of a list of time types within a given period. A take rule will need to be created that will evaluate the desired maximum of absence/leave requests that are allowed in the period, i.e. if Get Number of Absences for Period for Time Types() > 8, then Raise an error message stating "You are not allowed to request more than 8 absences during your probationary period". Please see the 'Take Rules' section of the implementation guide for more information on how to configure absence validation rules 

Example

User: Test User

- Start Date: January 1, 2025

- End Date: December 31, 2025

- Time Types: VacationSickness

Existing Absences for this user:

  • December 20, 2024 – January 1, 2025; Time Type = Sickness

  • May 1, 2025 – May 5, 2025; Time Type = Special Leave

  • June 1, 2025 – June 10, 2025; Time Type = Vacation

Result

The number of absences is 2.

- The Sickness absence is counted because it overlaps with the period and the time type is part of the time types list.

- The Vacation absence is counted because it is completely within the period and the time type is part of the time types list.

- The Special Leave is not counted because it is not part of the time types list.

Please see the implementation guide for information on necessary input parameters as well as functional examples when using the 'Get Number of Absences for Period for Time Types()' rule function.

Keywords

restrict absence requests, restrict leave requests, restrict absence, restrict leave, restrict separate absences, restrict separate leaves, maximum leave requests, maximum absence requests. limit absences, limit leaves, limit absences in period, limit leaves in period, absence validation, absence limitation , KBA , LOD-SF-EC-TIM-UI , Team Absence Calender/ Workbench/ ESS UI's , How To

Product

SAP SuccessFactors Employee Central all versions