Skip to Content
0
Dec 22, 2016 at 01:57 PM

Inventory counting slow performance when update via di api.

218 Views

Hello,

Update document with 200 lines takes one minute, while with few lines takes seconds.

Enyone suffer this issue?

SBO 9.2 PL 05

Code sample:

SAPbobsCOM.InventoryCountingsService icService = (SAPbobsCOM.InventoryCountingsService)oCompany.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.InventoryCountingsService);
SAPbobsCOM.InventoryCountingParams icParams = (SAPbobsCOM.InventoryCountingParams)icService.GetDataInterface(SAPbobsCOM.InventoryCountingsServiceDataInterfaces.icsInventoryCountingParams);
SAPbobsCOM.InventoryCounting doc = (SAPbobsCOM.InventoryCounting)icService.GetDataInterface(SAPbobsCOM.InventoryCountingsServiceDataInterfaces.icsInventoryCounting);
icParams.DocumentEntry = 1;
doc = icService.Get(icParams);
doc.Remarks = doc.Remarks + " Update By DI ";
icService.Update(doc);