cancel
Showing results for 
Search instead for 
Did you mean: 

Add data in a user defined column in System matrix

Former Member
0 Kudos

Hello All,

I have created a User defined column in the Goods Issue Form

When I choose a particular order, I get values in the matrix defined by system

Based on this selection, I fire a query which returns a value and this value has to be

displayed in the user defined column.

I am trying to add a value to this column but I get the following error message

Form Item is not Editable

Here is the code written in form activate event

code = (EditText)matrix.Columns.Item(1).Cells.Item(i).Specific;

string strcode = code.Value.ToString();

string str;

str = "select itemCode from owor where Docnum='" + strcode + "'";

RecSet.DoQuery(str);

e = (EditText)matrix.Columns.Item(15).Cells.Item(i).Specific;

strcode = RecSet.Fields.Item(0).Value.ToString();

try

{

matrix.Columns.Item(15).Editable = true;

e.String = strcode;

matrix.Columns.Item(15).Editable = false;

}

catch (System.Runtime.InteropServices.COMException com_err)

{ }

Regards

Nirmala B

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

On system forms, you cannot update the DataSource (DBDataSource) of system matrixes, SAP blocks it.

The only solution is to set the column visible and editable, and write in it with the matrix cell set value method.

The downside is that the user will be able to see and edit the values (unless you catch all edit and click events to that cell).

Former Member
0 Kudos

Thanks Janos ,

Got it

Nirmala

Former Member
0 Kudos

Hi,

I am doing something quite similar. Anyway for me to create a CFL in the UDF which will call a UDO ?

Former Member
0 Kudos

Hi,

Can U explain exaclty what u want to do so maybe I could help, Im afraid I didnt quiet get you.

Regards

Nirmala B.

Former Member
0 Kudos

Hello,

I am about to do the same thing here, but could you explain/post code how to add the UDF in the goods issue matrix ?

Former Member
0 Kudos

Hi

you have to update the value of datasource of the column

and use matrix.setlinedata(RowNum) then only you can update the value ...

Regards,

Atul...

Former Member
0 Kudos

Hi,

Thanks for the post.Sorry that I wasnt able to reply for quite some time.

Could u possibly send me a code snippet for it, also where do I put it?

Thanks

Nirmala