Skip to Content

Inventory counting slow performance when update via di api.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 23, 2016 at 03:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded