SAP Knowledge Base Article - Public

3718241 - How to access eventReason field in EmpEmploymentTermination OData entity?

Symptom

  • The attribute sap:visible is false for eventReason field in EmpEmploymentTermination entity.
  • How to set sap:visible to true for the eventReason field in EmpEmploymentTermination OData entity?

Environment

SAP SuccessFactors HXM Suite

Employee Central SFAPI & OData Entities

Cause

  • The eventReason field in EmpEmploymentTermination is a transient field. This is a required field when you upsert a record. It's not viewable in query results according to current system design. Transient values are not stored to the database so you can't query them directly.

Resolution

  1. When you create a new termination record using EmpEmploymentTermination entity, an EmpJob record is also created automatically with the same eventReason that was used to insert/update the termination record.

  2. You can use navigation EmpEmploymentTermination/jobInfoNav/eventReason to access the eventReason used in employee termination. 

See Also

EmpEmploymentTermination

Keywords

EmpEmploymentTermination, eventReason, transient field, OData, employee termination, query results, navigation, jobInfoNav, sap:visible, attribute, property, data dictionary, true, false, FOEventReason , KBA , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , How To

Product

SAP SuccessFactors HCM Suite 2511