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

ICWC: Enhancing BP Search

Hi All,

I am having a CRM 5.0 system and a requirement to add two fields, i e

BP Type and External BP number ( standard fields ) in the account view of BP.

I have already added those fields into the UI, but i want the search to be performed by using those fields as well. how can i do this?.

Any Help / Hint really Appreciated ( Points ).

Thanks in advance, Sudeep..

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2007 at 09:43 AM

    Hi Sudeep

    I don't believe these fields are readily available from any classes used in the BuPaSearch.

    You'll need to look at extending the BOL, refer to IC Webclient Cookbook.

    <b>Please reward with points if helpful</b>

    Regards

    Panduranga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 09:03 AM

    Hello Sudeep,

    The two fields partner type and partner external is availabel in BUILHEADER.So they will be available in the underlying DB tables as in BUT000.

    Here are the steps to enhance the Account Search.

    1. Create a Z structure ZCRMST_HEADER_SEARCH_BUIL by copying the BuilHeaderSearch structure CRMST_HEADER_SEARCH_BUIL.

    2. Add the two fields BP Type External Number to the structure

    ZCRMST_HEADER_SEARCH_BUIL .

    3.Go to the path in spro

    CRM > CRM Cross applicationComponents >GenIL > Component Specific > Extend Object model for business partner an in the second folder define a name e.g. ZBuilHeaderSearch and assign the created structure ZCRMST_HEADER_SEARCH_BUIL new object, Select the object type as "Search Object" and enter the ROOT object as "BuilHeader.

    4.Create a new class e.g. ZL_BUIL_HEADER and make the class CL_BUIL_HEADER as a superclass of that.

    5.In the same path given above in spro in the first folder create an entry with Object as BuilHeader and class as ZL_BUIL_HEADER.

    5.Redefine the method GET_RESULT_TABLE method in ZL_BUIL_HEADER.

    6.Now you have to write your own filtering logic in this method.This method calles the TREX_BUPA_SEARCH with standard fields and I guess BP Tyep and External Number are not supported.

    So in this method you first call the Super Classes GET_RESULT_TABLE method(i.e. the GET_RESULT_TABLE methdo of the class CL_BUIL_HEADER) and then based on the result you do your own filtering logic for BP Type and External Number.

    Hope this helps.

    Please reward point if it helps.

    Thanks & Regards

    Anupam

    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.