cancel
Showing results for 
Search instead for 
Did you mean: 

How To - ChooseFromList - Business Partner Contacts

Former Member
0 Kudos
80

Hi,

Does anyone know how to define/create a ChooseFromList (in XML or via code) with BP contacts that can have conditions to filter out the list based on CardCode? I have looked through the BoLinkedObject list and don't see contacts in there. I have also troed to set the ObjectType to "OCPR" but SAP raises an Invalid ObjectType error.

Any ideas?

Thanks,

David

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi David,

Try instead of ObjectType = "OCPR" with ObjectType = "11" (obtained with this query "SELECT ObjType FROM OCPR"). That should do it. To have it filtered with the CardCode, just add a condition like this:

oCon.Alias = "CardCode"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "C00001"

The alias is just the field name.

Hope this helps,

Ian

Answers (0)