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

Problem while using CONVERT_TO_FOREIGN_CURRENCY

Former Member
0 Likes
1,538

Hi,

I am facing an issue while using the function module CONVERT_TO_FOREIGN_CURRENCY.

I am converting a value from EUR to USD. The type of rate that is passed to the FM is 'M'. However the functional module picks the exchange rate of rate type 'EURX' and performs the conversion.

I also tried with FM CONVERT_TO_LOCAL_CURRENCY but still the results are consistent.

Can anyone help me sort out what the issue is and how to resolve the same.

Thanks.

Regards,

Senthil G.

3 REPLIES 3
Read only

Former Member
0 Likes
614

If the following FMs

FWOS_CURRENCY_DECIMALS_READ

CONVERT_TO_LOCAL_CURRENCY

are not working then

These FMs will help you ge exchange rate

BAPI_EXCHANGERATE_GETDETAIL

READ_EXCHANGE_RATE

Once you get the exchange rate, multiply the source currency with it and get the target currency.

Regards,

Prashant

Read only

0 Likes
614

Thanks Prahant.

The BAPI that you gave me returns the exchange rate for M. But why is that the other function modules doesnot return the same value?

Is there any config that has to be done for this.

Regards,

Senthil G.

Read only

former_member156446
Active Contributor
0 Likes
614

Hi there....these Fm s picks the values from TCURR and TCURX table.. so I would suggest to hit the tables and get the values out..