Convert foreign currency amount

hi guys,
i have PR with amount 3,600,000 and document ccy is IDR. Our local ccy is RM.
I have automatic program to create PO using fm BAPI_PO_CREATE1 and i just pass the eban-netpreis value .
Since it is in doc ccy, the amount is stored as 36,000 and the PO was wrongly created with 36,000 amount which is supposed to be 3,600,000.00
How to pass the exact value to PO internal table?
my coding
DATA:  g_ftotal(20) TYPE c.
WRITE ieban-preis CURRENCY ieban-waers TO g_ftotal.
g_ftotal is now 3,600,000.00 as character amount, how to pass it to BAPIMEPOITEM-NET_PRICE which has type DEC 28 and  9 decimal points

Hi,
Following are the BAPI's for the same:
BAPI_CURRENCY_CONV_TO_EXTERNAL Conversion of Currency Amounts into External Data Format
BAPI_CURRENCY_CONV_TO_EXTERN_9 Conversion of Currency Amounts into External Data Format
BAPI_CURRENCY_CONV_TO_INTERNAL Conversion of Currency Amounts into Internal Data Format
BAPI_CURRENCY_CONV_TO_INTERN_9 Conversion of Currency Amounts into Internal Data Format
Best regards,
Prashant

Similar Messages

  • IExpenses: Foreign currency amounts

    I am using iExpenses and the base currency is set to USD. An expense report is to be paid in YEN. When the approval process is submitted the expense report is sent to the next employee as the system advises the approver does not have sufficient spending authority. However, the signing limit for the approver is set at 1 million USD and the transaction is only 10,000 yen, well within the limit. It appears that iExpenses does not recognise the foreign amount correctly. I have set-up rates in the rates table for the relevant days. Can anyone suggest how to solve this issue?

    Hi, i did set up the Russian Rouble as RUR as provided by my client, I have changed this to RUB, Thankyou...
    an example line of the journal data i have imported is :-
    RecordKey--     LineNum---     AccountCode     Credit     Debit--
         LineMemo
    1--     0     112010513--
    SAGE Acct Code - 10
    The GL code 112010 is set as multi currency
    I have set the bank accounts GL codes to the relevant currencies.
    When i import the journal i get these errors from the DTW -
    Exchange Rate not Updated  - I update the currencies
    Transaction includes more than one currency - I go to document settings and remove the Block Multiple Currency Transactions.
    The journal posts now with RUB Foreign Currency Postings...
    I have now created the lines.csv spreadsheet again from scratch, ticked the block multi currency and the journal fails.
    If i untick the block multi currency the journal again posts with RUB amounts...

  • In Journal can i specify the Foreign currency  and local currency amount?

    In Journal Entry can i specify the Foreign currency amount and local currency amount?
    I tried the following code it is working fine using DIAPI.
    Here the Local currency and the System currency is SGD. And the Journal is for USD.
    oJnl.Lines.FCDebit = 120.10
    oJnl.Lines.FCCredit = 0
    oJnl.Lines.FCCurrency = "USD"
    oJnl.Lines.Debit = 120.10
    oJnl.Lines.Credit = 0
    oJnl.Lines.Add()
    oJnl.Lines.FCDebit = 0
    oJnl.Lines.FCCredit = 120.10
    oJnl.Lines.FCCurrency = "USD"
    oJnl.Lines.Debit = 0
    oJnl.Lines.Credit = 120.10
    oJnl.Add()
    But, the above way of doing is not working if i pass this Journal through B1.
    B1 is not allowing to change the local currency amount, Local currency amount is automatically calculated based on the FC amount and the Exchange rate.
    So Can i use the DIAPI to do this? is this right to do?

    Solved.
    In Journal Entry window, please kindly go to Form Settings/Document/
    Table tab page/ Convert Amounts According to Rate upon Exit:
    Clear the checkboxes 'From LC Field' & 'From FC Field', then the Local
    currency amount will not be automatically calculated based on the FC
    amount and the Exchange rate.

  • Incorrect Foreign Currency Calculation

    GoodDay,
    Can anyone provide some guidence on the cause of the follwoign problem.
    Local Currency (LC) - TTD
    Foreign Currency (FC) USD
    Money will been taken out of our CItibank Acount creating a credit to the account 10600 Citi NY USD REAL.  On the day the acocunt is credited in Foreign Currency the equivalent in Local Currency  is calucated based on the rate entered on that day in the rate table.
    When the money is  re-entered into the account, in Foreign Currency on another day, the local currency equivalent is  also calcualated based on the rate entered on that day from the rate table.
    The differerence due to the exchange rate is stored in our 50140 Gain on Forex Transaction G/L Account.
    The problem is the calcualtion from the foreign to local currency when the money has returned to the account is incorrect even though the rate is correct in the rate table.
    The exchange rate the day the money came back into the account is 6.34585. However the system appears to have calculated it 63.5485
    Therefore, Foreign Currency Amount  US 85,270,000.00 equates to  Local Currency TT 5,411,106,295.00
    I am of the belief it is a data issue as logically the system cannot choose which calculation to do correclty and which one not to.
    Thanks
    Niketa

    Hi,
    currency conversion always happens based on a exchange rate given for a conversion factor (eg 1 unit 'from' currency is converted to 1 unit 'to' currency).
    Check this conversion factors in t-code OBBS for the exchange rate type + rate you have entered.
    Maybe conversion factor is maintained like TTD to USD is 1:1 whereas USD to TTD is 1:10.
    Best regards, Christian

  • Posting foreign currency

    Hi Gurus!
    During the posting  t-code F-02 or F-30 with foreign currency, system calculate getting converted automatically by using the rates specified in OB08 the local currency, but when to change the amount (foreign currency), system no replace amount local currency.
    That would be great if someone could help.
    Best Regards

    HI,
    Yes, system will give the local currency amount automatically when ever you change the foreign currency amount, however you can change the local currency amount manually during posting and that will override the value obtained based on OB08 settings.
    Regards,
    SDNer

  • Payment program F110 for Vendor Open Item in Foreign currency

    Dear sap Guru
    Is it possible to Ensures that no exchange rate differences are posted by the payment
    Program?  I mean: The amount in the bank posting in local currency does not result from translating the foreign currency amount at the current rate but from the total of the local currency amounts from the settled items.
    Best regards
    marco

    Dear PAtel,
    I checked and the ther eis the check box 'No exchange rate differences' anyway during the payment program execution the system is making some recalculation for open item in fc.
    Someone knows what is the coloumn "Valuation Difference" in the Dysplay Payment Proposal Open Item list?
    regards
    marco

  • GR/IR difference with foreign currency - WBS element

    I am working in the MM area and hadling Service entry sheets, GR and Invoice, Finance is complaining and having problem at project(WBS Element) closing time. we are using Project system to control budget. Now finance is not able to close budget code because they are having commitment and giving error. the situation is like below: There is a difference of .01 AED in the Foreign currency amount, finance also claim that system was behaving OK with 4.6C, Now after upgrade to ECC5(4.7) it has started this problem
    Goods Receipt:
    3,702.73     USD          13,600.00     AED
    Invoice Receipt:
    3,702.73     USD          13,600.00     AED
    Service Entry Sheet:
    3,702.73     USD          13,600.01     AED
    Please help me to sort out this problem
    Mazhar
    Message was edited by:
            Mazhar Hussain

    Hi
    Header exchange rate picked up at time of PO creation with reference to document date in header.
    If you fix exchange rate then it will be same for all items in purchase order.
    In your case if exchange rate is different then check whether you have done goods receipt in two lots (say 8 items first and then 2 items) with different posting dates. Check accounting documents generated and in that document check translation dates for checking exchange rate in OB08 transaction.
    And in invoice what is the currency you are using - if you do not use any special currency (foreign) then PO currency will be picked up. If exchange rate fixed indicator is not there in PO - depending upon system baseline date (posting date) exchange rate will be coming.
    Thanks

  • Clearing of GL open items F-03 for foreign currency trans

    Hi there,
    I am trying to clear a GL open item managed Bank clearing a/c which has a payment document with foreign currency amount (doc cur) and LC1 and LC2.
    The doc is posted in Aug 08.  When I try to clear it in Sept 08 i see that LC1 and LC2 are showing diff amount from the posted amount.  Since i am using this GL a/c as bank clearing will there be double exchange diff calculated....1) during payment of invoice and 2) during clearing from this Bank clearing a/c to Bank a/c.
    I guess the difference is because of two diff clearing date but is this standard or is there any settings to control this.  Looked through but could not find anything.
    Any of you have any comments on this, please let me know.
    Thank you very much
    RG

    when you clear the open item, the system will pick up the exchange rate mentioned in the tables (Tcode OB08) and the difference in the exchange rate entered in the invoice and the exchange from the tables at the time of payment will  be proposed.
    If you enter the payment document with the same exchange rate you had given at the time of invoicing, there will not be any difference.
    Check you settings in OB08.
    Regards

  • Foreign Currency procurement cycle

    Hi Experts
    Suppose we purchase import Material
    1) Purchase order rises 47 USD
    2)when invoice came that time Currency rate increase
    3)at the time of invoice which rate i have taken
    4)the payment which value i have to pay
    5)in this procurement where we change the rate and how foreign currency valuation impact in accounts in sap systems
    Plz entire procurement scenario that i can explain to my client how to foreign currency valuation
    happen in sap system

    If the PO is in foreign currency, you specify the exchange rate at the time of creation of PO in the Exchange Rate field in the PO header (Delivery/Invoice tab).  Right next to that field, you will see a check box titled "Exch. Rate Fixed".  If you fix the exchange rate by checking this check box, the purchase order currency and the exchange rate cannot be changed during invoice verification.  If you do not check it, the exchange rate that applies on the date of entering the invoice will get picked when you enter the invoice.
    Now let's say this invoice is not paid by the end of the month.  To close your books for the month, you perform foreign currency valuation for this open item to remeasure the foreign currency amount due by you into local currency.  This valuation difference (unrealized gain/loss) is reversed on the first day of the next month.  Now your numbers are back to the values entered during invoice entry.  If the item gets paid now, you may incur realized gain/loss depending on the exchange rate that your bank gives you.  If this rate is different from the rate as of the invoice entry, you will have realized exchange rate gain/loss.  Else, there is no realized gain.
    Execute t code FAGL_FC_VAL and click on the blue information icon on the initial screen and read the program documentation.  There is a very nice example in there that should clarify your question on foreign currency valuation.

  • F.05 Foreign Currency valuation not posted automaticall to GL account.

    Hi,
    When we are running F.05 the GL account  3170700 u2013 Gds Recd not Invoiced GRAN is not posting automatically.
    Though the GL account is matained in TO30H table and included in the variant that using for F.05 run.
    Kindly help me to understand what would be the root cause for not posting automatically.
    Thanks,
    Hari.

    Hi,
    If you have a G/L account which have open item management feature, system calculate valuation for each open line items.
    For example 2000100 G/L account has open item management and their line items like below.
    My local currency is TRY and I posted all items in EUR after that I valuating this line items.
    A. line items
    Doc Currency Amount : 1.000.000,00 EUR
    Posting date exchange rate : 2,00000 (EUR/TRY)
    Posting date local currency amount : 2.000.000,00 TRY
    End-of-month exhange rate : 2,50000 (EUR/TRY)
    Difference : 500.000,00 TRY
    B. line items
    Doc Currency Amount : 2.000.000,00 EUR
    Posting date exchange rate : 2,20000 (EUR/TRY)
    Posting date local currency amount : 4.400.000,00 TRY
    End-of-month exhange rate : 2,50000 (EUR/TRY)
    Difference : 600.000,00 TRY
    System calculate and post valuation for each line items and system using balance sheet adjustment account for posting. If you manage your account (like 200100) with open item, you couldn't post valuation on this account. System using balance sheet adjustment account and loss/gain account for posting. You can customizing this steps via OBA1 (then choose KDF).
    In same account, If you don't manage with open item, system valuating the balance. In this example 3000101001 account has 3.000.000,00 EUR balance amount. When you execute F.05 with option "Valuate G/L account Balances" you can see only one line items for each account and their currency on F.05 output.
    A. line items
    Total Foreign Currency Amount : 3.000.000,00 EUR
    Total Local currency amount : 6.400.000,00 TRY
    End-of-month exhange rate : 2,50000 (EUR/TRY)
    Difference : 1.100.000,00 TRY
    Then when you post the valuation document, system using 200100 account and loss/gain account for posting
    Thanks,
    Raviteja

  • FB60 entry in foreign currency

    Hi All,
    I want to post FB60 (vendor invoice) in foreign currency. The foreign exchange rate needs to be given manually. It is because transaction is carried out at the rate which is different from the rate mentioned in OB08 table.
    I have filled the amount in local currency manually in local currency tab.
    But i gave me following error:
    "Balance in local currency INR is too large for automatic adjustment"
    In OB08, foreign exchange rate mentioned is Rs.50 & Manually i want to put rate as Rs.50.5. So its 1% difference. Let me know how to resovle this error.

    Please check the value that you have maintained in the following path in SPRO:
    Fin Acct (NEW) - Fin Acct Glb Stgs - Glb parameters for CC - Currencies - Max Exch Rate Diff - Define Maximum Exchange Rate Difference per Company Code
    In this activity, you define, per company code, a maximum difference between exchange rates for postings in foreign currency. To do this, you specify how much the exchange rate entered manually in the document header may differ in terms of percent from the one stored in the system.
    If an exchange rate or the local and the foreign currency amount were entered manually during document entry, then a comparison is made with the exchange rates stored in the system. If a deviation does occur and it exceeds the percentage rate specified here, then a warning appears.
    Hope this helps you.
    Regards,
    Prasad

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

  • 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

  • Forcing Local Currency amounts when posting Foreign Currency documents

    When posting entries in a foreign currency (FC), it is possible and often used to force through a local currency (LC) amount that differs from what SAP would have posted using the current For Ex rate.  This is used in cases where a payment is made in FC a couple months later and someone would like to see the LC of the originally posted invoice match the LC of the payment.  Although SAP allows you to override the For Ex rate in such a manner, what are the effects of these types of postings?  Does the difference ever get recognized, and, if so, where? 
    Thanks in advance for any explanations.

    Hi,
    Suppose at the time of invoice the exchange rate was 40 and the amount shoule be as below:-
    Document currency = 100
    Local Currency = 4000
    But you have entered the invoice at exchange rate of 45 which was applicable at the payment date
    Document currency = 100
    Local Currency = 4500
    And the payment document line item is posted with the
    Document currency = 100
    Local Currency = 4500
    In this case, system will not do any foreign exchange rate difference provided there is no month end revaluation happening between the invoice posting date and paymentt posting date.
    Regards,
    Gaurav

  • 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

Maybe you are looking for