Symptom
When generating the PDF for a Journal Entry or any other Object, the value appears with three decimals, but the last decimal is always displayed as 0 instead of the correct value from the XML.
It should be, for example, 123,335. Instead it shows as 123,330.
Environment
SAP Business ByDesign.
Reproducing the Issue
- Navigate to the General Ledger Work Center and then go to Journal Entries view.
- Search for the affected Document.
- Click the "Preview" button to generate the PDF Output.
Cause
The affected Field in the XDP (eXpress Data Path) is configured with the following properties:
Limit Trailing Digits: 2
Locale: Country
During runtime, the system interprets the original value "123,335" as "123,33" due to the 2-decimal limit setting.
However, the affected Field applies the display pattern as "num{z,zzz,zz9.999}", which formats the value "123,33" as "123,330".
Resolution
To fix this scenario please adjust the field settings in the XDP template to ensure the full precision of the XML value is displayed:
- Remove the "Limit Trailing Digits" restriction from the affected Field.
- Ensure the display pattern for the affected field does not alter the precision of the value.
See Also
KBA 2531813 - How to change ADS form date or number format for specific locale
Keywords
decimal rounding, journal entry, purchase order, sales order, Document, PDF, XML, XDP, value, XDP template, display pattern, trailing digits, locale settings, incorrect rounding, precision adjustment. , KBA , AP-RC-OUT , Output Management , BC-SRV-FP , Forms Processing , How To
SAP Knowledge Base Article - Public