Convert from X currency to Y currency?

Hi Experts,
Am looking to convert some amount from X currency to Y currency........so, am using the FM 'CONVERT_TO_LOCAL_CURRENCY'.........and in my  z prog. its working fine.
but, still, i wanna to cross test the values in SE37 for the same FM, but, I am not getting any RETURN values!!!!!!!!
1 - so, let me know, why am ´not getting the return values in se37? while in my z prog, its fine.
2 - is there any other GOOD function module to achieve this?
replies appreciated
thanq

Hello,
See this: Currency conversion.
Regards.

Similar Messages

  • Alternate Exchange Rate Type Not Picked while converting from Document Currency to Group Currency

    Hello Gurus,
    We have setup an alternate Exchange Rate type MNB for rate M for the postings happening in Hungary. Local currency is HUF. Group currency is USD.
    If the document currency is, lets say, EUR, latest MNB rate is correctly picked up (EUR to HUF) and postings are correctly converted into local currency (HUF).
    Although, for the same document, when a group currency is being calculated (EUR to USD), exchange rate type M is being picked up. Same happens if  document currency is HUF. Even then, the conversion is based on exchange rate type M.
    Is this a normal SAP behavior? How to prevent/correct this? This is also throwing off balances when we check in FAGLB03 or BSEG values in local and group currencies. In OB22, we have local currency1 and local currency 2 setup with exchange rate type M and we may not want to make any changes there as it is setup at global level.
    Do we need to run any valuations after the fact? if so, how?
    Thank you for your inputs in advance.
    Regards,
    Sagar

    Hi,
    You mentioned that "in OB22, we have local currency1 and local currency 2 setup with exchange rate type M". Then, I'm wondering how MNB is picked up for the first local curr. conversion to HUF? It should be 'M' instead. There must be some settings in your instance for such behavior. Can you check that?
    Actually, Group Curr. conversion happens with the rate defined for 2nd Loc.Curr.in OB22 which is 'M' in your case. Therefore, all the transactions are converted with M instead of MNB.
    Since you can't change OB22 per global co.policy, the exch.rate defined in OBA7 will overrule OB22. However, you've to make sure it's set up for all doc.types which are affected and posted in different curr. than HUF.
    As a workaround, another thought would be to maintain the same conversion rate for both exch.rate types MNB & M, for eg. HUF > USD rate is the same both exch.rate type MNB & M. This way, you ensure all transactions are posted with correct exch.rate irrespective of whatever rate type is used.
    From business, & global org. perspective, I'm sure they are sending the 'M' exch.rates to all their sister concerns monthly, so they would like to consolidate results as per standard rate in their system. Then, why ,as a local company, would you like to fiddle with standard process? It's a management decision, please run them through again before going ahead.
    Thanks,
    Nirav

  • Converting from a currency other than LC

    Hello,
    We have a customer application where we store not only amount in LC but also the amount in Invoice Currency ("IC").  For example, we invoice customers in a currency other than our company code's local currencies.  We have a requirement to convert actuals into USD and EUR by taking IC not LC.  I have created a new category for this ACTBUD and have gotten it working for LC.  I want to get it to work starting IC as the base currency.  All the documentation I have read says that BPC uses LC as the default for currency translation.
    Does anyone know if this can be changed?
    Thanks,
    Mark

    Here you go...we have four different reporting currencies:
    IC = invoice currency or document currency.
    LC = Local Currrency
    USD = USD or Group Currency
    EUR = Our EU users have requested that we also track Euros translated at budgetd rates.
    The below code translates LC, USD and EUR from IC for all categories but Actual.  Our actuals we get directly from our SAP system.  We created a new category called ActBud and then translate the other reporting currencies from IC.  It works pretty well.
    // FX Translation for any data in the Customer application
    // Added following line for performance
    *PROCESS_EACH_MEMBER=TIME
    *SELECT (%FX_RATES%, "[ID]", "RATE", "[GROUP] = 'FX RATE'")
    // Block 1 - Clear out any previously calculated USD and EUR values, for all categories but Actual.
    *XDIM_MEMBERSET DATASRC=COMPANY
    *XDIM_MEMBERSET RPTCURRENCY=USD,EUR,LC
    *XDIM_MEMBERSET INTCO=<ALL>
    *WHEN CATEGORY
    *IS <> "ACTUAL"
        *WHEN CUSTACCOUNT.RATETYPE
        *IS <> "NOTRANS"
            *REC(FACTOR=0)
        *ENDWHEN
    *ENDWHEN
    *COMMIT
    //Block 2 - Perform standard foreign currency translation, for all categories but Actual.
    *XDIM_MEMBERSET DATASRC=COMPANY
    *XDIM_MEMBERSET INTCO=<ALL>
    *XDIM_MEMBERSET RPTCURRENCY=IC
    *LOOKUP RATE
        *DIM RATESRC="RATECALC"
        *DIM RATE=CUSTACCOUNT.RATETYPE
        *DIM SOURCECURRENCY:INPUTCURRENCY=INVOICECURRENCY
        *DIM TARGETCURRENCY_LC:INPUTCURRENCY=ENTITY.CURRENCY
        *DIM TARGETCURRENCY_USD:INPUTCURRENCY="USD"
        *DIM TARGETCURRENCY_EUR:INPUTCURRENCY="EUR"
    *ENDLOOKUP
    //*XDIM_MAXMEMBERS TIME=1
    *WHEN CATEGORY
    *IS <> "ACTUAL"
        *WHEN CUSTACCOUNT.RATETYPE
        *IS "NOTRANS"
        *IS %FX_RATES%
            *REC(FACTOR=LOOKUP(SOURCECURRENCY)/LOOKUP(TARGETCURRENCY_USD),RPTCURRENCY="USD")
            *REC(FACTOR=LOOKUP(SOURCECURRENCY)/LOOKUP(TARGETCURRENCY_LC),RPTCURRENCY="LC")
            *WHEN ENTITY.EURO
                *IS "Y"
                *REC(FACTOR=LOOKUP(SOURCECURRENCY)/LOOKUP(TARGETCURRENCY_EUR),RPTCURRENCY="EUR")
            *ENDWHEN
        *ELSE
           *REC(RPTCURRENCY="USD")
           *REC(RPTCURRENCY="LC")
           *WHEN ENTITY.EURO
                *IS "Y"
                *REC(RPTCURRENCY="EUR")
            *ENDWHEN
        *ENDWHEN
    *ENDWHEN
    *COMMIT

  • How SAP captured the RAW MAT amount from Local currency to JPY.

    Hi All,
    I've class 1 material when perform maintained receipt found the RAW Mat material was posting wrong figure when convert from Local Currency RM to JPY.
    Exp: my RAW MAT amount is material standard price x qty.
    Let said my standard price is RM9.61 and the qty is 180 so that my Raw Mat amount is RM1729.80 and exchange rate is 3.718 form JPY to MYR when i display it on  document currency the amount show in JPY is 46,440 instead off 46,525.
    But when i cancel the document the system do captured the correct amount 46,525.
    How sap get this Raw Mat amount?
    Thanks in advance.

    MYR = Malaysia Ringgit.
    The RAW MATT price is correct when in Local Currency which is in MYR but there are the variance when convert to others currency like JPY and USD.

  • FM to convert amount  from one currency to another currency?

    HI Experts
    is thier any Fucnction module to convert amount  from one currency to another currency?
    please help me.
    Thanks

    Hi,
    data: lv_foramt TYPE vbap-netpr VALUE 40,
          lv_forcurr TYPE string VALUE 'USD',
          lv_loccurr TYPE string VALUE 'INR',
          lv_locamt TYPE vbap-netpr.
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
           EXPORTING
            CLIENT                  = SY-MANDT
             DATE                    = sy-datum
             FOREIGN_AMOUNT          = lv_foramt
             FOREIGN_CURRENCY        = lv_forcurr
             LOCAL_CURRENCY          = lv_loccurr
            RATE                    = 0
           TYPE_OF_RATE            = 'M'
            READ_TCURR              = 'X'
          IMPORTING
    *        EXCHANGE_RATE           =
    *        FOREIGN_FACTOR          =
            LOCAL_AMOUNT            = lv_locamt
    *        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_locamt.
    P.S. Please test your FM in SE37. When I tested, it worked only between USD and INR.

  • Currency convertion from SKK  to EURO

    HI Friends
    A country is joining the Euro area on a particular date. we wish to change the currency customizing to reflect this change.  For example, Slovenkia is planning on joining the Euro area from  01.01.2009.
    so we wish to change from the existing currency to Euro in the BW System .
    Anybody can give some suggestions and necessery steps for that.
    ANY THING AND EVERY THING WILL BE REWARDABLE
    Thanks in Advance
    Regards
    RK

    Hi,
    exchange rate here is how one currency converted to another currency at certain date, e.g 06.07.2007 1 USD = 41 INR ...
    http://www.x-rates.com/d/INR/table.html
    in sap system (r/3, bw, ..) it's maintained in table TCUR*, for BW normally it's transferred from r/3 via rsa1->transfer exchange rates, and the update scheduled periodically.
    or you can upload the exchange rate via flat file
    http://help.sap.com/saphelp_nw04s/helpdata/en/36/412ae30cb511d5b2df0050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/36/412ad80cb511d5b2df0050da4c74dc/frameset.htm
    take a look
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/076f3b6c980c3be10000000a11402f/frameset.htm
    sample code in transfer/update rules check following
    CONVERT_TO_FOREIGN_CURRENCY or 'RSW_CURRENCY_TRANSLATION'
    currency conversion
    currency translation
    in query level, try to check 'how to use variable for currency conversion' doc
    https://websmp106.sap-ag.de/~sapdownload/011000358700005669792003E/How_to_VarCC_v3.pdf
    also
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/462fe790-0201-0010-3ca4-adfd89e4f9f2
    oss note 656863
    currency translation
    hope this helps.
    Regards
    CSM Reddy

  • Currency INR convert in EURO currency in MIRO

    Hello MM Sapperu2019s,
    Let me know the reason from forum when I enter the tax code in MIRO autoamcaally the Currency INR convert in EURO currency. Please provide your inputs what could be the reason for this and how I can resolve this case.
    Cheers,
    Kumar.S

    HI,
    Because your main vendor has currency EURO so its coming there  and IN po your currecny will be EURO
    check vendor currency
    If you don want it thne
    do following
    in MIRO after execution before giveing PO number chnage currency to INR and enter and then give PO number it will not chnage then
    Regards
    Kailas Ugale
    Edited by: kailasugale on Feb 9, 2012 11:51 AM

  • Need Function Module for convertion of  Foreign currency to Indian currency

    hi friends,
    i need function module for converting amount from
    Foreign currency to Indian currency
    thanks

    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.

  • CONVERT TO FOREIGN CURRENCY

    Hi all,
    I am using CONVERT_TO_FOREIGN_CURRENCY function module for converting
    local currency to foreign currency.
    I am converting from HUF to USD ,in this case it is giving the error like USD/HUF exchange rates are not maintaining.
    But in my system exchange rates are maintaining in TCURR table.
    Here i have one query,in  the table TCURR fcurr and tcurr fields are there
    in this fcurr(from currency) means HUF and tcurr(to currency) means USD (in my case right) in that case they are maintaining,
    but fcurr is USD and tcurr is HUF  in that case they are not maintaing,
    Please confirm this .
    regards,
    rakesh.

    Hi Raki,
    Check the below code and test, this is with ref to common sap function modules by william. i made modifications according to your currency.
    Data: xrate type f,
          famt type p,
          ffact type f,
          lfact type f.
    parameters:fcurr like TCURC-WAERS default 'USD',
               lcurr like TCURC-WAERS default 'HUF',
               lamt like eban-rlwrt. "can also write as lamt type p.
    CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
      EXPORTING
        DATE                    = sy-datum
        FOREIGN_CURRENCY        = fcurr
        LOCAL_AMOUNT            = lamt
        LOCAL_CURRENCY          = lcurr
    IMPORTING
       EXCHANGE_RATE           = xrate
       FOREIGN_AMOUNT          = famt
       FOREIGN_FACTOR          = ffact
       LOCAL_FACTOR            = lfact
    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.
    write:/ lamt, 'converted form', lcurr, 'to', fcurr, 'is:', famt.
    else.
    write:/ lamt, 'not converted'.
    ENDIF.
    Cheers!!
    VEnk@
    Edited by: Venkat Reddy on Nov 3, 2008 9:49 AM

  • FM in order to convert values between currency

    Hi,
    I need a FM in order to convert a value from one currency to another.
    For example:
    value 12,54
    currency1 = EUR
    currency2= USD

    Hi
    What is the function module to convert currency?
    Re: EUR Conversion to USD
    Regards
    Pavan

  • BP currency and transaction currency is different from Local currency.

    Hi,
    I have this confusing scenario here and really appreciate some share of ideas.
    I have a scenario here.
    Local currency + system currency = AUD
    There is some New Zealand (NZ) customers (eg: C00001), set up with multicurrency, because we process transactions with them in USD.
    We hedge USD and NZ currencies.
    Let's say today is 29/9/2008 and I have the following rate:
    Spot rate 1 USD = 1.207 AUD
    Spot rate 1 NZD = 0.82293 AUD
    Forward rate 1 USD = 1.10 AUD
    Forward rate 1 NZD = 0.9 AUD
    process NZ customers in USD
    When a sales transactions is processed against C00001 in USD, forward rate 1.10 is used, SAP recorded the transactions in USD and AUD.
    To see how much NZD it is, forward rate 0.9 should be used.
    (ii) process NZ customers in NZ
    Spot rate 0.82293 is used.
    Now, we need to provide a Profit and Loss in NZD to NZ Tax Department for those sales transactions to New Zealand customers.
    This is what I have considered but stuck.
    (a) I cannot make use of P & L statement - revalutaion function,  because there is a combination of rate (forward and spot) in the same day. 
    (b) To manually enter the 'Fixed Exchange Rate' in Journal Entry and then use  "Refer to rates in Journal Entry" when running P & L statement - revaluation funciton won't work, because the volume of transactions each day is massive.
    (c) I have considered setting up a seperate database with local currecy = NZ, system currency = AUD and then processed all NZ transactions here.
    That will resolve the issue for reporting to NZ Tax Department.
    However, I will then again be stuck with the problem to convert from NZ to AUD in order to produce AUD P & L because there is combination of forward rate and spot rate being used.   The reason for producing AUD P & L is so that we can consolidate the AUD database and NZD database.
    Appreciate some help here.
    Kind regards,
    Shwu Hua

    I am afraid you may have to go through SDK programming in order to solve this problem.  Even the current available add-on may not have solution yet.
    You are talking about two exchange rates in one day.  That is not easy to achieve.  In my opinion, all rates are not exact numbers per se. You may just use the middle rate to post all your transactions.  The others should be Exchange Rate Gain/Loss.  That will be the easiest work around before any SDK work done.
    Thanks,
    Gordon

  • Function module for converting the foreign currency to words

    hi,
    can anybody tell me about the function module for converting the foreign currency to words format.
    Like 25.50 USD
    should be "Twenty Five Dollar & Fifty Sents."
    foreign currency can be anyone like USD, JPY, EUR etc.
    Regards
    Nitin Varshney

    Hi,
    Try using the FM SPELL_AMOUNT
    Check this wiki
    [SPELL_AMOUNT|https://wiki.sdn.sap.com/wiki/display/Snippets/SpelltheAmountenteredin+words]
    Regards
    Sarves

  • Function module - convert to local currency

    Dear all,
    I need to use a function module to convert to local currency a document that has been posted in foreign currency, which function module can I use? I tried convert_to_local_currency but I dont get any output...
    Else I need a function module to reverse a GL document, which function module should I use?
    Thanks and best regards!

    Hi,
    Please use the following linke and see if this helps.
    Re: FI Reverse Document BAPI
    Regards
    K.R

  • FM for convert to local currency other than CONVERT_TO_LOCAL_CURRENCY

    Does anyone know any other FM which converts into local currency???
    But it should be other than CONVERT_TO_LOCAL_CURRENCY..

    Hi Ajay,
    Just you can check it out in SE37.
    CONVERT_TO_LOCAL_CURRENCY_N
    CONVERT_TO_LOCAL_CURRENCY_O.
    CONVERT_TO_FOREIGN_CURRENCY
    Chk this Link
    convert to local  currency
    Reward Points if Useful
    Regards
    Gokul

  • Creating and using a calculated field in business rule from the currency conversion of another field.

    Hello,
    I'm creating a calculated field with a set currency for a business rule. I'm planning to use it as a deficiency criteria. I want the values to come from the currency conversion of another field. Can someone provide me the step by step procedure on how to do it?
    Some documents would be great.
    I've been trying to do it on my own but I've gotten lost.
    Thank you.

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

Maybe you are looking for