on 07-05-2012 10:52 AM
Hi all,
My client want when i pick Business partner master data only customer and leads should be displaye, but not vendors. What can i do for this.
Thanks
Hi Kuldeep,
You can do it by filtering your choose from list. On beforeaction = true, and on choose from list event use this piece of code
if (pVal.ItemUID == enControlName.CustomerCode)
{
SAPbouiCOM.ChooseFromList oCFLEvento = default(SAPbouiCOM.ChooseFromList);
SAPbouiCOM.Condition oCon = default(SAPbouiCOM.Condition);
SAPbouiCOM.Conditions oCons = default(SAPbouiCOM.Conditions);
oCFLEvento = this.m_SBO_Form.ChooseFromLists.Item("CFL_2");
oCFLEvento.SetConditions(null);
oCons = oCFLEvento.GetConditions();
oCon = oCons.Add();
oCon.Alias = "CardType";
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
oCon.CondVal = "C";
oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;
oCon = oCons.Add();
oCon.Alias = "CardType";
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
oCon.CondVal = "L";
oCFLEvento.SetConditions(oCons);
}
Hope it will help
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.