Skip to Content
author's profile photo Former Member
Former Member

How To - ChooseFromList - Business Partner Contacts

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 01:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded