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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.