Hi Moayed,
I think you need to set the Relationship property of the first condition to AND so that the filter applies both conditions:
oCon = oCons.Add();
oCon.Alias = "DocStatus";
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
oCon.CondVal = "O";
oCon.RelationShip = cr_AND;
oCon = oCons.Add();
oCon.Alias = "IsIns";
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
oCon.CondVal = "Y";
oCFL.SetConditions(oCons);
Kind Regards,
Owen