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

Similar Messages

  • 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

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

  • Vendor Balances in Foreign Currency

    Hello Experts,
    In standard SAP, S_ALR_87012082 Report displays the Vendor Balances in Local Currency. Is there any Std. report  similar to this which displays the Vendor Balances in Foreign Currency. Because there could be some foreign vendors invoices are posted in Foreign Currency.
    We are in ECC 6.0
    Any inputs please.
    Thanks
    Balaji

    Read the data from LFC1 Table and use Function module to convert into foreign currency FM -  CONVERT_TO_FOREIGN_CURRENCY
    Reward Points if it is helpful
    Thanks
    Seshu

  • Foreign Currency Valuation Values Conversion

    Hello SAP Experts!
    We are migrating from 4.6B to 4.7 and we are working in the vendor, customer and G/L accounts open items conversion.
    In the present system (4.6B) the users use transaction F.05 for foreign
    currency valuation with the flag "Bal. sheet preparation valuatn" activated. This means, that the valuation difference is not reversed
    but it is stores in the field BSEG-BDIFF of the affected open item.
    Now we are trying to convert those foreign currency open items with a
    batch input to transaction FB01. However, the fields BSEG-BDIFF do not appear in the dynpros and we could not find a way to make them optional to enter the value of previous revaluations.
    We have thought of transaction F-05, but there is no way there to reference the revaluation that is being posted to the affected open item. T
    If we do not enter this amount in that field we will have problems
    after the go live to pay those items, as the "Bal. sheet adj. 1"
    account balance will never be zero and the gain/loss accounts for exchange rate difference will be duplicated.
    Do anyone know how can this be done?
    Hope you can help me on this one.
    Many thanks in advance.
    Regards!
    Noelia

    Hi Dominic!!
    Thanks a lot for your answer. Yes, they are separate systems
    Let me see if I understand your suggestion:
    1) I should do a manual posting through F-05 in our 4.6B system bringing the balance adjustment account and the exchange rate difference account to zero.
    2) Transfer the balances to 4.7.
    3) In the first closing period run the automatic foreign currency valuation
    (through F-05) with the flag "Bal. sheet preparation valuatn" deactivated so that the system revaluates the open items from the time the open item is created to that moment.
    is it like that?
    Many thanks for your help again!
    Best regards,
    Noelia

  • Material valuation difference in FI and MM area for P.O in foreign Currency

    Seek assistance in solving the following issues related to P.O in foreign currency. Thanks in advance
    1, For purchase orders in foreign currency, during MIGO,in the FI document, the  inventory value which include cost payable to the vendor, taxes, CHA and freight are calculated in foreign currency and the company code currency value is arrived by multiplying the total  inventory value with the exchange rate prevailing in Ob08 on the posting date of MIGO, instead of adding the values of basic price converted to local currency at the rate prevailing on MIGO, Custom duty at the rate prevailing on Customs Miro and Freight CHA etc which are inputted in local currency and converted to P.O currency in P.,O, at the exchange rate in P.O
    The value thus arrived is different from the actual value paid since the freight and CHA are in co code currency in the P.O and converted to P.O currency in P.O with exchange rate prevailing on the date of P.O and Custom duty paid in local currency is at the rate prevailing on Custom MIRO.
    2, Freight and CHA are entered as condtions in the P.O and the values entered in local currency. These are converted to P.O currency by the system at the exchange rate prevailing on the P.O date. During MIGO in the FI document the values for these are arrived by multiplying the value in P.O currency with the exchange rate prevailing on MIGO. for e.g. the CHA lumpsum entered as INR 20,000 is converted to $ 400, assuming the OB08 rate on the date of P.O is 50. if on the date of MIGO OB08 is 60, during MIGO, in the FI document entry for local currency the CHA charges become 24000. ( 400 x 60 ). While the actual amount is 20,000. the same scenario exist for freight too which is entered in local currency.
    WHAT IS HAPPENING
    1. Foreign Vendor - Foreign Currency X OB08 rate on MIGO Posting Date
    2. Freight - Company Code Currency Converted to Foreign Currency as per OB08 rate on PO Creation Date X OB08 rate on MIGO  Date
    3. CHA - Company Code Currency Converted to Foreign Currency as per OB08 rate on PO Creation Date X OB08 rate on MIGO Date
    4. Customs - Company Code Currency Converted to Foreign Currency as per OB08 rate on Actual Customs Payment Date X OB08 rate on MIGO Date
    WHAT IS REQUIRED
    1. Foreign Vendor - Foreign Currency X OB08 rate on MIGO Posting Date
    2. Freight - Company Code Currency Converted to Foreign Currency as per OB08 rate on PO Creation Date X OB08 rate on PO Date
    3. CHA - Company Code Currency Converted to Foreign Currency as per OB08 rate on PO Creation Date X OB08 rate on PO Date
    4. Customs - Actual Customs Duty paid in Company Code Currency through Customs MIRO

    Hi
    i am still waiting for someone to put a comment on this thread
    regard
    Nabil

  • Need a program that converts US dollars to foreign currency rate

    I need to find or purchase a program or if numbers does it somehow to convert the numbers I have in a spreadsheet that is in US dollars to different foreign currency.
    Any ideas
    Greg

    Done.
    The script is ready and available.
    Go to my idisk
    <http://idisk.me.com/koenigyvan-Public?view=web>
    Download:
    For_iWork:iWork '09:forNumbers09:insertquotes.zip
    Unpack the archive.
    You will get the script,
    two examples of Numbers documents
    several examples of downloaded data files.
    Here I just pass the explanations:
    Save this script as a … Script in the "Folder Actions Scripts" folder
    <startupVolume>:Library:Scripts:Folder Action Scripts:
    Attach this Folder Actions script to the folder receiving your downloaded
    "quotesDE\[-x].csv" (or "convertDE\[-x].csv") file. if you download from a German site.
    "quotesFR\[-x].csv" (or "convertFR\[-x].csv") file. if you download from a French site.
    "quotesUK\[-x].csv" (or "convertUK\[-x].csv") file. if you download from a British site.
    "quotesUS\[-x].csv" (or "convertUS\[-x].csv") file. if you download from a site from the U.S.A.
    If you don't know the way to use Folder Actions Scripts, look at the chapter entitled
    "Running an automation when a folder is changed" in the Finder's Help.
    When the script is attached to the folder, it will be triggered each time a file is added to the folder
    If some conditions are verified, the script deciphers the file's contents and insert the grabbed values in a Numbers '09 document.
    These conditions are:
    Numbers '09 must be running.
    The added file must be named "quotes.csv".
    A document whose named is defined in the property myDoc (or my_Doc) must be open in Numbers.
    The document must contain a sheet whose name is defined in the property mySheet (or my_Sheet).
    The document must contain in this sheet a table whose name is defined in the property myTable (or my_Table).
    The first cell of the destination area is defined by the properties columnNum1 and rowNum1 (or column_Num1 and row_Num1).
    If the table is too small to store the download datas, it's enlarged accordingly.
    CAUTION, only one script may be active when attached to a folder.
    If you attach several of them, only the last one will be triggered.
    If you need several active scripts of this kind you must attach a single script
    which will dispatch files to other scripts given the received items.
    It's out of the range of this thread but the script is ready to do that.
    Formulas used in the Sheet to launch a download:
    =HYPERLINK("http://download.finance.yahoo.com/d/quotesUS.csv?s=AAPL,ABT,ABX,AGG, ARLP,BEGBX,BPT,BSV,BTE,D,DOM,DUK,E,ENB,ERF,VLCCF,VTI,XEL&f=sl1d1t1c1ohgv&e=.csv" ;"NewYorkExchange")
    =HYPERLINK("http://de.old.finance.yahoo.com/d/quotesDE.csv?s=CBK.DE,CON.DE,DAI.D E,DBK.DE,DTE.DE,EOAN.DE,VOW.DE&f=sl1d1t1c1ohgv&e=.csv";"Francfort")
    =HYPERLINK("http://fr.old.finance.yahoo.com/d/quotesFR.csv?s=ACA.PA,ALU.PA,EDF.P A,FTE.PA,KN.PA,NEX.PA,SOI.PA,STM.PA&f=sl1d1t1c1ohgv&e=.csv";"Paris")
    =HYPERLINK("http://uk.old.finance.yahoo.com/d/quotesUK.csv?s=ACA.PA,ALU.PA,EDF.P A,FTE.PA,KN.PA,NEX.PA,SOI.PA,STM.PA,AAPL&f=sl1d1t1c1ohgv&e=.csv";"London")
    =HYPERLINK("http://fr.old.finance.yahoo.com/d/convertFR.csv?s=EURUSD=X&f=sl1d1t1 ba&e=.csv";"euro2USdollar_fromParis")
    =HYPERLINK("http://uk.old.finance.yahoo.com/d/convertUK.csv?s=EURUSD=X&f=sl1d1t1 ba&e=.csv";"euro2USdollar_fromLondon")
    =HYPERLINK("http://download.finance.yahoo.com/d/convertUS.csv?s=EURUSD=X&f=sl1d1 t1c1ohgv&e=.csv";"euro2USdollar_fromUSA")
    =HYPERLINK("http://download.finance.yahoo.com/d/convertUS.csv?s=CNYUSD=X&f=sl1d1 t1c1ohgv&e=.csv";"Yuan2USdollar_fromUSA")
    =HYPERLINK("http://download.finance.yahoo.com/d/convertUS.csv?s=TWDUSD=X&f=sl1d1 t1c1ohgv&e=.csv";"TaiwanDollar2USdollar_fromUSA")
    CAUTION: US returns rate with 4 decimals but UK or FR return only two !
    Yvan KOENIG (from FRANCE mardi 24 février 2009 21:38:17)

  • Currency converting in 5 decimal place, time of posting in foreign currency

    Hi
    I am facing one problem at the time of posting of advance with bank charges in foreign currency USD.
    While i am trying to post advance to vendor with T code - F-48 with USD currency i mention the exchnage rate 51.56 , bank charges 500 in local currency(INR) , system showing 2 paise less 515,599.98(INR) if i chosse 10000 USD in vendor item.
    But same time if i am choosing exchange rate - 61.26 system showing right value 612,600.00.
    And if i am taking exchange rate 49.52 system showing right value,
    Awaiting for valueble reply.
    Regards
    Anjan

    I would have done this with much less effort.
    If your currency has standard 2 decimals, then just use a price unit of 100 instead of 1  in your material master valuation view.
    So you reach an accuracy of 5 decimals per one unit.
    And my solution does not have any impact on purchasing activities.
    Edited by: Jürgen L. on Jan 24, 2008 11:50 AM

  • Item Standard Cost for foreign currency purchase order

    Hi there
    I have a question about
    We have foreign currency purchases of USD which is fixed in USD.
    Currently, we are converting this into AUD and entering this as the standard cost.
    But if the currency rate is changed, we need to adjust the standard cost of AUD even though the price of USD is still the same.
    Does Oracle have standard functionality where we can enter the USD purchase price into the system and have the system rate convert it to AUD whenever we have a new exchange rate?

    Hi,
    my solutioning would be
    1. Create an Org where in item cost is maintained in US$, and perform no material transactions in this Org.
    2. Use the prog 'Copy Item Costs Across Organizations', to copy the cost from US$-Org to AUS$-Org using any conversion rate as defined (Corporate, or average etc)
    Use this process on regular basis so that you have the latest coversion and cost rate.
    Regards
    Adarsh Krishna

  • Issue of Excise Duties in Foreign Currency in J1IIN

    Dear All,
    As one of my user has created Export Excise Invoice on 31st of May.  Unfortunately Exchange Rate was not maintained by him for currency Euro in OB08 and While creating the Excise Invoice all the duties came in EURO but the document currency is INR. Please find below screen shot.
    Now my query is, Is it possible to update/convert these Excise Duty Values in INR without cancelling this document. Because while creating ARE1 all the data are coming in EUR only.
    Regards:
    Abhishek

    Hi,
        Could you please replicate the scenario in Dev / QAS and check whether the excise duties are calculated correctly in J1IIN when the the billing currency is EUR, and OB08 is correctly maintained.
        Repeat the same scenario without maintaining the currency conversion factor in OB08 and compare the excise invoices. Revert back with the results.
        I guess that the issue is not because OB08 was not maintained. Found a similar issue mentioned in the notes:  957377 - Excise base appears in foreign currency in J1IIN for TAXINN  and  936007 - Excise base not converted to INR in J1IIN/J1II for exports You may check the notes if its applicable for your SAP release.
    Regards,
    AKPT

  • F-32 - clearing customer items in foreign currency

    Hello gurus,
    please, where in SPRO can I set the possibity of clearing customer items in foreign currency in F-32 ?
    Presently all items are converted to local currency and it's not possible to switch into foreign currency.
    Vendor open items we can clear in foreign currency in F-44, but customer open items not.
    Thank you,
    Ondrej

    What error you are getting in F-32 while clearing the customer in foreign currency?
    Please check whether in FS00 for that customer reconciliation account, you have selected the check box "Balance in local currency". If yes, then that will not allow you to clear in foreign currency.
    Regards,
    SDNer

  • How to clear local currency balance in foreign currency account

    hi,
    i have a bank account in EUR but local currency is USD.
    in the account balance, it has 0 in EUR but has balance in USD.  i need to clear the amount in USD.
    i tried f-02 to post EUR 0 and balance which in USD i enter in amount in local currency field but when simulate, the system converts the USD amount for EUR and EUR with an amount.
    may i know how to clear local currency balance for a foreign currency bank account which has ZERO balance.
    thanks

    Dear ,
    can u give me the details
    what is the invoice transaction (Entry
    how u clear that transaction (entry)
    what is the difference values.
    Regards
    radha

  • Foreign currency conversion is wrong in line item report

    Hi All,
    I have a system which went live recently as of 1st of Sept. 2011. Hence my cut off is 31st Aug.2011.
    Now, i have uploaded customer open line items in foreign currency. Hence, at cutover my exchange rate was as per month of Aug. Now when I want to post an incoming payment through f-28 I see a different amount in my local currency i.e INR. The difference is exactly the difference due to change of exchange rate. However, my question is once when a document is posted then why does the system shows the amount in INR as per the next month's i.e sept's exchange rate?
    Can anybody help me on this please?
    Thanks
    Priyanka.

    Priyanka,
    The system is behaving exactly according to accounting principles.  For foreign currency transactions, the exchange rate for translation into local currency should be at the rate on which the business transaction occurs.  Now, you have converted your open items from the old system into your new system as of Aug. 31.  The customer has made the payment (in foreign currency) today.  So it is appropriate from an accounting standpoint to take today's rate to convert the foreign curr amnt into INR.  The resulting difference is your realized exchange rate difference.  You need to book that difference to an exch. rate gain/loss account (that you need to configure in OB09).
    Edited by: Srikanth Tamma on Sep 9, 2011 9:37 AM:  Sorry, I misspelt your name earlier.

  • Foreign Currency Translation at Year End - How SAP Works for P&L items?

    Hi All,
    I wanted to know "How SAP works on Foreign Currency Translation at year end" from Local Currency to Group Currency for P&L Items.
    I know how SAP works for Balance sheet items but am really confused with when the translation was done for P&L Items.
    Configuration:
    We are on ECC 6.0 . Local Currency is CAD and we have 2nd Local Currency as "USD - Group Curr".
    We have set up Valuation Method - 4
    We have set up Valuation Area - 40
    For Account Determination for Currency Translation, GL accounts (Loss, Gain and B/S Adj)  were setup for the combination of Chart of Accounts, Val Area and Fin Stmt Ver.
    Sales Account Balance
    CAD (LC)        USD (2nd LC)       
    1000                   920                        
    Using tcode "FAGL_FC_TRANS", we translated our P&L items.
    Local Currency is CAD and Group Currency is USD.
    CAD 1000 and USD 920 are cumulative balances over a period of time.
    Since at the end of year CAD became stronger, exchange rate is 1.11 as an example
    Sales Account Balance
    CAD (LC)        USD (2nd LC)        Translated Value in USD
    1000                   920                        900
    System passed the following entry in USD:
    Debit Balance Sheet Adj A/c 20
    Credit Translation Gain / Loss A/c 20
    Here are the questions:
    1. How does over all translation work? - Should we get any Gain / Loss and have an effect on P&L when all accounts (P&L, B/S) are translated?
    2. How can there be a gain entry when USD value has really fallen from 920 to 900 in the current case.
    Thanks for your time.
    Vijay

    Hi,
    I had this issue too.  The entry was just opposite to what it should be.  I just flipped the accounts in table FAGL_T030TR.
    Example: 410000 is sales account which normally should have a credit balance.  Here are some entries that were posted to sales in 03/2009 and I am running FAGL_FC_TRANS at the end of the month.
    March 1, 2009 Cr. Sales CAD 1000- USD 900-
    March 2, 2009 Cr. Sales CAD  500- USD 480-
    During FC translation transaction, system takes the balance in the account for the period (if you execute it with 'Val. period balance only' checkbox checked) and not the cumulative balance.  SAP recommends translating period balance only (and not cumulative balance) for P&L accounts.  It sees a balance in LC (this again depends on the config. you have in OB22 - whether the indicator is 1 (TC as source currency) or 2 (LC as source currency for translation)) which is 1500, converts that at month end rate.  After conversion, lets say the balance is 1400-.
    In this case, we expect a credit entry on sales account
    March 31, 2009 Cr. Sales CAD 0  USD 20-
    But system was just posting the opposite.  I then flipped the accounts in FC translation configuration.  I know it is misleading.  In that configuration, system says balance sheet adjustment account, but what you should actually give there is your gain/loss account.  Our gain/loss a/c. falls in the same GL account range as the main account.  For example, for 410000, it is 410999 and for 510000, it is 510999.  We report accounts 410000 to 410999 in the same node in the FSV.
    Pl. feel free to ask further questions about this.  Pl. test in your system and correct me if my above reply is wrong.
    Cheers!

  • Foreign Currency setup in B1

    First time to setup B1. Customer needs Local Currency is HKD, PO use China Yuan and System Currency is USD.
    1. In Company Detail, Local-HK, System-USA, Default Account Currency should use All or Local?
    2. GL COA each account need set Currency to HKD and Balance to HKD or ..?  Few GL account like checking in HK will be HKD, checking in USA will be USD.  How about all others GL accounts in G&A or sales and cost accounts?
    3. Admin, Setup, Financials, Currencies has HKD, USD, RMB...10 codes setup already.
    4. I could not locate HKD in Admin. Exchange Rates and Indexes.  Only saw RMD, USD, CAD, EUR, GBP, JPY, AUD,SGD.   I entered RMD 6.8447 with USD 1.00 for 12/21/08 exchange rate but did not work in JE to convert correct amount, I used FC for RMD (need HKD most). I need convert either RMD to HKD or HKD to USA or RMD to USD.  HKD can not work since I could not setup in Exchange Rates.
    5. How to setup correctly when you enter the data in HKD(LC) or USD (SC) or RMD (Foreign) will convert to another currency at once?  
    Thanks.

    Gordon,
    3. The different currency setup already in B1. 
    A. If I set USD $1 to convert RMD $6.8447 in FX rate.  Do I need setup anything else to populate the FC,LC and SC amounts in PO, AR invoice or JE (only will show Local and System Currency, not for All Currency GL accounts as I know)?
    B. B1 uses the LC then where I can setup LC to SC daily rate?  like USD $1 = HKD$7.7509
    C. In JE data entry has one option for Fix Rate, how to make this work? If I want to set US $1 = RMD $6.8447.
    D. New to this forum, how can I give the points to you?  I appreciate for your quick replies.
    Edited by: Lily Chien on Dec 22, 2008 8:41 AM

Maybe you are looking for

  • 120 GB Needs To Be Restored Every Time Plugged In

    Hi, this is my first post here as I've encountered a new issue I have been unable to find any answers for. I searched here and on Google repeatedly but a solution has yet to be found (for me). A little over a week ago I updated my iTunes to the newes

  • MP3 sound from mobile phone on Satellite

    Hi, I want to connect my phone with my Satellite with the bluetooth connection and then I want to start the music on the phone and the computer has to work like a headset - the sound has to be heared on the Toshibaspeaker. Any Idea? Thank you and sor

  • Import files encoded in H264 or DVCPro?

    Does Final Cut Express import files encoded in H264? Apple's Technical Specifications page http://support.apple.com/kb/SP536 is silent about supported codecs and makes no mention of supported file formats at all. It notes some CAMERAS supported, but

  • Youtube audio keeps playing after I leave video page.

    Video and audio play just fine but when I backtrack or close tab the audio still plays. If i reload the tab the audio will stop but i've never had this issue before. I have the most current firefox downloaded and have even deleted and re-downloaded t

  • Losing link after save in photoshop

    Opening files in photoshop works fine, but when I save Lightroom loses the file.  I have two hard drives in my laptop, a SSD with all my apps (Lightroom and photoshop) and a larger hard drive with all my catalogues and files.  Lightroom thinks the ed