SAP Knowledge Base Article - Public

2633023 - Generated Document Not Displaying Decimals After Value is Mapped From a Business Rule

Symptom

No Decimal Places Displayed in Generated Document for Numeric Value (Usually Monetary) Calculated Via Business Rule

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

  • Product version: SAP SuccessFactors HXM Core 2211
  • Employee Central
  • Document Generation

Reproducing the Issue

1. Have a mapping in Document Generation Mapping based on a rule to calculate Annualised Salary

AmountRuleMap.png

2. Generate a document based on the respective template and notice that the value based on amount (CalculateSalary Rule) does not display decimals.

 

Cause

The is because a number field of DocumentMapping Rule Result is being assigned to a decimal field from Compensation Info. On doing this, the rule itself gives a warning that the decimal places will be lost. See below screenshot.

RuleWarning.JPG

 

Resolution

1. Navigate to Configure Object Definitions>Document Mapping Rule Result and add a new field of Type Decimal. See below Screenshot

CustomFieldOfTypeDecimal.JPG

2. Use this new field in your business rule and then the generated document should display decimals.

Keywords

Document Genration Decimals, Generated Document No Decimals, Decimals, round, pay component value, , KBA , LOD-SF-EC-DOC , Document Generation , Problem

Product

SAP SuccessFactors Employee Central all versions