SAP Knowledge Base Article - Public

3601827 - Employee Status is wrong when we get the data from off cycle event batch job

Symptom

You have configured a rule to get correct employee status whose object is Employment Details.

But you trigger the rule from UI, system is taking the employee status from the latest job info record as the effective date.

But you trigger the rule via off cycle event batch job, then system is taking employee status value from hire date as the effective date.

Environment

SAP SuccessFactors Employee Central 

Reproducing the Issue

1.Configure a rule to get the Employee Status

sample rule:

2. Bind this rule as onSave event type under Employment Details under Manage Business Configuration

3. Trigger the rule from UI side and find out the Employee Status value comes from latest job info record.

4. Run off cycle event batch job, and find out the Employee Status value comes from hire record.

Cause

As employment details is a non effective dated object, please avoid to get current employee status via Employment Details object.

Resolution

Instead of above sample rule, please use Get Employee Status() function to get the current employee status.

Keywords

SAP SuccessFactors, Employee Central, off cycle event batch, UI, discrepancy, calculation, job run, status, job information, hire record, hire date, effective date, employment details, latest job record, onsave rule,  , KBA , LOD-SF-EC-EMP , Employment Information (Employment Details) , How To

Product

SAP SuccessFactors Employee Central all versions

Attachments

Pasted image.png