Application Development 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: 

Currency conversion

Former Member
0 Kudos

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

gopi_narendra
Active Contributor
0 Kudos

CONVERT_TO_LOCAL_CURRENCY - Check this FM

Regards

Gopi

6 REPLIES 6

gopi_narendra
Active Contributor
0 Kudos

CONVERT_TO_LOCAL_CURRENCY - Check this FM

Regards

Gopi

0 Kudos

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

0 Kudos

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

former_member404244
Active Contributor
0 Kudos

Hi,

cehck the FM "CONVERT_TO_LOCAL_CURRENCY".

Rward if helpful.

Regards,

Nagaraj

Former Member
0 Kudos

hi,

change the settings in tcode oy01. for country india,

if u need this in scripts,

set country 'IN'.

regards

siva

Former Member
0 Kudos

Hi Nayan,

Use the FM <b>CONVERT_AMOUNT_TO_CURRENCY</b>

Thanks

Vijay

PLZ reward points if helpful