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: 

Function module for converting currency format

Former Member
0 Kudos

Hi,

Can you tell me if there is any function module that can convert the currency format '110,32' (for example) to USA format for example '110.32' ?

Please help with this at the earliest possible as this is urgent requirement.

Thanks a lot,

Krishen

1 ACCEPTED SOLUTION

Former Member
0 Kudos

use ' CONVERT_TO_LOCAL_CURRENCY'. If exchange rate is not coming then u can use 'READ_EXCHANGE_RATE'. to obtain exchange rate first and put that value in former fm.

mandeep

6 REPLIES 6

Former Member
0 Kudos

Hi

The format currency depends on the user parameters.

U can use the WRITE statament, and the system automatically will write the currency in according to the user parameters.

U can try to use the statament SET COUNTRY <COUNTRY>, set all formats (date, currency) used in a country. In this way your program should be independent from user parameters.

Max

0 Kudos

This was really helpful, solved my issue... Thankyou

Former Member
0 Kudos

use ' CONVERT_TO_LOCAL_CURRENCY'. If exchange rate is not coming then u can use 'READ_EXCHANGE_RATE'. to obtain exchange rate first and put that value in former fm.

mandeep

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Try this and reward points if it helps.

CALL FUNCTION 'CONVERT_AMOUNT_TO_CURRENCY' EXPORTING

date = sy-datum

foreign_currency = 'USD'

foreign_amount = '2000.00'

local_currency = 'EUR'

IMPORTING

local_amount = amount.

Former Member
0 Kudos

Hi,

Please use the following FM.

<b>CONVERT_AMOUNT_TO_CURRENCY</b>

Please use the following FM's to convert currency from internal format to external and vice versa(This for dialog programming and Netweaver webdynpros purpose only).

<b>BAPI_CURRENCY_CONV_TO_EXTERNAL

BAPI_CURRENCY_CONV_TO_INTERNAL</b>

Regards

Bhupal Reddy

Former Member
0 Kudos

Hi,

Use the FMs:

<b>CONVERT_TO_FOREIGN_CURRENCY</b>

Convert local currency to foreign currency.

<b>CONVERT_TO_LOCAL_CURRENCY</b>

Convert from foreign currency to local currency

<b>CURRENCY_AMOUNT_SAP_TO_DISPLAY </b> Convert currency value from value stored in SAP to displayed currency

<b>CURRENCY_AMOUNT_DISPLAY_TO_SAP </b> Convert currency value from displayed currency value to value stored in SAP

Hope it helps.

Reward if helpful.

Regards,

Sipra