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

Functional module for CURRENCY CONVERSION

Former Member
0 Likes
2,770

Hi Experts,

My requirement is to convert local currency amount to global currency amount in the Start Routine. I am looking for a function module which can perform this function - read the currency exchange rate from TCURR table and multiple the rate with local currency amount and provide the converted amount as output. If anyone is aware of a function module which can meet my requirement, pls share it with me.

Thanks In Advance.

Regards,

Bala

3 REPLIES 3
Read only

Former Member
0 Likes
1,329

Hi Bala,

Check the following Function Modules.

CONVERT_TO_FOREIGN_CURRENCY Translate local currency amount into foreign currency

CONVERT_TO_LOCAL_CURRENCY Translate foreign currency amount to local currency

Regards,

Abhisek.

Read only

Former Member
0 Likes
1,329

HI,

Duplicate Thread [Functional module for CURRENCY CONVERSION |;

Read only

Former Member
0 Likes
1,329

Hi,

you can also use the below FM for the conversion

DATA : lv_amnt TYPE crmt_net_value.

CALL FUNCTION 'CRM_CONVERT_CURRENCY'

EXPORTING

iv_exch_rate_date = sy-datlo

iv_source_currency = 'INR'

iv_local_currency = 'INR'

iv_target_currency = 'USD'

CHANGING

cv_value = lv_amnt

EXCEPTIONS

conversion_not_possible = 1

OTHERS = 2.

IF sy-subrc 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO lv_dummy.

ENDIF.

the value of lv_amnt, will be in INR before the FM is called & it will be converted to USD after execution