SAP Knowledge Base Article - Public

2232200 - Wrong event reason derivation in position sync

Symptom

When synchronizing data from a Position to the Employee's JobInfo section, the system is derivating the wrong Event Reason.

Environment

SuccessFactors Employee Central V2

Reproducing the Issue

Configuration:

Position Managment is enabled, a test position is associated with an employee.

Position to Job Info Sync Business Bule has the Company field configured for synchronizing and the rule is configured in Admin Tools > Position Management Settings.

Default workflow for position is attached to the position object definition.

In Event Reason XML add 1st rule containing logic jobinfo.country-of-company inverse="true".

Scenario:

In this scenario, we are changing business unit of a position, which should synchronize to the job information of its incumbent

with an event-reason as defined in the event reason derivation XML file.

We are not changing country or company or country-of-company. However, the Event Reason derivation rule, containing logic of capturing change in field country-of-company gets selected by the system each time we change the business unit from position org chart.

Replication steps:

  1. Go to position org chart.
  2. Search for the test position.
  3. Click on position and select Show Position->Edit->Change Business Unit and Save.
  4. Approve the workflow if triggered.
  5. Go to Incumbent's (employee occupying the position) Job history and verify the event reason selected for this change.

 Incorrect Derivation.jpg

Result:

Each change on position, the first Event Reason rule will get selected, even though we are not changing company, country of company or location.

Cause

 

The below configuration is wrong for event-reason derivation XML configuration file, it should not be added:

<rule id="rule-01">

<trueoutput>TR01</trueoutput>

<conditions>

<and>

<equal id="jobInfo.country-of-company" inverse="true" />

</and>

</conditions>

</rule>

Please follow below guidelines while configuring position to job info sync logic:

  1. A Rule that is syncing from PositionToJobInfo should always have the statement "IF position IS NOT EQUAL Null" in the IF Condition.
  2. Company shall never be synced with a rule from position to job or job to position synchronization.
  3. Time in Position is a calculated field and should also not be filled by rule.
  4. Supervisor on JobInfo is calculated automatically from the Leading Hierarchy in Position Management Settings and should not be written by Sync Rule.
  5. The field country-of-company is not allowed to be used in the event reason derivation.

Resolution

 

Do not use country-of-company in the event-reason derivation XML.

This field is not allowed to be added in event-reason derivaton XML because, this field is only calculated on the User Interface and will have different values if the job info is changed via User Interface or in coding.

This information will be added by the engineering team in the Employee Central Master Implementation guide chapter "4.6 Setting up country-specific picklists" that this field shall only be used in context of country specific picklists and for nothing else.

 

After removing country-of-company field from event-reason derivation XML file:

Correct Derivation.jpg

 

For partners or customer support team's reference:

rulexml.jpg

Keywords

Employee Central Position to JobInfo Sychronization rule configuraiton Event-reason derivation , KBA , wrong event reason derivation , wrong event reason for position , LOD-SF-EC-POS , Position Management , Problem

Product

SAP SuccessFactors HCM Suite all versions