SAP Knowledge Base Article - Public

3574385 - onchange business rule behavior after reselecting Company value

Symptom

When the Company value is reselected in the Job Information section, the field property that was set by an OnChange rule, unexpectedly resets.

Environment

SAP SuccessFactors - Employee Central

Reproducing the Issue

  1. Configure a custom field A under job information, with visibility non editable.
  2. Configure a onChange rule to set visibility for the field to Editable, based on event reason selected.
  3. Navigate to user profile.
  4. Take action -> change job information.
  5. Choose the event and event reason. Observe the field visibility changes to Editable.
  6. Select the company value to new value.
  7. Field visibility will become view only even though there is no rule to set visibility.

Cause

This is an expected behavior of the system.

Resolution

Changing Company is a kind of initialization of the Job Information page and a field property set by an onChange rule will not persist after the Company is changed. It will refetch everything as per the original value and then apply the rules. There is a special logic for the Company field, hence this behavior would not happen with other fields. 

You can use Diagnostic Tool to know which rules are getting triggered and in which order and which field are impacted/altered. KBA: 3468733 - Diagnostic Tool for Employee Central save transactions and workflows 

See Also

2507511 - Field visibility using an onView rule does not switch immediately

2708009 - OnSave cross-portlet rule does not work if field is changed via Time Off

Keywords

Field visibility, Onchange rule, event reason, company value, job information, Onview rule, manage business configuration, business rule, event, reset, HRIS element, INC10673174, legal entity, refresh, refetch, does not work, triggered , KBA , LOD-SF-EC-JOB-RUL , Job Info Business Rules , LOD-SF-EC-JOB , Job Information , LOD-SF-EC-CMP-RUL , Business Rules , Problem

Product

SAP SuccessFactors Employee Central 2505