SAP Knowledge Base Article - Public

3836754 - KWD payment amount cannot be truncated to zero in the third decimal using standard conversion functions - SAP S/4HANA Cloud Public Edition

Symptom

When you generate a payment in Map Format Data for Payments, the KWD amount in the XML output cannot be truncated to end with zero in the third decimal, for example 123.321 to 123.320, using the standard conversion functions.

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

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

No reproduction steps are required.

Cause

No standard conversion function supports truncating the third decimal of a KWD amount to zero while keeping the first two decimals. The bank rejects the payment if the last digit of the amount is not zero, and this bank specific requirement is not supported by the standard conversion functions in Map Format Data for Payments.

Resolution

Use one of the following workarounds.

  1. Build the amount with two atoms in Map Format Data for Payments. Use the conversion function for the first atom to produce the amount with only the first two decimals, and then use a zero amount for the third decimal in the second atom.
  2. Implement the rounding logic in the BAdI DMEE_OUTPUT_POSTPROCESSING within enhancement spot ES_DMEEX, and leave the conversion function empty in Map Format Data for Payments.

Keywords

DMEE, conversion function, Kuwaiti Dinar, KWD, truncation, decimal, Map Format Data for Payments, DMEE_OUTPUT_POSTPROCESSING, ES_DMEEX , KBA , CA-GTF-CSC-DME , Data Medium Exchange Engine , Problem

Product

SAP S/4HANA Cloud Public Edition all versions