SAP Knowledge Base Article - Public

3678614 - The time zones corresponding to the "activeEmploymentsCount" and "latestTerminationDate" fields in the "PersonEmpTerminationInfo" SF Odata API entity.

Symptom

The time zones corresponding to the "activeEmploymentsCount" and "latestTerminationDate" fields in the "PersonEmpTerminationInfo" SF Odata API 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 HXM suite
    • Integrations 
      • PersonEmpTerminationInfo entity

Resolution

1. We can use expand to get the entity PersonEmpTerminationInfo: {{URLTest}}PerPerson?$format=json&$expand=personEmpTerminationInfoNav 

  • This entity can be used for the Integration between Microsoft and SAP SuccessFactors, and by default, the Microsoft Entra SuccessFactors connector uses the activeEmploymentsCount field of the PersonEmpTerminationInfo object to set account status 

2. activeEmploymentsCount and latestTerminationDate logic considers the endDate set on Employment Details portlet and is the following:

  • If END_DATE has a past date compared with current date => activeEmploymentsCount is 0, latestTerminationDate has the same value with END_DATE;
  • If END_DATE has a future date compared with current date => activeEmploymentsCount is 1, latestTerminationDate is null;
  • If END_DATE has current date as its value => activeEmploymentsCount is 1, latestTerminationDate is null.

3. The time zone of #2 logic is based one the TPT(navigate to 'Platform Feature Settings' > Tenant Preferred Time Zone) first, if TPT is not selected, we will use System time zone (UTC+0).

e.g. If the Tenant Preferred Time Zone is 'Asia/Shanghai (China Standard Time)', it is UTC+8.

Today is 11/07/2025
If END_DATE is 11/06/2025, from China time zone (UTC+8) 11/07/2025 00:00:00, same as UTC+0 11/06/2025 16:00:00 => activeEmploymentsCount is 0, latestTerminationDate has the same value with END_DATE;

Today is 11/07/2025
If END_DATE is 11/07/2025 => activeEmploymentsCount is 1, latestTerminationDate is null;

Today is 11/07/2025
If END_DATE is 11/08/2025 => activeEmploymentsCount is 1, latestTerminationDate is null;


See Also

Keywords

latestTerminationDate, EndDate, PerPerson, PersonEmpTerminationInfo, activeEmploymentsCount, tenant preferred time zone, System time zone, Terminate user timezone. , KBA , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , Problem

Product

SAP SuccessFactors Platform all versions