SAP Knowledge Base Article - Public

3251818 - Displaying Amount and Currency in Form Templates - SAP S/4HANA Cloud

Symptom

When using a custom form template, the amount is shown with an incorrect currency when displaying the rendered document.

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

Environment

SAP S/4HANA Cloud

Cause

A display pattern describes how data will be displayed in the form.
Because the display pattern describes how data will be displayed in the form, all default values, user-entered values, and values retrieved from a database are converted to the format described by the display pattern.
If you set up a display pattern, the currency will come from the defined pattern and not from the backend.
The system settings of the user's PC are used to display the currency.

Pattern.jpg

Resolution

Follow the same approach as the SAP standard does:

  1. Bind Amount and Currency in individual, hidden fields
  2. Have an additional visible field for Amount and Currency
  3. Have a script on this field which concatenates the values of the two hidden fields.
 

See Also

2984817 - Form design in Adobe LiveCycle Designer
Adobe Help - Formatting field values and using patterns
SAP Help Portal - Form Templates - Locales
3118942 - Wrong decimal format on the billing document printout - SAP S/4HANA Cloud
Setting Up Output Management (1LQ)
2941522 - Output Management in SAP S/4HANA Cloud - Guided Answer

Keywords

Adobe, Adobe LiveCycle Desgner, form design, ADS form, pattern, display pattern, locale, currency, XDP, script, hidden fields, text fields, numeric fields, date/time fields, currency, frmHiddenGlobalFields , KBA , BC-SRV-FP , Forms Processing , SD-BIL-GF-OC , Output Control Billing , CA-GTF-OC , SAP S/4HANA output management , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions