Symptom
- An employee generates a document from profile, but the wrong salary amount is shown.
- When trying with another employee with a different position, their document does generate the complete amount and it is reflected in the document.
- In the rule trace we can see that the wrong salary amount is generated.
Environment
SAP SuccessFactors Employee Central
Reproducing the Issue
- Access the user's profile
- Take action
- Select the option "Generate Document"
- Select the document
- Click download
- Wrong salary value is shown
Cause
- In the rule body, the compensation amount is set to DocumentMappingRuleResult.genericNumber1 field which is of type Number
- During the rule execution the rule engine is returning only integer part of a large number instead of returning the full value.
- This happens only for Number field, If the field is of Decimal type then the rule engine will return the full value.
Resolution
The current issue can be fixed by creating a new field of type "Decimal" in DocumentMappingRuleResult object and use it in the rule for getting the Compensation amount.
See Also
Keywords
Document Generation, Salary, Higher position, wrong salary value, Generate Document, Decimal type, Number field, DocumentMappingRuleResult , KBA , LOD-SF-EC-DOC , Document Generation , Problem
Product
SAP SuccessFactors Employee Central all versions