cancel
Showing results for 
Search instead for 
Did you mean: 

Fetching wrong exchange rate from tcurr in fm CONVERT_TO_LOCAL_CURRENCY

Saumya76
Explorer
0 Kudos
121

Hi all,

I am using FM CONVERT_TO_LOCAL_CURRENCY to convert currency from EUR to GBP. 

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
client = sy-mandt
date = sy-datum
foreign_amount = lv_f_amount
foreign_currency = lv_fcurr
local_currency = iv_waers
rate = 0
type_of_rate = 'P'
read_tcurr = 'X'
IMPORTING
local_amount = lv_locamt
exchange_rate = lv_exchange_rate
EXCEPTIONS
no_rate_found = 1
overflow = 2
OTHERS = 3.

It is converting value but the exchange rate it takes is wrong. In table tcurr we have maintained this rate

Saumya76_0-1726497103566.png

but the rate it is taking is the one highlighed

Saumya76_1-1726497152999.png

this is the data I am giving directly into the fm

Saumya76_2-1726497196048.png

293725.89

The result of fm and my code is same. There is no alternative currency maintained in tcurf. 

 

Please suggest what I should do.

 

Accepted Solutions (1)

Accepted Solutions (1)

Saumya76
Explorer
0 Kudos

Hi, I am posting the solution incase anyone facing same issue.

So .877 is a indirect exchange rate. Go to se16n and check data, you will see '/ ' before indirect exchange rate value. 

Incase of indirect exchange rate you read it from right to left. So 1EUR = 0.877GBP. In se11 contents this is not clear.

Answers (0)