Symptom
- Users encounter a validation error while adding or editing a pay component.
- In Manage Business Configuration, the maximum length for the Calculated Amount field is set to 1. When users try to enter an amount where the digit count exceeds the configured maximum length, the system throws an error.
- The system displays the following error message:
"Maximum length for the Calculated Amount field is 1 characters, and the maximum number of fraction digits is 2."
Environment
- SAP SuccessFactors Employee Central
Reproducing the Issue
- Navigate to an employee’s Compensation Information.
- Attempt to add or edit a pay component.
- Enter a value in the Calculated Amount field (e.g., 20.0).
- Save the record.
- Observe that the system throws a validation error despite the value appearing valid.
Cause
1. For DOUBLE-type fields, the system counts the decimal separator (.) as part of the total length of the value.
For example:
Entered value: 20.0
Backend interpretation: length = 4 (including the decimal point)
If the maximum length configured in BCUI is set to 3, the system considers the value to exceed the allowed length, resulting in a validation error.
2. Additionally, if the maximum length is configured as 1, and a user enters a value where the total digit count exceeds the defined maximum length (for example, entering 20.0 when max length is 1), the system will trigger the same validation error.
Resolution
Update the maximum length of the field in BCUI from 3 to 4.
This allows values like 20.0 to pass validation successfully.
Keywords
Amount, DOUBLE field, maximum length, fraction digits, validation error, decimal separator, BCUI, pay component, , KBA , LOD-SF-EC-CMP-REC , Recurring Payments , Problem
SAP Knowledge Base Article - Public