Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Get Exchange Rate with Reference currency

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

It could be done via function module READ_EXCHANGE_RATE.

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

It could be done via function module READ_EXCHANGE_RATE.