SAP Knowledge Base Article - Public

2867661 - EC: Numeric values in Swiss German locale changes to NaN

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

  1. Login in into the system
  2. Change the language to Swiss German
  3. Go to user's employee profile
  4. Navigate the compensation data and click on history
  5. 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.

  1. Go to Admin Center -> Sprachen Verwalten, and scroll down to Schweizer Hochdeutsch.

    Create a customer-defined language:

    1.png

    (If you already have a customer-defined language, then the text modules for that version should be downloaded instead of creating a new version).
  2. 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>:

    2.png
  3. 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.)
  4. 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:

    3.png
  5. 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

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Core all versions