SAP Knowledge Base Article - Public

3585279 - Wrong salary amount in Document Generation

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

  1. Access the user's profile
  2. Take action
  3. Select the option "Generate Document"
  4. Select the document
  5. Click download
  6. 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

Implementing Document Generation

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