7 Functions
7.5 Functions A-Z
7.5.43 Get Work History Days CONTINUOUS
If an employee has repeatedly been employed at one company, you can sum up the days of all consecutive employments that were ended with a specific event reason (for example, Entitlement to Return). The function sums up all consecutive employments from today until a previous employment that was ended with a different event reason.
Here's an example:
Calculation:
Orange arrows (from 30/06/2001 onward) = 1554 + 139 + 2410 = 4103 days
The function sums up the valid days of all Job Info entries after the latest terminated entry without the specified event reason(s) where:
● Employee is active and employee class is not excluded
● Employee is not active and event is not termination
The final end date for the sum calculation is the day when the function is executed.
If the user status is currently terminated or retired, or the employee class is excluded, this function returns 0.
Configuring Business Rules in SuccessFactors
Functions © 2014 SAP SE or an SAP affiliate company. All rights reserved. 79
Note that this function is used to cover country-specific and industry-specific requirements for the Public Sector in the United Kingdom.
Limitations
● Use only with Employee Central.
● Use an onView event as the work history in days has the character of transient data and not of a persistent value.
Input Parameters
For this parameter... Make this entry:
User Select Context Current User from the dropdown list.
This gets the user ID of the user whose days should be counted. For example, if the Admin looks at the Job Information for Carla Grant, the validity in days for Carla Grant is calculated and displayed.
Employee Class If you want to exclude job info entries with one of these employee classes from the sum, although the employee is active, then enter the corresponding employee class here. For example, you want to exclude periods during which the employee worked as a contractor. Then you have to enter the external code for contractors of the employee-class picklist.
If you leave this field empty, all employee classes are included in the calculation.
Event Reason 1-5 Select the exceptional event reason that does not end the count of consecutive pe
riods of employment included in the calculation done by this function. You can se
lect up to 5 event reasons.
Examples
Example 1 User: 1
Employee Class: Contractor Event Reason: Entitlement to return
Job Info entry Employee is Event Event Reason Employee class
No. 1 (User 1) Active Hire New Hire Employee
No. 2 (User 1) Inactive Unpaid Leave Maternity Employee
80 © 2014 SAP SE or an SAP affiliate company. All rights reserved.
Configuring Business Rules in SuccessFactors Functions
This happens during calculation:
There is no termination without this event reason. Both entries count for sum calculation.
Example 2 User: 1
Employee Class: Contractor Event Reason: Entitlement to return
Job Info entry Employee is Event Event Reason Employee class
No. 1 (User 1) Active Hire New Hire Employee
No. 2 (User 1) Inactive Termination Entitlement to return Employee
No. 3 (User 1) Active Rehire New Rehire Employee
This happens during calculation:
No. 3 counts for sum calculation because the employee is active and the employee class is not Contractor.
No. 2 is a Termination event, but with the special event reason. Therefore, the count is not stopped.
No. 1 counts for sum calculation because the employee is active and the employee class is not Contractor.
Example 3 User: 1
Employee Class: Contractor Event Reason: Entitlement to return
Job Info entry Employee is Event Event Reason Employee class
No. 1 (User 1) Active Hire New Hire Employee
No. 2 (User 1) Inactive Termination Quit Employee
No. 3 (User 1) Active Rehire New Rehire Employee
This happens during calculation:
No. 3 counts for sum calculation because the employee is active and the employee class is not Contractor.
No. 2 is a Termination event and does not have the special event reason. Therefore, the count will be stopped and No. 1 does not count in sum.
Example 4 User: 1
Employee Class: Contractor Event Reason: Entitlement to return
Job Info entry Employee is Event Event Reason Employee class
No. 1 (User 1) Active Hire New Hire Employee
Configuring Business Rules in SuccessFactors
Functions © 2014 SAP SE or an SAP affiliate company. All rights reserved. 81
Job Info entry Employee is Event Event Reason Employee class
No. 2 (User 1) Inactive Termination quit Employee
No. 3 (User 1) Active Rehire New Rehire Employee
No. 4 (User 1) Inactive Termination Entitlement to return Employee
No. 5 (User 1) Active Rehire New Rehire Employee
No. 6 (User 1) Active Data Change Manager change Employee
This happens during calculation:
No. 6 counts for sum calculation because the employee is active and the employee class is not Contractor.
No. 5 counts for sum calculation because the employee is active and the employee class is not Contractor.
No. 4 doesn’t count and doesn’t stop the count because it is a Termination event with the special event reason.
No. 3 counts for sum calculation because the employee is active and the employee class is not Contractor.
No. 2 doesn’t count for sum and stops the count because the event is Termination without the special event reason.
No. 1 does not count because the count has been stopped at No. 2.
Use Case
In countries like the United Kingdom (UK), redundancy payments are dependent on benchmarks such as continuous service. The employers and employees alike can use such figures to calculate redundancy payments using redundancy calculators to assess the actual redundancy payments employees can expect in case of unemployment. Using this function to fill a customer field on loading the page provides users always with the actual figure of their continuous service length.
See also an example rule under Get Work History Days PREVIOUS.
82 © 2014 SAP SE or an SAP affiliate company. All rights reserved.
Configuring Business Rules in SuccessFactors Functions