2009 Jan 23 6:16 AM
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
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
2009 Jan 23 6:19 AM
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.
2009 Jan 23 6:20 AM
2009 Jan 28 12:20 PM
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
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |