Skip to Content

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

How to filter data in form Business Partner Master Data

Hi All,

I want to filter the business partner master data form depending the user who is logged. For this i created a conditions like this :

SAPbouiCOM.DBDataSource oDBDataSource;

SAPbouiCOM.Conditions oCons = null;

SAPbouiCOM.Condition oCon = null;

oCons = new SAPbouiCOM.Conditions();

oCon = oCons.Add();

SAPbouiCOM.Form oForm;

oForm = SBO_Application.Forms.ActiveForm;

oCon.Alias = "SlpCode";

oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;

oCon.CondVal = "3";

oCons.Item(oCons.Count - 1).Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;

oCon = oCons.Add();

oCon.Alias = "SlpCode";

oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;

oCon.CondVal = "-1";

oForm.DataSources.DBDataSources.Item("OCRD").Query(oCons);

I've this error :

Data Source - is not a user-defined object [66000-17]. Form Unique Id: 'F_32', Table Unique Id : 'OCRD'

This code was for the menu event 1290 (First record Data) and i want to do the same way for the events 1288, 1289, 1291.

How can i do this ?

Thanks for your help

Michael

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