Symptom
If the users default locale is to Swiss German(de_CH), while editing compensation information the amount field value changes to NaN%.
Environment
- SAP SuccessFactors Employee Central
- SAP SuccessFactors HXM Core
Reproducing the Issue
- Login in into the system
- Change the language to Swiss German
- Go to user's employee profile
- Navigate the compensation data and click on history
- Click on edit and value in amount field is shown as NaN
Cause
The EC backend is formatting the number fields with the format provided by the java de_CH locale (decimal separator = .), whereas the UI uses the format definition in the language files (decimal separator = ,).
Resolution
All screenshots in the KBA is from SALESDEMO instance
Change the language settings in the system using 3d-tier languages in order to have consistency between the language files and the ECT backend coding.
- Go to Admin Center -> Sprachen Verwalten, and scroll down to Schweizer Hochdeutsch.
Create a customer-defined language:
(If you already have a customer-defined language, then the text modules for that version should be downloaded instead of creating a new version). - You should see a popup which asks for the name of the language: This will appear later in the list of languages (I chose de_CH_Test). The language version is generated by the system and has the key de_CH_<company ID>:
- Create a csv file which contains the text message for the key COMMON_DecimalPoint with the value ‘.’:
"Key","<your language name selected in the popup above"
"COMMON_DecimalPoint","."
(If you already have a user-defined language, then add or update the value for COMMON_DecimalPoint in the downloaded file.) - Upload the file to the customer language version (You should get a popup at the top of the screen that confirms that the change was successful), and save the result:
- After this change, it should be possible to work with the employee portlets using the ‘.’ as the decimal separator.
Please note:
- It is not recommended to try and change the number formatting via the language definitions. The above solution is an exception for de_CH ONLY.
- We currently do not support different formatting for normal numbers and currency amounts.
Keywords
Swiss German, NaN, Compensation information, amount field NaN, FTE, numeric values, ECT-125480 , KBA , LOD-SF-EC-CMP-UI , History or MSS UI , LOD-SF-PLT-LAN , Manage Language & Text Replacements , Problem