SAP Knowledge Base Article - Public

2344097 - How to Default "OK to Rehire" Field to "Yes"

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;
  • 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"

OKToRehireDefault.jpg

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.

Keywords

okay, sf, ec, success factors, set, terminate, OkToRehireDefault, default, value, field, business rule, logic, sample configuration, employment details, termination, record, job information , KBA , LOD-SF-EC-TER , Termination Details , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , How To

Product

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