Symptom
This article provides a sample rule scenario to default the value of the field "OK to Rehire" to "Yes".
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
SAP SuccessFactors Employee Central
Reproducing the Issue
When terminating an employee, within the Termination Portlet, the field "OK to Rehire" defaults to "No".
Resolution
In order to default the "OK to Rehire" field to "Yes", create a Business Rule as follows:
- The rule should be triggered as an onChange event, in the "employmentInfo" element, on one of the fields that will display during the Termination process;
- In the following example, it is onChange on the Termination Date (end-date) field;
Step 1: enable Termination Date (end-date) field
- Go To BCUI
- employmentInfo"
- enable: Termination Date (end-date) field
Step 2: Create a Rule
- Go to Configure Business Rules
- Select: Employee Central Core
- Select : Trigger onChange Rules for HRIS Elements
- The Base Object (and only parameter to this rule) should be "Employment Details";
- The IF condition should be set to "IF Employment Details.Termination Date is not equal to NULL";
- And the THEN condition should set the field "OK to Rehire" to be equal to "YES"
- Assign the rule under Termination Date field
Please Note: Do not configure this rule with "If = Always True" as the rule will not trigger correctly the 1st time. In addition, this rule is not applicable for Contingent Workers as the ECWK record is system generated when the work order is initially created.
Step 3: add onChange Rule under Termination Date (end-date) field
- Go To BCUI
- employmentInfo"
- take action
- scroll to: Termination Date (end-date) field
- detail - The rule should be triggered as an onChange event, in the "employmentInfo" element, on one of the fields that will display during the Termination process;
Step 4: Test new Rule
- Go to any user
- MSS-Take Action
- terminate
- select termination date
- OK to Rehire= Yes
- see Result
FAQ - Additional Information
Q) Where can I get information on this from the Guide?
A) Guide: Implementing Employee Central Core
- Chapter: Rule Scenarios for Employee Central Core
- Guide: Rule Scenarios for Employee Central Core
Trigger onChange Rules for HRIS Elements: You can use this scenario to create rules that trigger changes to HRIS Elements. In Manage Business Configuration, rules created using this scenario can be registered only for the onChange event type.
See Also
- 2277956 - How to create a Business Rule
- 2404469 - Propagation from HRIS Element to Custom MDF Object
- 2982477 - How To Propagate HRIS Element Field to Custom MDF Object
- 2562069 - Custom MDF Object based business rules - Parameters and other related information
- 2437420 - Which Portlets Support Cross Portlet Business Rules
Keywords
ok, sf, ec, success factors, set, terminate, OkToRehireDefault, default, value, field, business rule, logic, sample configuration, employment details, termination, record, job information, onChange , employmentInfo, BCUI, MSS , Take action, Termination process; Termination Date (end-date) field; , KBA , LOD-SF-EC-TER , Termination Details , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , LOD-SF-EC-EMP , Employment Information (Employment Details) , How To
SAP Knowledge Base Article - Public