Hi All,
We develop a Add-On for update a UDO with some criterias since Datagridview. We used oGeneralServices and works fine in a company, but when try to execute that in other company is extremely slowly. Why works good in a company and not works in the other one?
I post the code that recently used.
Dim oGeneralService As SAPbobsCOM.GeneralService Dim oGeneralData As SAPbobsCOM.GeneralData Dim oGeneralParams As SAPbobsCOM.GeneralDataParams Dim oChildren As SAPbobsCOM.GeneralDataCollection Dim sCmp As SAPbobsCOM.CompanyService Try sCmp = oCompany.GetCompanyService oGeneralService = sCmp.GetGeneralService("CSS_PS_COM") oGeneralParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams) For i = 0 To a oGeneralParams.SetProperty("DocEntry", celda) oGeneralData = oGeneralService.GetByParams(oGeneralParams) oChildren = oGeneralData.Child("CSS_PRES_COM_L") oChildren.Item(celda1).SetProperty("U_CSS_Q" + CStr(Month(DateAdd(DateInterval.Month, 1, Now))), celda2) oChildren.Item(celda1).SetProperty("U_CSS_UpdDate", fecha) oChildren.Item(celda1).SetProperty("U_CSS_Asert", Asert) oGeneralService.Update(oGeneralData) End If Next
Thanks for your help.