SAP Knowledge Base Article - Public

2503851 - Rule to not apply Consecutive Leaves


Requirement:  Time types should not be used consecutively one after the other, system should pop up error for the same.

Example: If employee applies sick leave it should not immediately followed by any other leave. Today if I apply sick leave,  I cannot apply casual leave tomorrow. One day gap should be there for any leave combination


  • Successfactors - Employee Central, Time Off


The below sample rule can be used. The rule check if Casual Leave or Sick Leave exists the previous day or not next day.

Please note :

a.  In the below rule, the function Get Absence In Days For Period() is used. If the unit of the Time Type is ‘Hours’, you need to use the function ‘Get Absence in Hours for Period()’.

b. In both the IF sections, only 2 Time types(Casual Leave, Sick Leave) are checked. If you need to check for other time types as well , then you need to include multiple ‘Get Absence In Days For Period()’ statements in both the IF sections along with the anem of the time Types.


Note: The rule function Get Absence In Days For Period() supports only calendar days or work schedule days (Not Supported for Deduction Quantity). Alternatively the function 'Has Absence in Period' can be used for the same. There is an enhancement ticket currently planned for b2305 release for this rule funtion: "TIM-7830"


Time off Consecutive leave Leave clubbing TIM-7830 Deduction Quantity Get Absence In Days For Period() doesn't support Deduction Quantity Deduction Quantity is not supported Deduction Quantity Limitation , KBA , LOD-SF-EC-TIM-ABS , Absence error's - Calculations, Deductions, TT&ET , LOD-SF-EC-TIM-RUL , TAT Rules, Validation & Take rules , How To


SAP SuccessFactors HCM Core 1705 ; SAP SuccessFactors HCM all versions