SAP Knowledge Base Article - Public

3130768 - ODATA API StandardHour upsert via API leads to inconsistent value on UI - SuccessFactors OData API

Symptom

When upserting StandardHours field via API & passing value example 20. After the OData API upsert, checking the user interface, the value stored is 200 & not 20.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

 SuccessFactors Employee Central - OData API

Reproducing the Issue

1.Send the payload below in the Upsert

{
"__metadata": {
"uri": "<API-Server>EmpJob(seqNumber=1L,startDate=datetime'2017-01-01T00:00:00',userId='1234',)",
"type": "SFOData.EmpJob"},
"standardHours":"30"
}

2. In the API response, you will receive status as upserted

3. Next, go to the employee profile & check the standard weekly hour field. The standard weekly hour will be updated as 300.


Note: In the above example, API user language is set to German.

Cause

StandardHours has a decimal type in database & this inconsistency is caused by different decimal format between EN and other languages. This issue would only occur when API user's language is not set to English.

Resolution

This is currently a known limitation by Successfactors System. SAP SuccessFactors Engineering team is already working on a fix for it, which is expected to be released on B2205 release.

As a workaround, please add "?fileLocale=en_US" in the API call to make it correct.

See Also

SAP Note 2498292 - Job Information: How does the FTE calculation work? - SAP ONE Support Launchpad à Place the link only to the number; use term SAP Note

SAP Note 2576250 - Job Information: How to configure FTE to calculate Standard Weekly Hours

SAP Note 2758125 - Standard Hours field showing as 'Not a valid number' - SuccessFactors Integration center

SAP SuccessFactors Employee Central OData API: Reference Guide

Keywords

ECT-187126,StandardHours, b2205, upsert, EmpJob, ODATA API,update, SuccessFactors OData API upsert, Employee Central, update, weekly standard hours , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , LOD-SF-INT-API , API & Adhoc API Framework , Problem

Product

SAP SuccessFactors HXM Suite all versions