SAP Knowledge Base Article - Public

2503851 - Rule to not apply consecutive leaves

Symptom

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

Ex: 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

Environment

  • Successfactors - Employee Central
  • Time Off

Resolution

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.

16.jpg

Keywords

Time off Consecutive leave Leave clubbing , KBA , LOD-SF-EC-TIM , Time-Off , How To

Product

SAP SuccessFactors HCM Core 1705 ; SAP SuccessFactors HCM Suite all versions