SAP Knowledge Base Article - Public

3700192 - Exchange Rate Determination using BAdI in S/4HANA Cloud Public Edition

Symptom

An invoice is created in EUR for Poland. On the billing document, VAT amounts must be displayed in PLN using the Daily Exchange Rate (D).

Even after configuring the company currency settings to use the Daily Rate:

  • During sales order creation, the accounting exchange rate is correctly determined.
  • During billing document creation, exchange rate type M (Monthly) is determined.

This leads to VAT amounts being calculated using the monthly rate, which does not meet business or local statutory requirements.

Environment

S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create an invoice in EUR for Poland.
  2. Ensure VAT is displayed in PLN and the company currency settings are configured to use the Daily Exchange Rate type (D).
  3. Generate the billing document.
  4. Observe that the monthly exchange rate (M) is applied instead of the daily exchange rate (D).

Cause

SAP determines the accounting exchange rate using a default exchange rate type M (Monthly) in the Billing Document. This is the standard behavior, even if a daily rate is used earlier during sales order creation. 

Resolution

SAP provides a supported enhancement option to influence the Exchange Rate determination during Billing Document creation via the BAdI Custom Data Transfer for Billing Process Documents (SD_BIL_DATA_TRANSFER). Within this BAdI, the parameter BIL_DOC_RES can be modified to override the default Exchange Rate type M. For more details on implementation, refer Custom Data Transfer for Billing Process Documents | SAP Help Portal.

See Also

Keywords

exchange rate, billing document, VAT, PLN, daily rate, monthly rate, SAP S/4HANA Cloud, BAdI SD_BIL_DATA_TRANSFER, BIL_DOC_RES, accounting exchange rate, Poland, incorrect exchange rate determination. , KBA , SD-BIL-IV-2CL , Processing Billing Documents (Public Cloud) , SD-BIL , Billing , Problem

Product

SAP S/4HANA Cloud Public Edition all versions