Symptom
Get Number Of Months From Hire Date() rule function is not working
"All the images from this instance are from our internal test instances, any resemblance with real environments are mere coincidence"
Environment
SAP Successfactors Employee Central - Time Off
Reproducing the Issue
1. The rule is configured as below:
2. The rule is assigned to Accrual Rule field in the Time Account Type.
3. On running the Accrual Calendar and checking the Business execution logs, the function is always returning Zero
Cause
- This rule function(Get number of months from hire date) can only be used in the hire scenario (i.e in the Hire Rule)
- For Example:
- If you have annually accounts from 1.1.-31.12. and you hire someone in june, you would get 7 months as result.
- In the next year, the parameters for the rule function are e.g.
- start date: 1.1.2018
- end date: 31.12.2018
- hire date: 1.6.2017
- In this case the rule function cannot be used, because the hire date is not within the period.
Resolution
- Do no use this function in Accrual Rule.
- Use it only in the Hire Rule.
See Also
Keywords
Time off, Get Number Of Months From Hire Date, Rule function , KBA , LOD-SF-EC-TIM-ABS , Absence error's - Calculations, Deductions, TT&ET , Problem
SAP Knowledge Base Article - Public