Skip to Content
0

ABAP Get Exchange Rate with Reference currency

May 23, 2017 at 02:08 PM

75

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi May 23, 2017 at 07:18 PM
0

It could be done via function module READ_EXCHANGE_RATE.

Share
10 |10000 characters needed characters left characters exceeded