Symptom
Error message "Invalid number" displayed for the value entered to a "currency" type field in Job Requisition, Job Application, or Offer Approval.
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 Recruiting Management
Reproducing the Issue
- Access a job application
- Edit the application and enter this value to a Currency field (e.g. 100,000)
- Save changes
- Error message received: "Invalid number"
Cause
When configuring fields with type="currency" in a template, the standard field id="currency" must be defined in the template as well. This allows selecting which currency format the system will use.
This is important as each currency has its own decimal and thousands separators.
Great Britain and the United States are two of the few places in the world that use a period to indicate the decimal place. Many other countries use a comma instead. The decimal separator is also called the radix character.
Likewise, while the U.K. and U.S. use a comma to separate groups of thousands, many other countries use a period instead. Some countries separate thousands groups with a thin space.
Resolution
Make sure the below field id="currency" is also configured in the template where the error message is displayed and that a valid currency is set so that system can recognize which separator should be used for the values entered in that are type="currency" .
Example Only:
<field-definition id="currency" type="enum" required="false" custom="false">
<field-label mime-type="text-plain"><![CDATA[Currency]]></field-label>
<enum-value value="EUR">
<enum-label><![CDATA[EUR]]></enum-label>
</enum-value>
<enum-value value="GBP">
<enum-label><![CDATA[GBP]]></enum-label>
</enum-value>
<enum-value value="USD">
<enum-label><![CDATA[USD]]></enum-label>
</enum-value>
<default-value>USD</default-value>
</field-definition>
See Also
2970928 - Is it possible to remove decimal places from Currency or Number field? - Recruiting Management
2524471 - Decimal places in Offer Approval Standalone Fields are not getting saved - Recruiting Management
Keywords
invalid number, currency field, type="currency", enum, decimal places, comma, period , KBA , LOD-SF-RCM , Recruiting Management , Problem
SAP Knowledge Base Article - Public