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

Function Module to convert currency

Former Member
0 Likes
2,013

Hi all,

I need to convert all currency to 'EURO'.Could you please anybody help me in this regard.whather is there any function module?.

Regards.

Reddy Prasad.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,385

Check these FMs

CONVERT_TO_LOCAL_CURRENCY

CONVERT_TO_FOREIGN_CURRENCY

For more choices, type convertcurrency* and do an F4

~ Laxmi

  • Reward all helpful answers

4 REPLIES 4
Read only

Former Member
0 Likes
1,385

Hi,

You can use

FM <b>CURRENCY_CONVERT</b>

Thanks and Regards,

Kunjal Patel

Read only

Former Member
0 Likes
1,385

Hi,

you can use the function module CONVERT_TO_LOCAL_CURRENCY

Thanks

Naren

Read only

Former Member
0 Likes
1,386

Check these FMs

CONVERT_TO_LOCAL_CURRENCY

CONVERT_TO_FOREIGN_CURRENCY

For more choices, type convertcurrency* and do an F4

~ Laxmi

  • Reward all helpful answers

Read only

Former Member
0 Likes
1,385

HI,

Please try this .

FWOS_CURRENCY_DECIMALS_READ :All the currency amounts are stored in SAP tables as CURR(n,2) (the same as DEC(n,2)). So before any arithmetic operation value should be adjusted using the real decimals number for the given currency (stored in TCURX).

Conversion Rates by type and date are stored in TCURR (+factors). Standard type is M. Date is stored in inverted format (the most recent date has the numerically smallest value). ABAP code to convert dates:

convert date p_date into inverted-date w_date.

convert inverted-date w_date into date p_date.

CONVERT_TO_LOCAL_CURRENCY :the only difference between CONVERT_TO_LOCAL_CURRENCY and CONVERT_TO_FOREIGN_CURRENCY seems to be the following:

Foreign currency is TCURR-FCURR (From Currency)

Local Currency is TCURR-TCURR (To Currency)

So result will be slightly different for the both functions (two rates stored in the TCURR: e.g. JPY->USD rate is 0.00880, USD->JPY rate is 122.00000). Better to use CONVERT_TO_LOCAL_CURRENCY, because multiplication is more exact operation than division.

CONVERT_TO_FOREIGN_CURRENCY :Both conversion functions can return also selected rate and factors

reward all helpfull answers,

regards .

Jay