Application Development and Automation 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: 
Read only

Exchange Rate

Former Member
0 Likes
816

Hi experts,

i am using function module CONVERT_TO_FOREIGN_CURRENCY to find Exchange rate.

My data is to convert Euro to USD. that is

My Foreign Currency is USD

Local Currency is EUR

The abov function module import the Exchange rate as .754 as of Today's date.

Is it Right ? but the Forign Amount import by this FM is right.

1 EUR = 1.34 USD.

Pls any one tell me is it right ?

5 REPLIES 5
Read only

Former Member
0 Likes
677

Pls. use BAPI_CURRENCY_CONV_TO_EXTERNAL

Read only

Former Member
0 Likes
677

hi,

do this way

CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
EXPORTING
date = sy-datum
foreign_currency = 'EURO'
local_amount = '1.34'
local_currency = 'USD'
IMPORTING
foreign_amount = v_amount
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
derived_2_times = 5
OTHERS = 6.
IF sy-subrc = 0.

ENDIF.

Message was edited by:

Santosh Kumar Patha

Read only

amit_khare
Active Contributor
0 Likes
677

Details will be stored in table TCURR

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
677

to get exchange rate use FM

BAPI_EXCHANGERATE_GETDETAIL

or

READ_EXCHANGE_RATE

Read only

Former Member
0 Likes
677

Hi,

To check availability of calculation, you must increase your

accuracy at to five digit.

Your result is not wrong but not exact ...

The formula is : system currency value / rate = foreign currency value. But in your sample 1 / .754 = 1.34 it

doesnt match.

Rgds