‎2007 May 28 10:36 AM
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 ?
‎2007 May 28 10:41 AM
‎2007 May 28 10:43 AM
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
‎2007 May 28 10:45 AM
Details will be stored in table TCURR
Regards,
Amit
Reward all helpful replies.
‎2007 May 28 10:46 AM
to get exchange rate use FM
BAPI_EXCHANGERATE_GETDETAIL
or
READ_EXCHANGE_RATE
‎2008 May 22 12:33 PM
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