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

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 in-progress for this rule funtion TIM-7830.

See Also

 TIM-7830

Keywords

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 , Time Off , How To

Product

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