Skip to Content

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

Item filtering

hi friends,

I want to filter the item list.for example item codes which contain the word 'DN' .i have given the code like this .But it is not working.

if (cflEvent.BeforeAction == true & (pVal.ItemUID == "38" & pVal.ColUID == "1"))

{

try

{

oMatrix = (SAPbouiCOM.Matrix)NorForm.Items.Item("38").Specific;

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

oConds = new SAPbouiCOM.Conditions();

oCond = oConds.Add();

oCond.Alias = "ItemCode";

oCond.Operation = SAPbouiCOM.BoConditionOperation.co_CONTAIN;

oCond.CondVal = "DN";

cflList.SetConditions(oConds);

}

catch (Exception ex)

{

SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");

}

}

Thanks

Manju

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