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: 

how to convert euro in to rupees ?

Former Member
0 Kudos

hai frenz...

i wanted to know how to convert the euro into rupees....

help me....

regards

meena

8 REPLIES 8

Former Member
0 Kudos

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.

matt
Active Contributor
0 Kudos

FM CONVERT_TO_LOCAL_CURRENCY

Former Member
0 Kudos

Hi,

Use function module CURRENCY_CONVERT_TO_EURO.

Regards,

Dhanunjaya Reddy

0 Kudos

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...

0 Kudos

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.

satsrockford
Active Participant
0 Kudos

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.

satsrockford
Active Participant
0 Kudos

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

Former Member
0 Kudos

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