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
178

Hi Abapers,

Is there any way to convert the amount into Local Currency with out using the Write statement or CURRENCY_AMOUNT_SAP_DISPLAY.

7 REPLIES 7

Former Member
0 Kudos
91

Hi,

Please try to use this FMs

CONVERT_TO_LOCAL_CURRENCY

CONVERT_TO_LOCAL_CURRENCY_O

CONVERT_TO_LOCAL_CURRENCY_N

For the sample code refer to this thread -

Thanks & Regards,

Chandralekha.

former_member181995
Active Contributor
0 Kudos
91

Ragha,

use:

RM_MM_AMOUNT_CURRENCY_CONVERT

bpawanchand
Active Contributor
0 Kudos
91

Hi

CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.

CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency

Regards

Pavan

Former Member
0 Kudos
91

Hi Raghav,

You can use the function module :

CONVERT_TO_LOCAL_CURRENCY

Try the following example:

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'


EXPORTING


date = sy-datum


foreign_amount = x_booking-forcuram


foreign_currency = x_booking-forcurkey


local_currency = local_currency


IMPORTING



exchange_rate = 

foreign_factor = fremdkurs 
local_amount = local_amount



local_factor = 

exchange_ratex = faktorsum 

FIXED_RATE = 

DERIVED_RATE_TYPE = 
EXCEPTIONS


no_rate_found = 1


overflow = 2


no_factors_found = 3


no_spread_found = 4


derived_2_times = 5


OTHERS = 6.

Hope this helps you.

Regards,

Chandra Sekhar

Former Member
0 Kudos
91

Hi

Alternately you can use FM: READ_EXCHANGE_RATE. It'll give youconversion factor for your amount. There are other FMs in Func. Grp."SCUR" for converting Currency Amounts.

CONVERT_TO_LOCAL_CURRENCY - Conversion of currency

CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.

Regards

Shreemudra

Former Member
0 Kudos
91

Hi,

U can try with this function module

CONVERT_TO_LOCAL_CURRENCY.

check this link:

http://www.sap-img.com/abap/function-list.htm

Cheers,

vasavi.v

Former Member
0 Kudos
91

Hi Raghavendra.

I would like to suggest a few,

CONVERT_AMOUNT_TO_CURRENCY

HRCM_AMOUNT_CONVERT_CURRENCY

RM_MM_AMOUNT_CURRENCY_CONVERT

CONVERT_TO_FOREIGN_CURRENCY - Translate local currency amount into foreign currency

CONVERT_TO_LOCAL_CURRENCY - Translate foreign currency amount to local currency

Hope that's usefull.

Good Luck & Regards.

Harsh Dave