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: 

Corrency Conversion

Former Member
0 Kudos

Hi All,

I have currency conversion problem. COuld you please suggest me the best way to do it.


From Currency: KRW
From Factor: 100
To currency: USD
To Factor: 1
Exchange Rate: 0.15555

There are table TCURR and TCURX. How to use these.

I tried using all the converion function modules, but failed. Could you please suggest me the code if any. or FMs how to use with example code Please

3 REPLIES 3

former_member181995
Active Contributor
0 Kudos

https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=functionmoduleforCurrencyConversion+++&adv=false&sortby=cm_rnd_rankvalue

former_member156446
Active Contributor
0 Kudos

Hi I wrote this : and it returns some thing

REPORT  zj_test LINE-SIZE 162.
DATA: lv_amount TYPE p DECIMALS 3.

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
  EXPORTING
   client                  = sy-mandt
    date                    = sy-datum
    foreign_amount          = '50000'
    foreign_currency        = 'KRW'
    local_currency          = 'USD'
*   RATE                    = 0
*   TYPE_OF_RATE            = 'M'
*   READ_TCURR              = 'X'
 IMPORTING
*   EXCHANGE_RATE           =
*   FOREIGN_FACTOR          =
   local_amount            = lv_amount
*   LOCAL_FACTOR            =
*   EXCHANGE_RATEX          =
*   FIXED_RATE              =
*   DERIVED_RATE_TYPE       =
 EXCEPTIONS
   no_rate_found           = 1
   overflow                = 2
   no_factors_found        = 3
   no_spread_found         = 4
   derived_2_times         = 5
   OTHERS                  = 6
          .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE: lv_amount.

0 Kudos

I've one CO module report in my hands,Can you please help to write this quickly,as i've bunch of work besides me