cancel
Showing results for 
Search instead for 
Did you mean: 

its too slow traversing system matrix

Former Member
0 Kudos

Hi all

i want to set a value in a system matrix.but when matrix contains more row its become deadly slow

my code is below

for (int i = 1; i < oMatrix.RowCount;i++)

{

oItemText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("1").Cells.Item(i).Specific;

oStockText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("5").Cells.Item(i).Specific;

string cellCode = oItemText.Value;

if (cellCode == itemCode)

{

oStockText.Value = "1";

break;

}

}

is any one have solution pls reply

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Muna,

Theres a couple of things you can check first to make sure you are maximising performance.

You can find all the tips in the document in the following link:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0857d30-21a2-2910-97ba-c834769e...

You should implement these tips to see if performance improves.

Also another thing to check is if Formatted Searches are defined on the matrix. If they are then remove them and test again to see if this improves performance.

Cheers,

Lisa

Answers (0)