SAP Knowledge Base Article - Public

2619357 - The order to create an Employee using OData APIs

Symptom

This note explains the order to create an Employee using OData APIs.

If you facing an issue to insert / upsert data into User, PerPerson, EmpEmployment, EmpJob or perPersonal.

Environment

SuccessFactors Employee Central OData AP

Cause

Order to insert or upsert data into the entities is not correct.

Resolution

The order should be as follows:

  1. User (required fields: username, userId, status)
  2. PerPerson (required fields:  userId, personIdExternal)
  3. EmpEmployment (required fields:  userId, personIdExternal, startDate)
  4. EmpJob (required fields:  userId, jobCode, startDate, eventReason, company, businessUnit, managerId)
  5. PerPersonal (required fields: personIdExternal, gernder, firstname, lastName)

Note: In case of a Rehire, perform a Job Information (EmpJob) import before Employment Information Import (EmpEmployment).

See Also

How to create an Employee using OData APIs

2080146 - What is the Correct Import Order When Creating Users? - EC

Adding a New Employee - SAP Help Portal

Keywords

How to create an Employee, OData, User, PerPerson, EmpJob, PerPersonal   , KBA , LOD-SF-INT-ODATA , OData API Framework , How To

Product

SAP SuccessFactors HXM Suite all versions