cancel
Showing results for 
Search instead for 
Did you mean: 

Need Function Module for convertion of Foreign currency to Indian currency

Former Member
0 Kudos

hi friends,

i need function module for converting amount from

Foreign currency to Indian currency

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
 CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
      EXPORTING
        DATE             = SYST-DATUM
        FOREIGN_AMOUNT   = for_amount
        FOREIGN_CURRENCY = 'USD'
        LOCAL_CURRENCY   = 'INR'
*            TYPE_OF_RATE = 'M'  
      IMPORTING
        LOCAL_AMOUNT     = loc_ammount
      EXCEPTIONS
        NO_RATE_FOUND    = 1
        OVERFLOW         = 2
        NO_FACTORS_FOUND = 3
        NO_SPREAD_FOUND  = 4
        DERIVED_2_TIMES  = 5.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi Venkat,

Please use the function module CONVERT_TO_LOCAL_CURRENCY

<b><u>Sample code:</u></b>


      call function 'CONVERT_TO_LOCAL_CURRENCY'
        exporting
          date             = p_alv_tab-begda
          foreign_amount   = p_alv_tab-kkost_p_person
          foreign_currency = p_alv_tab-kwaer                 " foreign currency
          local_currency   = l_ev_waer                           " Indian currency
        importing
          local_amount     = p_alv_tab-kkost_p_person
        exceptions
          no_rate_found    = 1
          overflow         = 2
          no_factors_found = 3
          no_spread_found  = 4
          others           = 5.

Hope this helps,

Sajan Joseph.