Skip to Content
0

Inventory counting slow performance when update via di api.

Dec 22, 2016 at 01:57 PM

62

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Edy Simon Dec 23, 2016 at 03:40 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded