Exchange rate function

Hi!
I would know if there is a similar function like BAPI_EXCHRATE_CREATEMULTIPLE or if this function really exists in R/3 4.0 version . I´ll reward, I promise!
Thanks in advance,
Éder

hi eder,
it realy exists.
other FM are BAPI_EXCHRATE_GETCURRENTRATES
and
BAPI_EXCHRATE_GETLISTRATETYPES
chk this also
CALL FUNCTION 'READ_EXCHANGE_RATE'
      EXPORTING
        DATE             = SY-DATUM
        FOREIGN_CURRENCY = L_CURR
        LOCAL_CURRENCY   = P_WAERK
      IMPORTING
        EXCHANGE_RATE    = V_RATE
      EXCEPTIONS
        NO_RATE_FOUND    = 1
        NO_FACTORS_FOUND = 2
        NO_SPREAD_FOUND  = 3
        DERIVED_2_TIMES  = 4
        OVERFLOW         = 5
        ZERO_RATE        = 6
        OTHERS           = 7.
    IF SY-SUBRC <> 0.
    ENDIF.
    X_CURR-CURR = L_CURR.
    X_CURR-RATE = V_RATE.
    APPEND X_CURR TO IT_CURR.
    L_VALUE = L_VALUE * V_RATE.
another  fm - >CALCULATE_EXCHANGE_RATE
rgds
anver
Message was edited by: Anversha s

Similar Messages

  • Exchange rate function module

    Dear Forum,
    I tried READ_EXCHANGE_RATE and CALCULATE_EXCHANGE_RATE but both no result.
    The local currency is INR and transaction is posted in EUR. Now I want to get the exchange rate in USD which is conversion from EUR to USD. local currency INR not needed.
    Which function module can fulfill my needs?
    Thanks

    Hi,
    Ok you want it in exchange rates,
    CONVERT_AMOUNT_TO_CURRENCY  Convert an amount from a currency to another (exchange rate taken from database tables) 
    CONVERT_CURRENCY_BY_RATE  Convert an amount from a currency to another, according to the passed exchange rate 
      or
    BAPI_EXCHANGERATE_GETDETAIL
    cheers,
    bhavana
    Edited by: Bhavana Amar on Jun 4, 2010 12:53 PM

  • Exchange Rate Differences function and when to use

    The company I am asking about is based in the US, but also has offices and transactions in Canada.  Does the Exchange Rate Differences function need to be run at month-end before finalizing the financials, in order to "re-value" the Canadian accounts, such as Accts Receivable, Accts Payable, Fixed Assets, etc. that may not have changed during the last month (no activity during the "current" month)?  The financials are expressed in US Currency.  Transactions during the month to the various Canadian accounts are "re-valued" at the time of the transaction entry, since the exchange rates are updated every day in the system.  We need a clear-cut idea of when the Exchange Rate Differences function should be run.

    I would say that you do need to do it. This is very important to ensure your account receivable control account (or payable) is revalued at the end of the month based on the new exchange rate.
    I know some companies do not revalue the balances as it is not required. I think, revaluating the balance makes sense as it will give you a true picture of your payable or receivable at the end of the month. This is also a good way of accruing your exchange rate loss/gain.
    Vincent

  • Exchange rate, Plan exchange rate Programs & Function modules in SAPBW ....

    Hi Friends,
    Could anybody please tell me what are the  " Exchange rate, & Plan exchange rate " Programs & Function modules.
    If any customized also , I can do modify and i will use it.
    Thanks in advance,
    Ramesh

    Hi there
    Exchange rates are used for currency conversion rules in queries, data loads, etc.
    You can export exchange rates from R/3 (or other system) to SAP BI, and change them or define your own exchange rates.
    For planning, you can create exchange rates specifically for that purpose.
    In currecny conversion rules you can tell the system which exchange rate to use (for example EURX from EUR->USD)
    To view/mantain exchange rates go to transaction SPRO->SAP Reference IMG->SAP Netweaver->General Settings->Currencies->Enter Exchange Rates
    Diogo.

  • Exchange rate, plan exchange rate Programs & Function modules in SAP ....

    Hi Friends,
    Could anybody please tell me  what are the  " Exchange rate " & Plan exchange rate "  standard programs, function modules  avaialble in SAP  .
    Thanks in advance,
    Ramesh.

    Check via transaction OB07 (or SPRO - General Settings - Currencies - Check exchange rate types) usually you will find a "M" average exchange rate (which is used operationally everywhere in Logistics) and a "P" planned exchange rate (used for cost planning)
    Exchange rates are maintained via transaction OB08 (or SPRO, same tree - last node - Enter exchange rates)
    When programming, use tables TCUR* or FM of function groups like SCUR "Translation of Currency Amounts etc." (CONVERT_TO_FOREIGN_CURRENCY, CONVERT_TO_LOCAL_CURRENCY and READ_EXCHANGE_RATE among others)
    Regards,
    Raymond

  • ERROR in MIRO : An exchange rate type is not defined for country IN

    Experts:
    When I try to enter the invoice received from the vendor, I am getting the following message.
    An exchange rate type is not defined for country IN
    Message no. FF802
    Can anyone provide me a solution for this?
    Thanks,
    Vijai

    This is the explanation given in note 974619 for the above error message
    Summary
    Symptom
    When you post an FI document, the system issues error message FF 801 or FF 802.
    Other terms
    Plants abroad, FF 801, FF802
    Reason and Prerequisites
    You use the 'Plants abroad' function.
    See Note 882132 for more information about this.
    Solution
    If the 'Plants abroad' function is active, additional fields appear when you maintain the country global parameters (transaction OY01, table T005):
    - Country currency       (Field WAERS)
    - Exchange rate type     (Field KURST)
    - Net discount base      (Field XSKFN)
    - Net tax base           (Field XMWSN)
    You must maintain the fields 'Country currency' and 'Exchange rate type'.
    Otherwise, the system issues error message FF 801 or FF 802.
    thanks
    G. Lakshmipathi

  • Is there a way to fix the exchange rate of PO item condition type ?

    Hello all,
    We have an agreed selling price in RMB from the supplier and the export rate(RMB to USD) is given by them according to delivery date. But we pay in USD.   Thus PO header is USD and using M rate but  PO price condition type in PO item  is RMB -> then convert to USD and sum up into gross price.  We want to control the way RMB is converted to USD in the item level.
    e.g.  PO order currency is USD, PO header exchange rate is a fixed rate input by user
            (hedge rate USD -> Local company currency)
    PO item 1      agreed PO price is 100 RMB -> PO item condition's rate is 100 RMB per pc  
                         -> export rate RMB to USD fixed at 8 -> 100 / 8  USD
    PO item 2      agreed PO price is 200 RMB  -> PO item condition's rate is  200 RMB per pc
                          at export rate -> 200 / 8  USD
    Total PO  value in USD =  300 RMB / 8      (we don't want it to convert 300 RMB using M rate)
    Appreciate if anyone has a solution for this similar case.

    KiltedTim wrote:
    The only way to do so and preserve your warranty is a replacement from Apple. US$199 without AppleCare+, US$49 with. If it doesn't affect the functionality, though, they may not give you that option.
    It's not that big of a deal. I'm just seeing if anyone knows how to bend it back straight from experience or imagination.

  • Convert a sales value to the reference currency with the exchange rate of a specific date

    Hi Friends,
    I Have 2 Dimensions: Time and Currency
    I also have to fact tables, exchange rate and sales
    Both fact tables have references to Time and Currency Dimension.
    The user want to select using excel the sales in the local currency and the correspondent conversion in the reference currency (the reference currency is fixed) in the selected date.
    To obtain the desired exchange date I need a date and a currency. The user select in excel a specific date but the currency must be the current currency in the sales table. I achived something like this in the query editor:
    with
    MEMBER [Measures].[Current Rate To Euro] AS (
    ([ISO Currencies].[ISO Curr Code].CurrentMember, [Time].[Date Id].CurrentMember, [Measures].[Exchange Rate To Euro]))
    MEMBER [Measures].[Net Sales Euro] AS (
    [Measures].[OOH Net Sales Dom Snapshot]/[Measures].[Current Rate To Euro]
    SET NE_measures as {[measures].[Net Sales Value Domestic], [Measures].[Exchange Rate To Euro]}
    member m_NonEmptyCheck as
    Generate
    NE_measures
    ,{Iif([Measures].CurrentMember, [Measures].CurrentMember, NULL)}
    ).Count = NE_measures.Count
    ,NON_EMPTY_BEHAVIOR =
    {[measures].[Net Sales Value Domestic], [Measures].[Exchange Rate To Euro]}
    select {[Measures].[Net Sales Euro], [Measures].[OOH Net Sales Dom Snapshot],[Measures].[Current Rate To Euro]} on 0,
    Filter(
    {[ISO Currencies].[ISO Curr Code].[ISO Curr Code]}*{[Time].[Date Id].&[2581]*[Customers].[PDU Description].[PDU Description]}
    ,m_NonEmptyCheck
    ) on 1
    from [DM ISR DEV];
    But I don't know how to translate the last select in a calculated measures in order to let the customer only to select this measures in the values area and the time in the filters.
    Any comment would be appreciated
    Kind Regards

    Was not so difficult as I thought, however, it took me several hours to understand how could it work:
    with
    MEMBER [Measures].[Current Rate To Euro] AS (
    ([ISO Currencies].[ISO Curr Code].CurrentMember,[Time].[Date Id].CurrentMember, [Measures].[Exchange Rate To Euro]))
    MEMBER [Measures].[Net Sales Euro] AS (
    SUM([ISO Currencies].[ISO Curr Code].[ISO Curr Code],([Measures].[OOH Net Sales Dom Snapshot]/[Measures].[Current Rate To Euro]))
    select {[Measures].[Net Sales Euro], [Measures].[OOH Net Sales Dom Snapshot],[Measures].[Current Rate To Euro]} on 0,
    non empty {[Time].[Date Id].&[2580]} -- specific datatime, in my db is the 23 Jan. 2014
    *{[Customers].[PDU Description].[PDU Description]} on 1 -- An attribute of the customer hier.
    from [DM ISR DEV]
    I think all of my confusions come from my Sql background. A calculated member is a member that is resolved by calculating an MDX expression to return a value, not a set, for this reason the key to solve my problem was the SUM function.

  • Exchange rate error in Material Master Upload (MB1C - 561)

    Hi.
    While uploading material through MB1C with movement type 561, I am getting following error
    My company code currency, material master currency is EUR but still following error is occuring.
    "Enter rate EUR / rate type M for 01.10.2010 in the system settings
    Message no. SG105
    Diagnosis
    For the conversion of an amount into another currency, an entry is missing in the currency conversion table.
    Procedure
    Add the missing entry in the currency conversion table.
    Execute function
    You can then continue to process the commercial transaction."
    Why system is asking to maintain exchange rate for same currency?
    What are the settings that I should maintain? Thanks in advance.
    Regards
    Anand

    Hi,
    My material master currency is EUR
    Both Stock and Upload GL accounts currency is EUR
    Co COde currency is EUR
    Where else is the revevant Settings?
    Further, I uploaded one material on 25/Oct/2010 well. But when I am trying to upload the same material again on or before or after
    25/Oct/2010 system is giving exchage rate error
    What could be the remedy?
    Regards
    Anand

  • Exchange rate error in PO creation

    Hi,
    I am trying to Purchase order PO so that time i am facing error as
    i have configured in OB08 and OBBS maintain the exchange rate type M for USD and INR.
    but still i am facing error, please guide me to resolve this issue.
    Enter rate USD / INR rate type for 19.01.2011 in the system settings
    Message no. SG105
    Diagnosis
    For the conversion of an amount into another currency, an entry is missing in the currency conversion table.
    Procedure
    Add the missing entry in the currency conversion table.
    Execute function
    You can then continue to process the commercial transaction
    Thanks
    Shital D

    Hi,
    I have maintained as per the suggestion but still i am facing same error,
    please guide me.
    Thanks
    Shital D

  • Exchange rate error while Uploading material in MB1C; MovType 561

    Hi Experts,
    I am trying to upload material in MB1C (movement type 561). When I am saving, system is giving following error.
    My company code currency, material master currency is EUR but still following error is occuring.
    "Enter rate EUR /  rate type M for 01.10.2010 in the system settings
    Message no. SG105
    Diagnosis
    For the conversion of an amount into another currency, an entry is missing in the currency conversion table.
    Procedure
    Add the missing entry in the currency conversion table.
    Execute function
    You can then continue to process the commercial transaction."
    Do I need to maintain exchange rate inOB08 for EUR to EUR conversion? Or is there any other setting?
    Regards
    Anand

    Hi,
    No need to maintain conversion between EUR to EUR.
    We'll take one currency as standard for conversions.
    In our case for every currency we have to maintain conversion for USD
    EUR to USD
    USD to EUR
    INR to USD
    USD to INR
    May be you have to maintain like above.
    Rgds
    Murali. N

  • Error: Can't Add a New Sales Order: -10  Exchange rate not updated,

    Hi,
    I'm trying to add several Sales Orders contained in a XML document, whose root element corresponds to the Sales Person created that XML. Anyway, after I fill a Sales Order Document Object with the info in the XML and try to add it the following error appears: "Exchange rate not updated  [RDR1.U_Desc4][line: 2] , 'USD'" Which is strange because this company handles most of its transactions in MXP Currency. I will post the piece of Code that fills the object hoping it helps:
    For Each xndSalesOrder In xmlSalesOrder.Item("SalesMan").ChildNodes
                    oSalesOrder = Me.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                    oSalesOrder.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    With xndSalesOrder.Item("HEADER")
                        oSalesOrder.CardCode = .Item("Deudor").InnerText
                        oSalesOrder.DocDate = DateTime.Parse(.Item("FechaCont").InnerText, Nothing)
                        oSalesOrder.DocDueDate = DateTime.Parse(.Item("FechaEnt").InnerText, Nothing)
                        oSalesOrder.Comments = .Item("Observaciones").InnerText
                        oSalesOrder.DocRate = 11
                        oSalesOrder.DocCurrency = "MXP"
                        'oSalesOrder.ContactPersonCode = .Item("Contacto").InnerText
                        'User Fields
                        oSalesOrder.UserFields.Fields.Item("U_RefOV").Value = _
                            xndSalesOrder.Attributes.Item(0).InnerText
                        oSalesOrder.UserFields.Fields.Item("U_Referencia2").Value = .Item("Referencia").InnerText
                        oSalesOrder.UserFields.Fields.Item("U_FechaReferencia").Value = _
                            DateTime.Parse(.Item("FechaReferencia").InnerText, Nothing)
                    End With
                    With xndSalesOrder.Item("LINEAS")
                        For Each xndLinea In .ChildNodes
                            If intContLineas >= 1 Then                             oSalesOrder.Lines.Add()
                            End If
                            oSalesOrder.Lines.ItemCode = xndLinea.Item("Articulo").InnerText
                            oSalesOrder.Lines.Quantity = CDbl(xndLinea.Item("Cantidad").InnerText)
                            oSalesOrder.Lines.Price = CDbl(xndLinea.Item("Precio").InnerText)
                            oSalesOrder.Lines.TaxCode = xndLinea.Item("Impuesto").InnerText
                            oSalesOrder.Lines.DiscountPercent = CDbl(xndLinea.Item("DescuentoTotal").InnerText)
                            oSalesOrder.Lines.SalesPersonCode = xmlSalesOrder.Item("SalesMan").Attributes.Item(0).InnerText
                            oSalesOrder.Lines.Currency = "MXP"
                            'User Fields
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Promocion").Value = _
                                xndLinea.Item("AplicaProm").InnerText 'Valores posibles: Si, No
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc1").Value = _
                                CInt(xndLinea.Item("Descuento1").InnerText)
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc2").Value = _
                                CInt(xndLinea.Item("Descuento2").InnerText)
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc3").Value = _
                                CInt(xndLinea.Item("Descuento3").InnerText)
                            'If xndLinea.Item("AplicaProm").InnerText = "Si" Then
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc4").Value = _
                                CInt(xndLinea.Item("Descuento4").InnerText) 'This is the UDF that's giving me problems!!!
                            'End If
                            intContLineas += 1
                        Next
                       If oSalesOrder.Add() <> 0 Then
                            Me.Company.GetLastError(intErrorAdd, sErrMsgAdd)
                            If (0 <> intErrorAdd) Then
                                FillLog("Sales Order Error: " & CStr(intErrorAdd) & "," & sErrMsgAdd)
                            End If
                            xmlLogSalesOrder.Item
                        End If
                    End With
                Next
    If you look at the code I've even tried the solution of hardcoding the DocRate and the Currency as seen in a similar post about the DTW.
    Sorry if code is in Spanglish, its quite late around here. I hope you can help me because it's kind of an urgent matter and I can't seem to find a solution for it.
    Other useful data: SAP BO 2005 Patch 4.
    Thanks in advance...
    Alfredo Gargari

    Hi Alfredo,
    Have you tried to add the same salesorder by hand, I think you wil first get a form with exchange rates.
    I think you should add a check to your program to check for an update currency rate (the sbobob function GetCurrencyRate does this for you).
    GetCurrencyRate MethodDescription
    Returns a Recordset object that contains the currency rate for a specified date and currency code.
    See Currency Bobs sample.
    Syntax
    Public Function GetCurrencyRate( _
       ByVal Currency As String, _
       ByVal Date As Date _
    ) As Recordset
    Parameters
    Currency
    Specifies the currency code.
    Date
    Specifies the date for the currency exchange rate.
    Return Type
    A Recordset object that contains one field named CurrencyRate that holds the rate value.
    SAP Business One returns 0 if the system cannot find the exchange rate.
    Regards,
    Ad

  • Whrere to create the Exchange rate difference key in customizing?

    HI All,
    I've to create the Exchange rate difference key, to put in the master data of G/L Account.
    Could anyone show me the customizing navigation to create it?
    Thanks a lot

    Hi,
    to have this functionality you must define you GL account in OB09 and addicional accounts for exchange gain/loss.
    let me know if it helps.
    regards

  • Exchange rate difference while posting ME21N MIGO and MIRO

    Hi All,
    I am facing one problem with exchange rate type between M and EURX  and EURX is maintanined in the SPRO>SAP Netweaver>General Settings>currencies>Check Exchange rate types
    EXRT :  EURX
    Usage    :  EMU Reg,fixed                       
    Ref.Curr    : EUR  
    Buy.ra.at   
    Sall .Rat.At    
    Inv   
    EMU   :X
    FIXED
    Scenario:
    Company(USD) is maintaning Exchange rate type: M and no exchange rates are maintained for USD:EUR or EUR:USD.
    Eur is maintaing in Exchange rate type EURX.
    1) PO (ME21N) is posting for the Vendor on posting date 01/01/2008. Transaction currency is EUR and company code currency is USD and Quantity : 25000
    --> Exchange rate 'M' is not maintained for EUR and values are picking from the EURX Type. In the PO, Exchange rate is picking correctly from the EURX table entries on 01/01/2008.
    2) MIGO: GR  is posted on 01/25/2008 and with 15000 Quantity. Exchange rate is getting currecly from the table on 01/25/2008.
    3) MIRO: IR is posted on 02/15/2008 and Vendor Account is picking correct exchange rate from the table but GR/IR account is caluculations EUR:USD is differntly .
    Note: It is not GR based IR.
    Ex:
    PK AC                DESCRIPTION                    Tran Curr (EUR)    Local Curr  USD
    31 5004789     Vendor Account                       24,718.48-            38,777.12- USD
    86 2525000      A/P-GR/IR NON-INV                24,718.48            38,883.73  USD
    91 6584785      SERV-OTHER O/S                    0.00                 106.61- USD
    Here GR/IR account is cal dirrently.
    4) Credit Memo posted against IR on 03/25/2008. Exchange rate is given while posting CM same as Invoice. But system rate is different. Here also how the GR/IR is calculating is question is it not taking from Table or from any other rate types . Same problem like IR for GR/IR account.
    Entry is posted like
    PK  ACC         Description                            Tran curr(EUR)  Local curr(USD)
    21 5004789     Vendor                                   24,718.48        38,777.13  USD
    96 2525000     /P-GR/IR NON-INV                   24,718.48-      38,892.22- USD
    81 6584785     SERV-OTHER O/S                     0.00            115.09  USD
    This problem is same like GR and also SPL document is posting differenly for ZG and ZL ledger.
    ZL ledger is posting same like Accounting CM document ZG is posting with the different amount . This different amount is nothing but the exchange rate as per the posting date 03/25/2008. Exchange rate on 03/25/2008 is differe from IR date 02/15/2008 .
    ZL ledger is calculating based on the 02/15/2008 date and ZG ledger is calculating based on the 03/25/2008 . Difference between Exchange rate entered in the CM and 03/25/2008 table entry rate is showing exchange rate difference field in the Addtional field in the document display.
    Thanks in Advance.

    Dear Friends,
    Thanks for your helpful answers, actually we are in big export business. So we have to clear 100s of invoice lines with payments at one go, (which obviously being booked at different dates) so it would be very difficult for the user to go one by one invoice.
    My concern is, why system does not calculate exchange rate difference based on actual documents, i.e. Invoice to payments only. I think there might be some configuration needed to implement this functionality.
    Please help.
    Regards

  • Using an Exchange Rate Type other than 'M' in a Purchase Order

    I use several exchange rate types in SAP for various currency positions, specificially with pricing. 
    As a result, when I create a Purchase Order I want to use a different Exchange Rate Type, instead of the standard 'M'.  I have seen the rates can be placed directly in the Purchase Order, but I would like the system to look up the required rate using a specific exchange rate type.
    Can anyone provide any suggestions or guidance based on prior experiences ?
    thanks
    gino ruggiero

    Dear Gino Ruggiero,
    The MM functionality always uses the "M" rate.
    Not able to release Purchase doc.
    Regards,
    Naveen.

Maybe you are looking for

  • Custom Realm using LDAP?

    Hi, has anyone implemented a custom realm using LDAP? I was suprised to learn that ACLs are not supported in the LDAPRealm. Our corporate direction is to have a central LDAP security store - including ACLs. Unfortunately the LDAP server is MS SiteSer

  • Submitting iPad and iPhone versions of the same app - same product ID?

    I'm submitting a DPS app with both iPad and iPhone renditions today. Do I use the same product ID or different ones for the folios that I am submitting with each app? Both renditions are the exact same content, they are free so didn't require IAP app

  • Probably Stupid question, but - how to remove motion tracking from a clip?

    I've been playing around with the motion tracking feature, and think I may have come up with a way to make it work to highlight my now infamous "football" However, I need to delete the motion tracking effect (s) that I've added to the clip so that I

  • Fix for close button delay

    Trying to find fix for this problem. On various windows the red Close button stops responding to mouse clicks until I stop pressing my mouse buttons for a delay of sometimes up to 1 second. Really annoying! :/ You can reproduce the problem easily wit

  • Query Network interface with C#

    Hello, I'm developing a C# winforms application under Windows server 2008 (64bit) Is there a way to query all network interfaces installed in the PC and check their IP address and if there is an ethernet connection (connected \ not connected) ? I wan