cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can we get exchange rates for the given date range?

0 Kudos
4,866

Hi All,

I had a requirement where I have to fetch a months all daily exchange rate between specific currencies and calculate the average out of it. Can anyone help me with any FM that can give all the exchange rates for the given date range and between given currencies?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Sorry for updating late. I got the FM for the same where we can pass multiple from currency, multiple to currency, multiple exchange rate types and multiple dates for which we want exchange rates.

It will give all possible and available combination of 'from currency', 'to currency', 'Exchange rate type' for all valid dates in given dates.

The FM is 'FM_EXCHANGERATE_GETDETAILS'.

Closing the thread.

Abhijeet Uttarwar

Answers (3)

Answers (3)

RaymondGiuseppi
Active Contributor

It would be easier to read data from TCURC (rate) and TCURF (conversion factors)

You could also use FM VIEW_GET_DATA on the maintenance view V_TCURR passing your selection criteria in DBA_SELLIST table parameter.

NB: Field GDATU is an inverted date (descending <> ascending order, statements such as CONVERT DATE dat1 INTO INVERTED-DATE dat2.)

RaymondGiuseppi
Active Contributor

Typo corrected, thx

Dominik_Tylczynski
SAP Champion
SAP Champion

Hello nilesh.shah8

Check out the BAPI functions:

  • BAPI_EXCHRATE_GETCURRENTRATES
  • BAPI_EXCHANGERATE_GETDETAIL

Best regards

Dominik Tylczynski

0 Kudos

Hi 3a9e4ce873a94034b33dc62b0ce600ee,

BAPI_EXCHRATE_GETCURRENTRATES - can provide multiple output but at input we can only pass single date to it. So can't use for my requirement.

BAPI_EXCHANGERATE_GETDETAIL - This FM also can't take more than one date or date range.

Thanks for the reply.

RobertVit
Active Contributor
0 Kudos

Hi,

mainly it is table tcurr and tcurrf