Skip to Content
Oct 07, 2013 at 05:19 AM

how to add valid values in column of matrix.


Hi Expert

I added one user defined field in matrix of standard Purchase order.and i want to insert values in that column

for that i write following code.but it doesnot work.

can please tell me whats the wrong in my code.

if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_LOAD && pVal.BeforeAction == false)


oForm = clsAddOn.LDNA_Application.Forms.GetForm("142", pVal.FormTypeCount);

//Colum - Type of Weight

oColumn = oColumns.Add("edtTypeWt", SAPbouiCOM.BoFormItemTypes.it_EDIT);

oColumn.TitleObject.Caption = "Type Of Weight";


oColumn.DataBind.SetBound(true, "POR1", "U_TypeofWt");

oColumn = oItem.Specific;

oItem.DisplayDesc = false;

for (int i = oColumn.ValidValues.Count; i < 1; i++)


oColumn.ValidValues.Add("E", "Weight At Ex Factory");

oColumn.ValidValues.Add("O", "Weight At Our Factory");