Add Exchange Rate

Dear Experts,
I want to add new exchange rate using sap object. I found this SetCurrencyRate Method in help, but I don't know how to use it.
The company object doesn't show this method. Is there an exchange rate object or can anyone give me an example of how to add new exchange rate?
Edited by: Cherine Chen on Sep 1, 2011 11:26 AM

Hi,
Check out this example file:
C:\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\03.UsingSBObob\2003\Currencies.vb
In short, you need to use the SBObob object and its SetCurrencyRate method.
Good luck,
Johan

Similar Messages

  • Add Exchange rate type to Selection Screen in BEx

    BW Experts,
    Business raised a request to add Exchange Rate Type(KURST) from TCURR table in the selection screen of BEx so that they can select the required rate and target currency for a particular key figure.
    In Query Designer we can provide variable for currency by going into the context menu of key figure but not sure how to provide a variable on Currency Conversion Key.
    Please suggest.
    Thanks in advance.
    -Bobby.

    Hi there,
    You could with user exit define a variable ready for imput but in step 1 prefill the variable with only those values, but this would still when the user executes when pressing F4 be able to check all that. Nevertheless that variable would be prefilled with the values you wish in user exit.
    Another option is to mark 0RTYPE in RSD1 as authorization relevant and manage different authorization values for the users. This way you could when the user presses F4 see only values he/she is authorized.
    Diogo.

  • How to manipulate exchange rates during loading from R/3

    Hello,
    We understand that R/3 is able to do more complex currency calculations than BW. For example is it ok for R/3 to calculate from USD to NOK if only the NOK to USD rate exist in the system. It's even possible to calculate via another currency. This is not easily possible in BW. To be able to do the same in a BW-report we would like to have the NOK to USD rate in the currency tables in BW. The rates are loaded from R/3 and of course we don't want to add exchange rates manually in BW.
    I suppose it's possible to write a program which loops through the currency table and generates the missing rates. Are there any simpler solutions?
    Anyone who has had the same problem?
    Best regards,
    Christoffer Owe

    Hi,
    In transaction RSCUR you can use a number of conversion rules. 
    If you want to have something more complex, just use an ABAP-routine to do the conversion.
    The exchange-rate tables in BW and R/3 are exactly the same, so you can use the same function
    modules as the ones used in R/3.
    regards,
    M.

  • How to Add a parameter of currency exchange rate in the selection screen

    Dear Friends,
    How to Add a parameter of currency exchange rate in the selection screen with format (9999.99999). wich field i need to take.
    Thanks,
    Sridhar

    TCURR-UKURS.
    ~Suresh

  • 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

  • Retrieving of exchange rate - Excel Add-in/Planning

    <p>We have entered exchange rates in Hyperion Planning desktop andrefreshed it to Essbase.  We would like to be able to retrievethese rates in Essbase Addin and have not been able to do itdespite retrieving all the possible combinations ofdimensional members.  We are sure that something ismissing but is unable to detect it.  Can someone please adviseon this?  Le'ts just assume that we only have Accounts andEntities in Custom dimensions.  The others being the defaultScenarios, Versions, Time Periods and Years.  Appreciate anyfeedback.  Thanks</p>

    You will be able to use Essbase Excel Add-in to view the exchange rates. They are stored under the HSP_Rates dimension. Just make sure that you use the dimension name itself during member selection for Entities, Versions, and Currencies dimensions.<BR><BR> Select the members for each dimension as follows:<BR><BR> Scenarios: (scenario associated with the exchange rate table)<BR> Years: (year(s) to which the rates apply)<BR> Time Periods: (level zero time period(s) to which the rates apply)<BR> Versions: "Versions"<BR> Currencies: "Currencies"<BR> Entities: "Entities"<BR> Accounts: "HSP_Average", "HSP_Ending" or "HSP_Historical"<BR> HSP_Rates: "HSP_Rate_currencycode" eg. "HSP_Rate_USD"<BR><BR><BR>-Shoba

  • Mass update exchange rate type (not rate) in open sales orders

    Hi all,
    Our requirement is to update the exchange rate type at sales order header (VBAK-KURST) for all open sales orders with a new type created. (Z001). This field does not appear in MASS transaction for sales orders despite being present in the structure MASSSDHEAD.
    This field cannot be located even in VA02 transaction (I am not sure if standard SAP masks or shows this field at header; I also can't find any transaction variants assigned).
    Can anyone suggest how this field can be updated for sales orders either individually or in mass mode.
    Regards,
    KC
    SAP SD

    You are correct in indicating that Exchange rate type field  is not seen in Header data of sales order. I checked screen layouts for various screens for sales order data and this field is not suppressed. The only reason could be that this field is not used in sales order screens
    If you are interested, you could also check in the following way
    1.  Go to SE11, enter database table as VBAK
    2. Once inside data dictionary table, click where used list button, select programs and screens and execute
    3. click continue (don't select background)
    4. now you would have list of programs and screens, this table is used
    5.  now start another session and go to transaction SE51
    6. indicate program name as SAPMV45A and screen numbers as listed in step 4. you can check all screen numbers to see whether Exchange rate type field is listed in sales order layout.
    7. Of particular interest would be screen number 4311 as this contains  Financial accounting data & 4303 Billing data
    8. you can check screen layout for screen 4311 & 4303. you would see Exchange rate type field is not indicated.
    9. in case you could find this field in any screen, you could ask your ABAP consultant to add this field in the layout screen.
    Hope this answers your question

  • Exchange Rates

    SBO 2007B
    PL 04
    I want to update the exchange rates before uploading the open sales documents.
    I was in a understanding that BoBridge in DTW is used for uploading the exchange rates using DTW.
    When i upload, it gives error.
    my template:
    Currency     Date     Value
    Currency     Date     Value
    USD     20080331     39.99
    USD     20080618     43.1
    USD     20080627     43.1
    how to update the exchanger rates using dtw?
    if not, what should be done?

    hi vijay,
    Pl clarify you want to Upload / Update exchange rate ?
    Try to upload/import it for a month.Ex. June 2008
    Check this link which may be useful to you
    https://forums.sdn.sap.com/watches!add.jspa?forumID=264&threadID=948068
    Jeyakanthan

  • 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

  • Exchange rate problems

    Hi all
    While releasing the billing document to accounts at [VF02], I am getting the following error
    Enter rate INR /   INR rate type M for 06.04.2007 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.
    You can then continue to process the commercial transaction.
    I tried all the above procedures with FI MM & ABAP consultants and in vain
    Please help
    Regards

    HI
      To maintain currency exchange rates, use t.code OC41
       GO to new entries----
    >here maintain
       exchange rate 'M' standard
       valid from     -
        date
       from            -
       euro
       drpqot         -
        75
       to              -
         INR
                       Award points if it is useful
                         Regards
                           Prasad.G

  • Exchange rate type error

    Hi,
    I am trying to Purchase order PO so that time i am facing error as
    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
    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.
    Thanks
    Shital D

    Hi,
    I have checked with FI consultant Direct and Indirect Quo has maintaned,
    please suggest me any other config is required to resolve this issue.
    Thanks
    Shital D

  • Exchange rate maintenance

    HI gurus,
    I have fixed the exchange rate as  40 (say) in the PO header.
    Now when I do Migo after miro, it throws the following error;
    Enter rate USD / INR rate type B for 06.09.2007 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.
    When execute this function, it goes to OB08.Even after giving the rate also for 6th Sep,unable to post MIGO, Please help .
    Thanks
    Kumar

    Hi James,
    The SAP NetWeaver MDM discussion forum is not the right for your query. Please check the appropriate forum. You may try "ABAP Programming".
    Best regards,
    Markus

  • Power Pivot - Calculating Exchange Rates depending on MONTH

    Hello everyone, I have a question, would like to know if someone can help me figuring out a solution. I have created a spreadsheet using powerquery and powerpivot. Loading the data on powerquery from different spreadsheets was a charm, the problem is calculating
    the exchange rates per month. Let me try to explain better;
    The structure is as following:
    I have 3 tables, they are:
    Dates– Just a dates (loaded directly on PowerPivot).
    Invoice – Details of invoices for all customers, gross totals are in different rates (loaded through power query)
    Customer – Detailed information of customers (loaded directly on PowerPivot).
    Currency – exchange rates (loaded directly on PowerPivot).
    Note: I mentioned where they were loaded because I do not know if that really matters, I guess it does not... but extra information will not hurt. Now, let's go to how these tables are connected between each other and their key columns:
    The Invoice table has information on invoices dates, invoice gross total and customer code. This table is related to Customer table, which has the actual name of customers and other details. This link is done through the Customer Code column. The Currency
    table have a relationship with the Customer Table through the Country Column.
    What I want to achieve is a formula to do the exchange rate based on the Invoice Date column present on the Invoice Table. So I have created a column on the Currency Table named at each month of the year and populated it with the exchange rates for all countries
    (countries listed using ISO3 format).
    My problem is while I am able to select a column from the Currency table to do the exchange rate calculation using the below formula, I fail to realize how to do it per month:
    =CALCULATE(sum(invoice[Gross Value])*SUM(Currency[Reverse]))
    *Reverse is the column with the exchange rate for the country money to USD
    What I am failing to do is how to make that calculation to also consider the month of the invoice and pull the exchange rate for the same month from the Currency table… something like:
    Get the invoice date then find the column on Currency[Month] and multiply, providing me the USD amount.
    I was unable to figure out a solution using the filters parameters from Calculate. If some of you ask why I am using SUM inside Calculate, is because if I only use SUM and try to do the math between the two tables I get an error saying that it was not possible
    to determine the value on Currency[Reverse]. Same happens with SUMX. It worked out with Calculate, but then I cannot create other formulas using CALCULATE on that table because it will give that error on redundancy, unless I add a filter on it, which worked
    last time (but I do not remember which thing /parameter used to filter, so do not ask it right now :D)
    To be honest… I do not really need that level of accuracy, but my Virgo perfectionist side demands me to find a solution to that, that will not use a single exchange rate, but consider which is the correct exchange rate for the month of the invoice and calculate
    it correctly for all invoices. Just so you know, the Invoices tables has more than 1million lines.
    Anyone know how to crack this problem or can point me to some site where I can learn how to do it?
    Thanks for the time reading all of this, even if you cannot help, I really appreciate it ;)

    Hi Estevao,
    Having problems to understand how you managed to combine your currency table with the customer table by Country ID. Where’s the 1-side of this relation (many customers in the same country and many months for the same currency)?
    Anyway: Seeing that you already use Power Query, I’d suggest that you prepare your data in a way that you can connect your currency table with your invoice table instead of with your customer table. Create a field in your Invoice Table
    that concatenates Customers CountryID&Month.
    Imke

Maybe you are looking for