SAP Knowledge Base Article - Public

2344097 - How to Default "OK to Rehire" Field to "Yes" in Termination Screen Using a Rule

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

  1. Go To BCUI
  2. employmentInfo"
  3. enable: Termination Date (end-date) field

Step 2: Create a Rule

  1. Go to Configure Business Rules
  2. Select: Employee Central Core 
  3. 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 NoteDo 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

  1. Go To BCUI
  2. employmentInfo"
  3. take action
  4. scroll to: Termination Date (end-date) field
  5. 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

    1. Go to any user
    2. MSS-Take Action
    3. terminate
    4. select termination date 
    5. OK to Rehire= Yes
    6. see Result

    FAQ - Additional Information

    Q) Where can I get information on this from the Guide?

    A) Guide: Implementing 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

    Product

    SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions