10-10-2008 9:27 AM
hai frenz...
i wanted to know how to convert the euro into rupees....
help me....
regards
meena
10-10-2008 9:30 AM
Hi Meena,.
There are so many function modules that are available for currency coversion.
You can use any one of them.....try using F4 in SE37 with some key words like "Curreny*" etc..etc....
Best Regards,
Ram.
10-10-2008 9:30 AM
10-10-2008 9:34 AM
Hi,
Use function module CURRENCY_CONVERT_TO_EURO.
Regards,
Dhanunjaya Reddy
10-10-2008 9:55 AM
HAI DHANUNJAYA ...
IF POSSIBLE TRY TO SEND ME AN EXAMPLE CODE,,,,
LIKE I VE 1000 RUPEE AND NEED TO CONVERT THAT INTO EURO....
HELP ME OUT..
REGARDS MEENA...
10-10-2008 9:58 AM
hi,
check this.
DATA: L_KONP LIKE KONP OCCURS 0 WITH HEADER LINE.
DATA: L_BETR_EURO LIKE KONP-KBETR.
CALL FUNCTION 'CURRENCY_CONVERT_TO_EURO'
EXPORTING
AMOUNT = L_KONP-KBETR
CURRENCY = L_KONP-KONWA
IMPORTING
AMOUNT_EURO = L_BETR_EURO
* EXCHANGE_RATE =
* FACTOR_CURRENCY =
* FACTOR_EURO =
EXCEPTIONS
NO_EURO_CURRENCY = 1
OVERFLOW = 2
OTHERS = 3.
10-10-2008 9:58 AM
hi
U can Use the Following Function Module to convert from one Currency value to other. In following function module we need to pass foreign currency,
Local Currency, type_rate: Type of rate, M=Average rate, G=Bank buying rate, B=bank selling rate.
We Get Exchange rate for that day, foreign factor, Local factor. And foreign currency can be calculated as below mentioned in IF ENDIF
Values stored in fields of type CURR can have different values than those displayed on screen. To ensure the correct value is displayed on screen or used in calculations the value in the field must be associated to its currency unit. This can be done using a number of standard ABAP statements like WRITE/ *Write TO and also with the FM CURRENCY_AMOUNT_SAP_TO_DISPLAY. Once you have done this you may want to convert the value to another currency.
DATA: t_er TYPE tcurr-ukurs,
t_ff TYPE tcurr-ffact,
t_lf TYPE tcurr-tfact,
t_vfd TYPE datum,
ld_erate(12) TYPE c.
CALL FUNCTION 'READ_EXCHANGE_RATE'
EXPORTING
CLIENT = SY-MANDT
date = p_date u201C p_ date type sy-datum
foreign_currency = p_fcurr u201C p_fcurr type tcurr-fcurr
local_currency = p_tcurr u201C p_tcurr type tcurr-tcurr
TYPE_OF_RATE = 'M'
EXACT_DATE = ' '
IMPORTING
exchange_rate = t_er
foreign_factor = t_ff
local_factor = t_lf
valid_from_date = t_vfd
DERIVED_RATE_TYPE =
FIXED_RATE =
OLDEST_RATE_FROM =
EXCEPTIONS
no_rate_found = 1
no_factors_found = 2
no_spread_found = 3
derived_2_times = 4
overflow = 5
zero_rate = 6
OTHERS = 7
.
IF sy-subrc EQ 0.
ld_erate = t_er / ( t_ff / t_lf ).
p_value = p_value * ld_erate. u201C p_date type i
ENDIF.
10-10-2008 10:00 AM
hi
You can use u2018CONVERT_TO_FOREIGN_CURRENCYu2019 to covert local currency to any foreign currency
and use u2018CONVERT_TO_LOCAL_CURRENCYu2019 to covert foreign currency to local currency.
regards
Satish
10-10-2008 10:15 AM
Hi
You can use u2018CONVERT_TO_FOREIGN_CURRENCYu2019 to covert local currency to any foreign currency
and use u2018CONVERT_TO_LOCAL_CURRENCYu2019 to covert foreign currency to local currency.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
CLIENT = SY-MANDT
date =
foreign_currency =
local_amount =
local_currency =
RATE = 0
TYPE_OF_RATE = 'M'
READ_TCURR = 'X'
IMPORTING
EXCHANGE_RATE =
FOREIGN_AMOUNT = u2018converted amountu2019
FOREIGN_FACTOR =
LOCAL_FACTOR =
EXCHANGE_RATEX =
DERIVED_RATE_TYPE =
FIXED_RATE =
These function module has exchange rate date as exporting parameter.
Date will be checked against u2018OB08 u2018table to fetch exchange rate for that day.
regards,
Ramya