2438407 - Get Number Of Months From Hire Date () rule function is not working

SAP Knowledge Base Article - Public

2438407 - Get Number Of Months From Hire Date () rule function is not working

Symptom

Get Number Of Months From Hire Date() is not working

Environment

Successfactors - Employee Central

Reproducing the Issue

1. Below is the rule that is confiured

1.jpg

2. The rule is assigned to Accrual Rule field in the Time Account Type.

2.jpg

3. On running the Accrual Calendar and checking the Business execution logs, the function is always returning Zero

3.jpg

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.

Keywords

Time off Get Number Of Months From Hire Date Rule function , KBA , LOD-SF-EC-TIM , Time-Off , Problem

Product

SAP SuccessFactors HCM Core 1611