The Exchange Rates service is a core component of the Currency Services Exchange Rates package. This service provides an exchange rate value from a source currency to one or more target currencies for the dates you specify. Note that the service only accepts
EUR as the source currency. For example, if you input
EUR as the source currency and select
USD as the target currency, the Exchange Rates service looks at the date you provide, and fetches the conversion rate for that day. The currency values are fetched from the European Central Bank.
Scopes are strings that allow you to specify the type of access you need to the resources and operations in, and prevent unauthorized access to, the Exchange Rates service. This service supports the scopes shown in this table:
|sap.exchangerates_read||Use this scope to call the Currency Services Exchange Rates service and get the exchange rates data.|
As an existing SAP S/4HANA customer working on a sales management product, you might need daily exchange rates to convert worldwide currencies into your local currency for processing sales orders. In this scenario, you could configure your system to receive exchange rates on a daily basis by using the Exchange Rates service.
To start consuming the Exchange Rates service, first follow the configurations described in the SAP Note 2431370.
The note describes:
- Technical prerequisites
- SAP S/4HANA configuration steps
After you implement these steps, make a POST call to the
/currency/sap/s4htbd4/rates endpoint with the payload to request for exchange rates in response. Note that the format of the values in the payload information is character- and space-specific.
You can get the currency values for the following currency pairs.
|Source Currency||Target Currency|
If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.
Use our private help channel. Receive updates over email and contact our specialists directly.
If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.