SAP Knowledge Base Article - Public

2752770 - How to make sequenceNumber field of EmpPayCompNonRecurring OData entity a business key?

Symptom

There is a requirement for additional business key property in the EmpPayCompNonRecurring entity.

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 HCM Suite
  • SAP SuccessFactors Employee Central
    • OData API

Reproducing the Issue

  1. Navigate to OData API Data Dictionary
  2. Look for the EmpPayCompNonRecurring entity
  3. Check the Business Key value for the property sequenceNumber
  4. The value is false

 Sequence Number New.PNG

Cause

By default the business key for this entity consists userId, payComponentCode and payDate.

Resolution

To enable sequenceNumber, add the following attributes to the sequenceNumber property in the Succession Data Model:

<hris-field id="sequence-number" visibility="view" allow-import="true">

This will make sequenceNumber part of the business key.

Note: Once sequenceNumber is introduced as part of the business key, its value must be maintained. If the value isn't maintained in integrations that rely on the uniqueness of the pay component, these integrations could break.

See Also

EmpPayCompNonRecurring | SAP SuccessFactors API Reference Guide (OData V2) | SAP Help Portal

Keywords

EmpPayCompNonRecurring, business key, additional property, sequenceNumber, OData API Data Dictionary, Succession Data Model , KBA , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , LOD-SF-INT-ODATA , OData API Framework , How To

Product

SAP SuccessFactors HCM Core all versions