Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Check if a matrix is read only in SBO 2005

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

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question