Return to Snippet

Revision: 72505
at September 4, 2017 20:44 by syedhussim


Initial Code
SAPbobsCOM.Company  company  =  new  SAPbobsCOM.Company();
company.Server  =  "server ip";
company.CompanyDB  =  "company db";
company.DbUserName  =  "db username";
company.DbPassword  =  "db password";
company.UserName  =  "sap user";
company.Password  =  "sap password";
company.DbServerType  =  SAPbobsCOM.BoDataServerTypes.dst_HANADB;
int  result  =  company.Connect();
if  (result  ==  0)
{
        SAPbobsCOM.SBObob  bo  =  company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge);
        bo.SetCurrencyRate("USD",  DateTime.Now,  rates["USD"],  true);
        company.Disconnect();
}
else
{
        Console.WriteLine(company.GetLastErrorDescription());
}

Initial URL
http://www.saphanadev.net/sap-b1/updating-currency-rates.html

Initial Description
Update exchange rates in SAP Business One

Initial Title
Updating Currency Rates In SAP Business One

Initial Tags


Initial Language
C#