/ Published in: C#

Update exchange rates in SAP Business One
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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()); }
URL: http://www.saphanadev.net/sap-b1/updating-currency-rates.html
Comments
