cancel
Showing results for 
Search instead for 
Did you mean: 

Check if a matrix is read only in SBO 2005

Former Member
0 Kudos

Hi

I have written a program to update the discount amount on the matrix in the sales order screen. The problem I have is that if they click on my button to update the matrix and the matrix is ready only then the program bombs out.

I have tried to test omatrix.columns(17).editable but that seems to be set to true even if the order is closed.

Can anyone give me any ideas please ?

Regards Andy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I used the following code to do a similar test and didn't´t get an error. May be you could use it to compare it to yours and find the problem:

SAPbouiCOM.Column oCode = oMatrix.Columns.Item(strCode);

SAPbouiCOM.Column oTA = oMatrix.Columns.Item(strTAF);

if(oCode.Editable)

{

SAPbouiCOM.EditText oEdit = (SAPbouiCOM.EditText) oCode.Cells.Item(i).Specific;

oEdit.Value=strKey;

}

Hope ir helps,

-M

Answers (1)

Answers (1)

AdKerremans
Active Contributor
0 Kudos

Hi Paul,

Why don't you check if the order(line) is closed or not.

Regards

Ad