Enhance Account Search

Hi Experts,
I need to enhance Account search based on a custom field. I am working on SAP CRM 2007 WebUI. Please guide me in which BAdI should I write the logic.
Please let me know if some other approach also apart from BAdI implemenatation.
Any pointers to the solution would be highly appreciated.
Regards,
Amit

Hi Amit,
You can fidn out the BADI by following the below procedure:
1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
2. In 'Display' mode, go to 'Methods' tab.
3. Double click the method 'Get Instance' to display it source code.
4. Set a breakpoint on 'CALL METHOD cl_exithandler=>get_class_name_by_interface'.
5. Then run the employee search.
6. The screen will stop at this method.
7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.
Hope this helps!
Regards,
Saumya

Similar Messages

  • An exception occurred during account Search

    Hi Experts,
    On Account Search , I am getting the below exception.
    Cannot display view BP_HEAD_SEARCH/MainSearchResult of UI Component BP_HEAD_SEARCH
    An exception has occurred Exception Class  CX_BOL_EXCEPTION - Access Previously Deleted Entity
    Method:  CL_CRM_BOL_CORE=>REREAD_ENTITY 
    Source Text Row:  137
    Any help would be appreciated.
    Thanks,
    Priya.

    Hi Raj,
    It didn't work for me. Since the same code is in Quality Server , its working fine there.
    Its not able to display " view BP_HEAD_SEARCH/MainSearchResult "  in the configuration i found out one field which is being added by AET
    but when i tried to see it in Enhancements its not there so i think might be this field was created and deleted but it is not deleted completely.
    this field is available only in Context node of Search Result list.
    Perhaps if this field is completely deleted it might help, but don't know how to delete it Since its not in Enhancements where we can delete the fields added by AET.
    do you have any idea?
    Pls Help.
    Priya.

  • Account search filter

    Dear all,
    Iam looking for an appropriate technique or filter where I would like to restrict or filter the Account search functionality in CRM by ensuring that the Accounts/Business Partners of only those Sales Organization the Employee is assigned to,  are displayed and not all by default.
    Any tips would be highly appreciated.
    Perhaps there exists some BADI for this?.
    Thanks,
    Praveen

    It is possible to filter BT by ACE. Perhaps you can go a similar way as described Filter business transactions by employee responsible.
    There exists a BAdI for enhancing the BP search as well: BADI_CRM_BUPA_IL_SEARCH_EXT
    Implement it to filter the search result. search_criteria_initial() has to return false in your case then method search_partners() is called where you can execute your filter.
    cheers Carsten

  • 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..

    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

  • Account search functinality is not working for one user in portal

    Hi friends,
    We have configured E.P 7.0 with CRM 5.0 and configured CRM PCUI business package.
    We have a role called <b>accounts and products</b> in portal. So accounts can be searched in this role.
    Now our severity issue is for one of the super user,for ex su1, accounts search is not working in portal but the same is working in CRM GUI.
    for example if we search for an account 233445(or any other account) in portal its showing no data found but if we search with the same criteria data is displaying CRM GUI.
    We have checked with other 2 super ids. Both ends portal and gui search is working fine.
    Am unable to figure out whats the cause of the issue as search is not working only for one user su1 .
    we have checked by restarting the server also to clear the memory cache.But still search is not working in portal.
    Could anyone of u please advice ASAP as this is severity issue.
    Thanks & Regards
    Sireesha.

    Hi srinivas,
      I have checked both the users credentials,permissions,groups in the GUI and also in the portal.
      Both of the users profiles are assigned as same.
       Could you please advice is there any other way to check it out?
      Regards
      Sireesha.

  • How to enhance the search functionality of the Locator Bar in SAP CRM Order

    Hello All,
    I have one following requirement in SAP CRM 4.0 :
    it is necessarry to search for Orders according to one of the Z-fields(under Z-tab) in SAP CRM.
    Therefore i need to  enhance the search functionality of the Locator Bar with this option.
    Can anyone help me how to achieve this .
    Cheers
    Sreedhar

    HI, Sreedhar
    Check this thread:
    Re: New search help on CRMD_ORDER locator
    Denis.

  • G/L Accounts Search

    Hi SAP gurus,
    I have a little problem with the G/L accounts search.  After creating G/L accounts for a particular company code, while testing for document entry using FB50, when I click on the drop down menu to search for the GL accounts i get a message "no views for this selection" and the system requests if i want to create the accounts. However, when i run the program S_ALR_87012333, i can see all the accounts have been created and are present in the company code level( I created them using FS00 in case you are wondering). Has anyone ever experienced this problem before or i'm I missing something here?
    The SAP version is ECC 5.0. Any input would be very much appreciated.
    Also, i'm able to do FI document entry without any problem if i entr the account number directly; I just can't search usint the drop down menu.

    Hi Ankur,
    I managed to solve the problem by having the BASIS people apply a higher level patch for the SAP GUI 6.40. Apparently we were using a lower version/patch level. The patch that was applied was patch 22. I hope this helps.

  • How to create URL link for telephone number ,open to account search page and account result page ?

    Hi Experts,
    Bussines role - ZCC_ICAGENT 
    If user open this bussiness role and open Account page ,user enter telephone number and enter search account ,then result will be displayed.Instead of 3 clicks ,user click direct URL link ,telephone number is parameter,account Search and account result  page will be opened direct link.
    So how to do it..could you please provide me step by step...what are the steps wee need to follow for creating URL ..how to do it..Please help..
    Thanks
    Kalpana

    Hi kalpana,
    You dont need to do any setting for this.
    Following URL will be used as per your requirement.
    http://rrnewcrm.ril.com:8000/sap(bD1lbiZjPTI0MiZkPW1pbg==)/bc/bsp/sap/crm_ui_start/default.htm
    ?sap-system-login-basic_auth=X&sap-system-login=onSessionQuery&saprole=ZCC_ICAGENT&
    sap-phoneno=9999999999
    Here parameter sap-phoneno will contain the number you want to search for.
    In component ICCMP_BP_SEARCH, go to view BuPaSearchB2B. write below code in its inbound plug IP_INBOUNDPLUG-
    DATA: lt_ivr_url_param TYPE tihttpnvp,
             ls_ivr_url_param TYPE ihttpnvp,
             lr_searchcustomer TYPE REF TO if_bol_bo_property_access,
             ls_searchcustomer TYPE crmt_bupa_il_header_search.
    CALL METHOD cl_crm_ui_session_manager=>get_initial_form_fields
           CHANGING
             cv_fields = lt_ivr_url_param.
    lr_searchcustomer ?= me->typed_context->searchcustomer->collection_wrapper->get_current( ).
         CHECK lr_searchcustomer IS BOUND.
    READ TABLE lt_ivr_url_param INTO ls_ivr_url_param WITH KEY name = 'sap-phoneno'.
    IF ls_ivr_url_param-value IS NOT INITIAL.
             ls_searchcustomer-telephone = ls_ivr_url_param-value.
       CALL METHOD lr_searchcustomer->set_properties( EXPORTING is_attributes = ls_searchcustomer ).
             eh_onsearch( ).
        ENDIF.
    Thanks & Regards
    Richa

  • Account Search by Territory ID/Desc

    Hello Experts,
    I'm facing a couple of issues working with territory management:
    <1>  I understand that Account Search by territory id & desc are standard delivery from CRM 7.0. However, this is not working in my system. Searching on these fields returns 0 results even though we have accounts assigned to the territories. I've checked the table CRMD_TERR_ACCREL - it has the correct entries of territory-account relationships.
    <2>   The territory admin reports - namely "Accounts: No territories" and "Territories: No Employees" are not working. System throws an error "Selected Report does not exist". I implemented note 1320439 (which claims to solve this issue) but in vain.
    Request your comments/suggestions please.
    Regards, Vishal

    Hi Masood, thanks for your response. Here is the answer to your questions:
    Do you have an active rule for this territory ? - Yes
    Is the rule valid in terms of dates ? - Yes
    was the rule revised ? - Yes, but only for one of the territories
    Also check if the FM CRM_TERRMAN_SINGLE_READ_BUFFER returns your attributes if you execute it many times passing the territory id.
    - Yes, it returns the attribuites like rules for the territory, description, employees etc,. but not the accounts linked to it. Which structure would it get accounts in?
    Regards, Vishal

  • Account Search by Territory ID

    Hi,
    I have set up rule builder where one of the rule is account id. i have manually enter account ID in rule and activated . if i search that account id in territory search the node is showing in the result.
    but if i search the Account by territory id in Account Search page. the result is 0.
    what seems to be the link between Account assignment to territory node via rule builder and Territory ID search in Account Search page.
    In Account Search there is one more option of Territory is EMPTY. What configurations need to see the result?
    Does this mean that if Account is not assigned to any territory node, Territory is EMPTY should show that account?
    Please help.
    Thanks

    Hi Amish,
    Creating and activating the rules are only the definition of the rules. Once that is done, you have to run the
    report to generate the rules. The link is the report.
    In Territory search, when you search with an account, you get the result because the account is maintained
    in the territory as a rule definition.
    But in account search, if the report is not run, then it cannot find the territory to which it is attached as it doesn't
    know this detail. Account search identifies this information from the link rule table which will be populated
    only after running the report.
    The report that you need to run is CRM_TERRMAN_PROC_REL and the link table is CRMD_TERR_LINK.
    Regards,
    Leon
    Edited by: Leon Limson on Feb 15, 2012 4:58 AM

  • IT Servicemanagement - (Enhance) Quick Search

    Hi experts,
    in ITSM there is a searching functionality at the top-right (I call it quick search).
    With this search it is possible to search Incidents, RFCs, by Text or e.g. by Business Partner.
    Especially the search for BP is very convinient, because you don't need to look for the BP-number first, it is enough to enter a part of the name.
    My question now is, is there a possibility to enhance this search so, that I have one field for Business Partner.
    After entering a Business Parnter I want to display all OPEN incidents and RFCs (cross!).
    Because in standard it is also not possible to search by BP incidents and RFCs, you first need to decide what you want to look for.
    The requirement is, that we get around 100 Incidents/RFCs per day.
    And it happen very often, that somebody is calling, and so we need a quick function, to display all open tickets of this person
    Thank you very much
    (I've attached a screenshot of the functionality which I would like to enhance).

    I am doing client side validation and checking for atleast 3 chars (using jquery).
    don't know if you can set any defaults for empty string search or config entry to prevent blank search.
    <@dynamichtml std_page_end@>
        <$include super.std_page_end$>
    <$if pneNavigation$>
    <script type="text/javascript">
    $('#MiniSearchText').keyup(function(){
        if($(this).val().length < 3)
            $(this).css("color","#888888");
        else
            $(this).css("color","black");
    $('[name=MINISEARCHFORM]').removeAttr("onSubmit");
    $('[name=MINISEARCHFORM]').attr("onSubmit","return setMiniSearchQueryText1(this)");
    $("#MiniSearchText").next("a").removeAttr("href");
    $("#MiniSearchText").next("a").attr("href","javascript:setMiniSearchQueryText2(document.MINISEARCHFORM);");
    function setMiniSearchQueryText1(obj)
        var sMinTextValue = $("#MiniSearchText").val();
        if( sMinTextValue.length >= 3 )
            setMiniSearchQueryText(obj);
        else
            alert("Please enter a minimum of 3 chars to search");       
            $("#MiniSearchText").focus();
            return false;
    function setMiniSearchQueryText2(obj)
        var sMinTextValue = $("#MiniSearchText").val();
        if( sMinTextValue.length >= 3 )
            setMiniSearchQueryText(obj);
            document.MINISEARCHFORM.submit();
        else
            alert("Please enter a minimum of 3 chars to search");
            $("#MiniSearchText").focus();
    </script>
    <$endif$>
    <@end@>

  • Is it possible to open Account Search window in a new page

    Hi All,
    Is it possible to open Account Search window in a new page instead of displaying Account Search on Work center page.
    Any pointers will be helpful.
    Thanks,
    Udaya

    Have a look at the NavBar component and the generic workcenter component. If you are lucky, they utilize one common method for navigation. I would try to put some custom coding in there and use it to open the new link inside a popup.
    Never tried it before as the necessity never occured to me. Thus I can not help you any further. It is just an idea.
    Maybe you get some good results and can post them here
    cheers Carsten

  • BAdI for Account Search

    Hi All,
    I need a BADI in CRM 5.0 version for Account Search using EEWB fields.
    I found a BADi CRM_ACC_SEARCH and have created a implementation, but the badis is not getting triggered during the search...
    Let me know is there any other way to trigger the BADI or is there any means for using EEWB fields in Acc search.
    Thanx,
    Sivasankar

    Hi Sivasankar,
    There is a generic approach to identify all -classic- BAdIs called during program execution. You may use that approach to search for appropriate BAdI around Account Search:
    trx SE24
    CL_EXITHANDLER=>GET_INSTANCE method
      call method cl_exithandler=>get_class_name_by_interface
        exporting
          instance                      = instance
        importing
          class_name                    = class_name
        changing
          exit_name                     = exit_name
        exceptions
          no_reference                  = 1
          no_interface_reference        = 2
          no_exit_interface             = 3
          data_incons_in_exit_managem   = 4
          class_not_implement_interface = 5
          others                        = 6.
      case sy-subrc.
        when 1.                                "<<<<<<<<<<<<<<<<< your external break-point here: then check EXIT_NAME variable
          raise no_reference.
    Setting a break-point in this method will have program stop each time system checks if an BAdI implementation exists.
    Hope this will help you
    Best regards
    Walter

  • Enhance product search in ICSS.

    Hi Expert,
    In ICSS I want to enhance the product search in create service ticket. As a standard functionality you can search product by entering product id or description. I want to enhance that search by catalor id. Means by putting catalog id it should give the corresponding material. We have created ZCATALOG1 and ZCATALOG2 attributes in an index of trexadmin and customized the ICSS UI in such a way that catalog id will come below product id . There you can put the catalog id. Now question is how to assign the search text in ZCATALOG1. Any body has any clue how to it?. It will be really helpfull to me.

    Hi Tuhin,
        PFB the link this might help you.
    Re: Product custom search logic in Web UI
    Regards,
    Lakshmi.Y

  • Accounts search not working for only the specific user

    Hi friends,
      We have configured E.P 7.0 with CRM 5.0 and configured  CRM PCUI business package.
    We have role called <b>accounts abd products</b> in portal. So accounts can be searched in this role.
    Now our severity issue is for one of the super user,for ex su1,  accounts search is not working in portal  but the same is working in CRM GUI.
    for example if we search for an account 233445(or any other account) in portal its showing no data found but if we search with the same criteria data is displaying CRM GUI.
    We have checked with other 2 super ids. Both ends portal and gui search is  working fine.
    Am unable to figure out whats the cause of the issue as search is not working only for one user su1 .
    we have checked by restarting the server also to clear the memory cache.But still search is not working in portal.
    Could anyone of u please advice ASAP as this is severity issue.
    Thanks & Regards
    Sireesha.

    Hello,
    Go in debugging in the query method of your MAC to see why the BP is not selected (or deleted) before going to the read method.
    Regards,
    Fred

Maybe you are looking for