cancel
Showing results for 
Search instead for 
Did you mean: 

Inventory counting slow performance when update via di api.

0 Kudos

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);

Accepted Solutions (0)

Answers (1)

Answers (1)

edy_simon
Active Contributor
0 Kudos

Hi,

My testing with your code on the same SBO 9.2 PL05 with 973 lines in the counting, took me +/- 5 seconds.

Regards
Edy