Skip to Content

ABAP Get Exchange Rate with Reference currency

Dear Experts,

After defined the reference currency 'USD' in OB07, I have tested function BAPI_EXCHANGERATE_GETDETAIL but it is not working fine.

Example: In TCURR I have ExchRate

From EUR to AUD date 01.01.2010

From EUR to USD date 23.05.2017

From AUD to USD date 23.05.2017

And today I have defined in OB07 reference currency 'USD'.

When I post a document (dated today) system is working fine and calculate rate between EUR and AUD through currency 'USD'. --> OK

The issue is in a Z program in which I need to get the rate between EUR and AUD. Using FM BAPI_EXCHANGERATE_GETDETAIL I get the value of 01.01.2010 instead of calculation with USD currency.

Do you know how to solve it? I guess I can get the rate between EUR and USD (rate 1) and the rate between AUD and USD (rate 2) and finally the rate I need is rate1/rate2.

But I am wondering if there is any Standard FM that gets the correct rate.

Thanks in advance.

Best Regards.

Sara

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 23, 2017 at 07:18 PM

    It could be done via function module READ_EXCHANGE_RATE.

    Add comment
    10|10000 characters needed characters exceeded