Enhance Lead Search Criteria

Dear Friends,
Our requirement is to bring Creation date(Created On) field in the search criteria of the Lead search(meaning we should be able to search the leads based on the creation date). For this we created an enhancement in the BSP WD Workbench. We used the Component BT108S_LEA and the view which we enhanced was BT108S_LEA/Search. We created a new attribute to the context node SEARCH, while creating we selected the BOL Entity as BTOrder and the BOL Attribute from BTOrderHeader->CreatedAt. It got added successfully to the context node, but when we try to access this field from the configuration it is not appearing. Please let us know what I am missing.

Hi,
i think you have missed the implementation of the BADI:
CRM_BADI_RF_Q1O_SEARCH
you will find it in enhancement spot ES_CRM_RF_Q1O_SEARCH.
Inside this BADI first call FM CRM_BSP_OIC_1O_SEARCH_FROM_RF.
This executes the standard search.
After this function call implement your own coding to filter the results using your attribute.
Best regards
Manfred

Similar Messages

  • Enhance B2B search criteria in order status screen.

    hi,
    we are tring to enhance search criteria in b2b sales order status screen. Need to add "Requested Delivery Date" to the search criteria for document. I was able to figure out some changes to be done in crmc_repdy. What is the accronym to be added for requested delivery date ?

    Hi Deepak,
    There is a order status screen in webshop(B2B). The search criteria includes certain parameters such as document type, creation date, status etc. I need to enhance it to accomodate one more search criteria i.e Requested Delivery Date. The XML file corresponding to the search criteria for B2B sales is generic-searchbackend-config.xml.
    Hope i made things a bit clear !
    Best regards,
    Rohit Sharma

  • Enhance Search Criteria in bt111s_oppt

    I need to enhance a search criteria as follows:
    The opportunities in the result list have to be shown only in case the user searching for them is a Sales team member on the opportunity in the result list.
    In case of BP search there is a nice class which can be used for the purpose of enhancing of the search criteria. How about opportunity. IS there a class or a BADI?

    Hi Max,
    Just to add to what Ajay has said, Please try below code:
    DATA: lr_query TYPE REF TO cl_crm_bol_dquery_service.
    lr_query ?= me->typed_context->search->collection_wrapper->get_current( ).
    lr_query->add_selection_param( EXPORTING iv_attr_name = 'SALES_TEAM_MEMBER '
                                                                                    iv_sign = 'I'
                                                                                    iv_option = 'EQ'
                                                                                    iv_low = sy-uname ).
    Regards,
    Bhushan

  • Add country to BT108S_LEA component search criteria

    Hi,
    This is of immediate requirement...
    I need to add for lead search, the attribute COUNTRY in the search criteria....
    I found the BOL entity as BTQLeadDoc...so I will find its structure and enhance it...
    But further I have no idea...I need to use a BADI I think...
    Please suggest...

    Hi,
    Please find my comments below.
    1) Add new field using APPEND to attribute structure CRMST_QUERY_LEA_BTIL of object BTQLeadDoc.
    2) Configure the new field in WebUI.
    3) Implement the BADI CRM_BADI_RF_Q1O_SEARCH
    4) Put the logic in the SEARCH method.
    Regards,
    Varma

  • Searching Criteria to find out the friends of friend

    Senior DBA'S
    i need to make database where i need to search the person from the current user. Current user can have many friends in his friend list but whom current user searching may be he is not a friend of current user and find out how current user known to that person. Like a friend's Chain.
    Suppose that i m Aman finding out "San". my friends are Abhi, johan, satish etc,
    further abhi's friend is "San" and
    Satish is friend of Mohan, Mohan further friend of Sanju and Sanju will be friend of "San"
    so "Aman" known to "San" by two ways one way by Abhi and 2nd way by Satish. Like link will be
    Aman -> Abhi -> San
    Aman -> Satish -> Mohan -> Sanju -> San
    which way i am asking that is used by linkedin (www.linkedin.com)
    So, Please tell me what best searching criteria will be used to achieve the target with performance because Records can be in billions.

    should be like that
    create table PALS (
    pal_id number primary key ,
    Name varchar2(100));
    drop table FRIENDS;
    create table FRIENDS(
    pal_id number ,
    friend_id number ,
    primary key(pal_id , friend_id),
    foreign key (pal_id) references PALS(pal_id),
    foreign key (friend_id) references PALS(pal_id)
    insert into pals values (1,'A');
    insert into pals values (2,'B');
    insert into pals values (3,'C');
    insert into pals values (4,'D');
    insert into pals values (5,'E');
    insert into pals values (6,'F');
    insert into pals values (7,'G');
    insert into friends values (1,2);
    insert into friends values (1,3);
    insert into friends values (2,5);
    insert into friends values (5,7);
    insert into friends values (3,4);
    insert into friends values (4,6);
    insert into friends values (6,7);
    commit;
    -- find leads to G
    with PF as (
    select p.pal_id, p.name, f.friend_id, pf.name friend
    from pals p
    join friends f on p.pal_id=f.pal_id
    join pals pf on pf.pal_id=f.friend_id)
    select level, pf.name, pf.friend
    from PF
    connect by prior pal_id = friend_id start with friend='G';
         LEVEL NAME       FRIEND  
             1 E          G         
             2 B          E         
             1 F          G         
             2 D          F         
             3 C          D          then you have to unwrap it in application.
    May be it is possible in SQL also.
    Edited by: Mark Malakanov (user11181920) on Jan 10, 2013 10:56 AM
    I've found how to do it
    with PF as (
    select p.pal_id, p.name, f.friend_id, pf.name friend
    from pals p
    join friends f on p.pal_id=f.pal_id
    join pals pf on pf.pal_id=f.friend_id),
    W as (
    select level, pf.name, pf.friend,
    CONNECT_BY_ROOT name R,
    SYS_CONNECT_BY_PATH(friend,' -> ') P,
    CONNECT_BY_ISLEAF IsLeaf
    from PF
    connect by pal_id = prior friend_id start with name='A'
    select R || P P from W where IsLeaf=1 and friend='G';
    P                                                                             
    A -> B -> E -> G                                                                
    A -> C -> D -> F -> G  Edited by: Mark Malakanov (user11181920) on Jan 10, 2013 11:28 AM
    Edited by: Mark Malakanov (user11181920) on Jan 10, 2013 11:33 AM
    So, Please tell me what best searching criteria will be used to achieve the target with performance because Records can be in billions.create index PALS_NAME on PALS(NAME);
    or use PAL_ID in
    connect by pal_id = prior friend_id start with PAL_ID=1
    Edited by: Mark Malakanov (user11181920) on Jan 10, 2013 11:42 AM
    Edited by: Mark Malakanov (user11181920) on Jan 10, 2013 11:44 AM

  • IC WebClient - new search criteria

    Hi all,
    can we add more attributes to act as a search criteria in BOL <b>BuilHeaderSearch</b>? How can it be done?
    I am customizing the view BuPaSearchB2B.htm with one new search criteria for customers.
    Regards.

    Yes, for sure! In the BAdI you can find the methods GET_CUST_CLASSNAME_PROPOSAL and GET_APPL_MODEL_CLASSNAME. You need to implement both methods.
    My implementation for GET_CUST_CLASSNAME_PROPOSAL (you have to define the prefix for your classes - in my case it's /GKV/RM_CL...):
      RV_PROPOSAL = IV_CLASSNAME.
      concatenate '/GKV/RM' RV_PROPOSAL into RV_PROPOSAL.
    My implementation for GET_APPL_MODEL_CLASSNAME:
      RV_RESULT = 'CL_BSP_WD_APPL_MODEL_DDIC'.
    You can enhance this class by building a subclass of 'CL_BSP_WD_APPL_MODEL_DDIC', but i did not do this.
    Have you implemented both classes? I also had an error though i just implemented one method.
    Mathias

  • How to include a field in the search criteria.

    Hi,
    In B2B, there is a requirement In Account Details.jsp ,  to add a new field "Your reference". this field should haev the value same as  from the order creation page:Your referene field.  This field should not be included in the result list. This should be used as a search criteria. I have added that YOUR Reference Field in Account Details.JSP,.Now i need use it for search criteria.C
    Could you kindly suggest me how this field can be included in the search critertia in Funciton Module "Zb2b_Account_Details.
    Thanks & Regards,
    Sujitha. S
    Edited by: Sujisruthy on Jun 16, 2010 1:23 PM

    Hi,
    Please see documentation of enhancement MM06E005 (transaction SMOD).          
    Userexit EXIT_SAPMM06E_016 is a component of enhancement MM06E005.            
    With that enhancement, you can                                                
      -   Maintain/supply your own customer fields                                
      -   Update your own customer-specific tables                                
    You cannot:                                                                   
      -   Change standard fields                                                  
      -   Change data that depends on the document header in the items            
      -   Change data that depends on an item in the document header                                                                               
    Please have a look at Business Add-In (BAdI) ME_PROCESS_PO_CUST.              
    Regards,
    Edit

  • In service order Search page,In Service Order Search criteria, In Status value drop down i have to show only user status?

    Hi Team,
    My requirement is In service order Search page,In Service Order Search criteria, In Status value drop down i have to show only user status values only? how to do it..now in my status drop down values system status values also displayed ,i want only user status values only i have to show...how to do it?
    Thanks
    Kalpana

    Hi Kalpana
    As Standard there are 2 separate search fields for Status.
    One for User Status
    One for System Status
    Are you sure that the other Status value you require are not for other Service Transactions different to the one you are wanting to search on?
    If you need to make a only the User Status for  a given selected Transaction Type, then you would need to make an enhancement to that Component
    Regards
    Arden

  • Issue with clearing a grayed out search criteria field

    Hi,
    I have grayed out a field ABC for its default  value XYZ in the search criteria of lead search...
    But when I click the CLEAR button, it clears the XYZ value of field ABC..
    I don't want the value of ABC to be cleared...
    Do I need to redefine the CLEAR method?
    How do I achieve this purpose?
    Thanks
    Madhukar

    Hi Madhukar,
    go to your eh_onclear event place the break point check the code where exactly parameters values are clearing. copy the standard code redefine the method eh_onclear past the code in your redefine method and change the logic where exactly the parameters are clearing as a standard.
    ex as the above code:
    WHILE lr_param IS BOUND.
         lr_param->get_properties( IMPORTING es_attributes = ls_param ).
    in ls_param you will get ATTR_NAME as ur field and low,high sign option values
    check this ls_param-ATTR_NAME ne 'urfield'. clear the content else check the low and high value of the remaining field values.
         IF ( ls_param-low  IS NOT INITIAL ) OR
            ( ls_param-high IS NOT INITIAL ).
           CLEAR: ls_param-low, ls_param-high.
           lr_param->set_properties( EXPORTING is_attributes = ls_param ).
         ENDIF.
         lr_param = lr_iterator->get_next( ).
       ENDWHILE.
    if you want more info share me your component and view name.
    Thanks & Regards,
    Srinivas.

  • Clearing only a few search criteria fields

    Hi,
    I am defaulting the business partner and start date fields of the search criteria of the dealer portal lead search..
    But when I click on clear button , now it clears the result set and not the search criteria because I commented the below code in EH_ONCLEAR method
    * clear search criteria
    *  lt_adjustments = me->get_adjustments( ).
    *  lr_qs->clear_selection_param_values( lt_adjustments ).
    But now I want all the search criteria fields to be cleared when I click clear button except for business partner...
    If I am able to manipulate the code of clear_selection_param_values( lt_adjustments ) method, I will be able to achieve it..
    But the clear_selection_params_values is a standard method...How do I manipulate to not clear the business partner??
    What is the procedure to achieve it?
    Thanks
    Madhukar

    Hi,
    Check this code.
      data: lv_viewname type string,
            lr_view_ctrl type ref to cl_crm_srqm_common_sr_cntrl,
            lr_search_cn type ref to CL_BSP_WD_CONTEXT_NODE_ASP.
    lv_viewname = me->get_viewarea_content( if_crm_srqm_uiu_const=>gc_viewarea_search ).
      ASSERT lv_viewname IS NOT INITIAL.
      lr_view_ctrl ?= me->get_subcontroller_by_viewname( lv_viewname ).
      lr_search_cn ?= lr_view_ctrl->get_search_context_node( ).
      lr_query_service ?= lr_search_cn->collection_wrapper->get_current( ).
      lr_coll ?=  lr_query_service->get_selection_params( ).
      CHECK lr_coll IS BOUND.
      lr_iterator ?= lr_coll->get_iterator( ).
      CHECK lr_iterator IS BOUND.
      lr_entity ?= lr_iterator->get_first( ).
      WHILE  lr_entity IS BOUND.
        lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'ATTR_NAME'
                                          IMPORTING ev_result = lv_attr_name ).
        CASE lv_attr_name.
          WHEN 'PARTNER'.
            lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'LOW'
                                             IMPORTING ev_result = lv_partner ).
    EXIT.
       ENDCASE.
        lr_entity ?= lr_iterator->get_next( ).
      ENDWHILE.
    lr_search_cn->if_bsp_model~reset_errors( ).
      lr_view_ctrl->clear_search( ).
    lr_query_service-->ADD_SELECTION_PARAM( iv_attr_name = 'PARTNER'
                                                     iv_sign      = 'I'
                                                     iv_option    = 'EQ'
                                                     iv_low       = LV_PARTNER ).
    Regards,
    Deepika

  • How to add search criteria options in CRM UI?

    Dear all,
    we`ve recently updated to SolMan 7.1 SPS10 (source was SPS04). Now I`m struggling a bit with adding
    an additional search criteria to the Incident Management Search View.
    I already considered OSS Note 1918128 (same Title as this thread) and I was able to check this in our - not yet updated - Productive System
    where this has been implemented already.
    Adding the Object /AICRM/PROJECT_ID to the customizing table BTQSRVREQ in SPRO with some Operators didn`t make the trick
    See attached Screenshot.
    Can you please assist me how I can add an additional Search Criteria to the Icident Management Search context (selectable/Operators etc.?).
    Reason behind is - we`d like search for open / closed incident for certain Projects as filter criteria.
    In Addition it would be also great to know - How the Incident Management Standard View / Table can be extended
    by the column "Project ID".
    The Project ID itsself is already linked a new created Icident - hence I`m able check the Project assignment by opening
    a specific Icident and personalize the view.
    regards and many thx in advance
    Benjamin

    Hi Benjamin,
    Enhancing the one order framework search is a common topic available on a lot of threads and blogs, hence I will add a link here :
    SAP CRM Technical Tutorials by Naval Bhatt.: How to enhance Opportunity search for a custom date type
    You can refer to this blog for help but lastly it's all debugging and trying that will help you achieve this in your scenario
    /Hasan

  • Add value to search criteria view

    Hello gurus,
    I use SAP CRM 7.0. I logon to CRM Web UI with salespro business role, then I go to Sales cycle -> Sales Orders. Search sales orders screen appears. There some values in the search creteria list: Sales order ID, Sold-to party, External reference, etc. But there is no Item category criteria there. I have to add Item category into the list of the search creteria so that I could find orders by Item category.
    Could you please suggest me with an appropriate solution for adding Item category value to the search criteria?
    Regards,
    Alex K Goodman

    Hi,
    To add a new field to search criteria, go to structure CRMST_QUERY_SLSORD_BTIL and append structure your new field.
    Go to component BT115S_SLSO view SlsOrdSQ and add the custom field to configuration.
    Implement BADI  CRM_BADI_RF_Q10_SEARCH with appropriate filter combinations.
    Refer these threads,
    Enhance product search
    BADI Implementation Error (BADI: CRM_BADI_RF_Q1O_SEARCH)
    Regards,
    Arun

  • Add search criteria field to ERPQOrder

    I would like to add additional search criteria fields to the Dynamic Query Object ERPQOrder. I want to enhance the class CL_CRM_QORDER_RUN_ERPIL for the purpose. Is there a way to accomplish this requirement?

    Following steps:
    In the Append the structure CRMST_QORDER_ERPIL add the new fields.
    Update the design layer by adding the new fields to the UI object type ERP and reference design object ERPQORDER in view cluster CRMVC_SDESIGN_G.
    In the view cluster CRMVC_DQ update if the new fields have wild card allowed or not.
    Using the BSP component workbench, enhance the component view ERP_S/ErpOrdSQ
    Using the UI configuration tool add the new search criteria fields.
    Enhance the class method CL_CRM_QORDER_RUN_ERPIL~PREPARE_SELECTION_PARAMETERS to include additional filter criteria.

  • ICWC: Custom Fieds in Search Criteria..

    Hi All,
    I have a requirement of inserting custom fields into the BP search view..
    when i searched in the BOL Layer ( BuilHeaderSearch ) Attribute structure I can see some standard fields available.. I have to enhance this structure with some custom fields for performing search with those custom fields as well. but i know if i simply add these fields to the structure will not perform the actual search!.
    Now, my question is simple: how can we perform the search for these fields..
    is there any customization table or something else maintained for the search criteria of a search entity?.
    or else is there any method for enhancing the standard BOL Search entity?..
    or else any other way to achieve this?..
    Please Help!..
    Thanks In Advance,
    sudeep v d...

    Hi All,
    I have a requirement of inserting custom fields into the BP search view..
    when i searched in the BOL Layer ( BuilHeaderSearch ) Attribute structure I can see some standard fields available.. I have to enhance this structure with some custom fields for performing search with those custom fields as well. but i know if i simply add these fields to the structure will not perform the actual search!.
    Now, my question is simple: how can we perform the search for these fields..
    is there any customization table or something else maintained for the search criteria of a search entity?.
    or else is there any method for enhancing the standard BOL Search entity?..
    or else any other way to achieve this?..
    Please Help!..
    Thanks In Advance,
    sudeep v d...

  • Querying characteristics in Enhanced Material Search

    Hi Glen,
    I'm glad you are interested in the Enhanced Material Search. I am the solution manager responsible for this function. Your requirement is well known, but so far I don't see a simple, standard worthy solution to allow a search for (hundreds or even thousants of) characteristic values while keeping the user interface simple when selecting or displaying the desired value(s).
    Maybe you have an idea for an appropriate customer specific solution that fits your own requirements. Therefore you can use some Business Add-Ins to create customer specific search criteria (see my blog /people/ingo.woesner/blog/2009/03/05/enhanced-material-search-with-creation--part-4-how-to-create-new-search-criteria-wo-modification). Using the badi described therein you could create a new search criteria "Classicification Characteristics " and select specific characteristics. Of course you have to add all characteristics to the SES business object BUS1001006 before, as you have mentioned.
    More Business Add-ins for various topics are mentioned in my other blog http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12999. [original link is broken] [original link is broken] [original link is broken]
    I hope this brings you a step further. In case you need more guidance, you can give me a call on +49 6227 771737, and we will then find a time for a webinar/conference call. I will try to get a developer invited as well.
    Best regards,
    Ingo
    Dr. Ingo Woesner
    Solution Manager
    IS Trading Industries
    Wholesale Distribution
    SAP AG
    Neue Bahnhostrasse 21
    66386 St. Ingbert, Germany
    T +49 6227 7-71737
    F +49 6227 78-28405
    M +49 173 309 0119
    P +49 6227 7-66261

    Thanks for your response, Ingo.
    Whilst I really like the current design for simple requirements (extend a structure, change some config and, voila!, you have new search criteria), when the requirements become more complicated, it would be nice to have more flexibility to dynamically influence which index is used to do the search. The results of the search could then just feed into the results view as per normal.
    Here are a few ideas which are based on my own situation but might be suitable and/or scalable to other situations. I haven't put too much thought into them so they may or may not be feasible.
    As mentioned in my original post, we only have a small number of variant classes for which our material variants are created. My thought it that we could create a separate index and business object class for each variant class (all the indexes would be very similar to BUS1001006 but have their own extra attributes for their own characteristics) and a dropdown field on the search view that allows you to choose the variant class via which you want to search. Changing the selection in the dropdown field would change the available search fields in the view and when the search is executed the index that corresponds to the chosen variant class would used for the search.
    I'm happy to discuss this further to refine the requirements and/or design.
    Regards
    Glen

Maybe you are looking for

  • Jscript cross scripting with BSP's

    Hi BSP consultants, I have one BSP embedded in another BSP (actually done using the SEM Web Interface Builder which is a front end for building BSP's in SAP SEM). All I want to do is access the HTML code in the embedded BSP from the parent web page (

  • KEDR deletion flag

    Dear experts, I come to you with a question about the deletion flag which is possible to set in KEDR (characteristics derivation: display rule values): If I check the SAP help it is said that: "Deletion indicator" With this indicator, you can limit t

  • Printing problems with Leopard

    Using Macbook pro and loaded Leopard. Using Airpot network and Xerox Phaser 4500DT. With Leopard I can't print documents - the printer goes into self-test mode when I send a Word/Excel doc and then freezes. Document needs to be deleted from printer q

  • Is there anyway to start this day over again like Windows allows?  Help!!

    I tried to add an new email account for .Mac to Mail on my computer. Everything with my orginal email got totally messed up. It started with losing all my rules I had set up with orginal account so i can no longer can see those. then I lost all my se

  • KT4 Ultra and AMD XP2600+

    I' m using an KT4Ultra board with AMD XP2600+. BISO Version 1.3. FSB is set to 133MHz and cpu-factor to auto. Bios show XP2000+. The MSI CPU list recommanded FSB 133MHz and CPU factor 16. I tried to set these but CPU-factor is only possible to 15 in