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

Currency conversion

Former Member
0 Likes
875

Hi Experts,

My application demands the conversion of foreigh currency into local currency i.e INR.

For Ex. The amount 565.923.708,00 is in euros and i want to convert it into the format 565,923,08.00.

Is there any BAPI, functional modules or conversion routine available for this application.

Thanks

Nayan

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
845

CONVERT_TO_LOCAL_CURRENCY - Check this FM

Regards

Gopi

Hi,

here some code:

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'

EXPORTING

DATE = SYST-DATUM

FOREIGN_AMOUNT = for_amount

FOREIGN_CURRENCY = 'USD'

LOCAL_CURRENCY = 'GPP'

  • TYPE_OF_RATE = 'M'

IMPORTING

LOCAL_AMOUNT = loc_ammount

EXCEPTIONS

NO_RATE_FOUND = 1

OVERFLOW = 2

NO_FACTORS_FOUND = 3

NO_SPREAD_FOUND = 4

DERIVED_2_TIMES = 5.

The call calculates the "GPP" value of a given "USD" value based on TCURR's 'official averadge rate' of the current day. Sorry, I just translated the german term, but this is the rate, that is used for international money transfer.

Pls. remember that someone has to fill TCURR with correct values

Reward if helpful.

Regards,

nagaraj

6 REPLIES 6
Read only

gopi_narendra
Active Contributor
0 Likes
846

CONVERT_TO_LOCAL_CURRENCY - Check this FM

Regards

Gopi

Read only

0 Likes
845

Hi Gopi,

The parameters i am passing is giving me a dump for it by using the function module CONVERT_TO_LOCAL_CURRENCY. Just tell me the parameters that i have to pass

Read only

0 Likes
845

Hi,

here some code:

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'

EXPORTING

DATE = SYST-DATUM

FOREIGN_AMOUNT = for_amount

FOREIGN_CURRENCY = 'USD'

LOCAL_CURRENCY = 'GPP'

  • TYPE_OF_RATE = 'M'

IMPORTING

LOCAL_AMOUNT = loc_ammount

EXCEPTIONS

NO_RATE_FOUND = 1

OVERFLOW = 2

NO_FACTORS_FOUND = 3

NO_SPREAD_FOUND = 4

DERIVED_2_TIMES = 5.

The call calculates the "GPP" value of a given "USD" value based on TCURR's 'official averadge rate' of the current day. Sorry, I just translated the german term, but this is the rate, that is used for international money transfer.

Pls. remember that someone has to fill TCURR with correct values

Reward if helpful.

Regards,

nagaraj

Read only

former_member404244
Active Contributor
0 Likes
845

Hi,

cehck the FM "CONVERT_TO_LOCAL_CURRENCY".

Rward if helpful.

Regards,

Nagaraj

Read only

Former Member
0 Likes
845

hi,

change the settings in tcode oy01. for country india,

if u need this in scripts,

set country 'IN'.

regards

siva

Read only

Former Member
0 Likes
845

Hi Nayan,

Use the FM <b>CONVERT_AMOUNT_TO_CURRENCY</b>

Thanks

Vijay

PLZ reward points if helpful