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

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

  • Help needed in enhancing Search attribute Created at - Parameters

    Hi All,
    I am facing a strange issue in enhancing search criteria maintained for sales contracts search.
    I have brought in CREATED AT Field. By default, it is diplaying only IS Option in WEB UI. as per the req, we should display Contains, Does not contain, is on or earlier than etc.
    for this we identified the Maintenance view table, CRMC_DQ_ATTROP and selected the needed values by ticking the needed options. Now the parameters displayed on UI are coming as expected but Search is not working with these parameters.
    Any idea on this will be of great help.
    Thanks,
    udaya

    Hi,
    I do not have the time to research this completely, but I had a short look into the class you posted.
    In the GET_DYNAMIC_QUERY_RESULT there is a call to CL_CRM_QCOD_HELPER->PREPROCESS( )
    A little bit lower there are blocks marked by comments for the single searches that are handled by this class. I had a look into the campaign_serach() method. There if you scroll a little bit down (around line 123) they set all search parameters to SIGN = 'I' OPTION = 'EQ'. This is done several times below as well.
    Set a breakpoint in the proprocess() method and check which of the blocks is called and how they handle your search criteria.
    Hope it helps.
    cheers Carsten

  • 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

  • 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

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

  • 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

  • DDLB for search criteria

    Hi,
    I have added a search criterion 'IBU' for searching oppurtunities.Now when i select the search criterion IBU i want a dropdown for it to select the value of IBU.The value for search criteria appears in the field VALUE1 of context node search  which is in the component BT111S_OPPT/Search .How do i code for getting a dropdown for this?
    Thanks in advance:)
    Regards
    Shilpi

    Hi Shilpi,
    This is done in the method GET_DQUERY_VALUEHELPS (redefine) of the context node (in your case: ZL_BT111S_OPPT_SEARCH_CN00)
    METHOD get_dquery_valuehelps.
      DATA: lt_ddlb         TYPE bsp_wd_dropdown_table.
      DATA: ls_ddlb         LIKE LINE OF lt_ddlb.
      DATA: ls_string_ddlb  TYPE crms_thtmlb_search_ddlb_nvp.
      FIELD-SYMBOLS: <rs_result> LIKE LINE OF rt_result.
      CONSTANTS lc_string_empty TYPE crms_thtmlb_search_ddlb_nvp VALUE IS INITIAL.
      CALL METHOD super->get_dquery_valuehelps
        RECEIVING
          rt_result = rt_result.
      LOOP AT rt_result ASSIGNING <rs_result>.
        CASE <rs_result>-field.
          WHEN 'XXX'.
            CALL METHOD cl_crm_uiu_bp_cust_get=>get_val_for_xxx
              EXPORTING
                iv_nofilter = abap_true
              RECEIVING
                rt_value    = lt_ddlb.
            CLEAR <rs_result>-ddlb_options.
            SORT lt_ddlb BY value ASCENDING.
            APPEND lc_string_empty TO <rs_result>-ddlb_options.
            LOOP AT lt_ddlb INTO ls_ddlb.
              ls_string_ddlb-key   = ls_ddlb-key.
              ls_string_ddlb-value = ls_ddlb-value.
              APPEND ls_string_ddlb TO <rs_result>-ddlb_options .
            ENDLOOP.
        ENDCASE.
      ENDLOOP.
    ENDMETHOD.
    Important lines:
    - WHEN 'XXX'.
    => XXX is the your IBU field name
    - cl_crm_uiu_bp_cust_get=>get_val_for_xxx
    => to retrieve possible values
    Regards,
    Fabian

  • How can we find search criteria for Mask and Namedsearch

    Hi Gurus,
      I got a doubt while working with the concept of mask and namedsearch. I defined a search criteria and stored the result under a mask or namedsearch. After some time if i call the mask/namedsearch where can we see the search criteria. Can anybody make me clear about this.
    Thanks
    Ravi

    Hi Ravi,
    You can see the search criteria for Named Search. Suppose you search for a field in free form search and then include all these records in your Named Search. Now in order to see the search criteria and enhance it. You need to go to>Menu bar>Search>Restore Named Search>Press Named Search(Name Given By you). Now you will able to see in free form search or any other search criteria which you included in for your Named Search.
    Regards,
    Mandeep Saini

  • Add a field in the Search Criteria in POWL for Invoice

    Hi,
    I am trying to add a field  or change Selection Parameters in Search criteria POWL for Invoice. But for SC, PO and Confirmation I can do it from DB Criteria. But for Invoice  I implemented these BADI's  and its not triggering.
    /SAPSRM/BD_POWL_CHNG_CUF_SRCH
    /SAPSRM/BD_POWL_CHNG_SELCRIT
    Any idea why its not trigeering? Am I missing anything?  I appreciate your help.
    Thanks,
    Carl
    Edited by: Shears80 on Sep 28, 2011 9:40 PM

    Hi Cral ,
    Add a field in the Search Criteria in POWL for Invoice
    append the custom attributes in this structure
    /SAPSRM/S_SEARCH_RESULT_INV
    goto tcode  sm30  /SAPSRM/V_SRC_CR enter the filed for  BO/ BUS2121(select the business object based on the requirement)
    the creation type must  be suitable  for the type
    criterion name : zzfield
    criterion name : parameter
    structure : /SAPSRM/S_SEARCH_RESULT_INV
    field name : zzfield
    this are the feeder class for invoice .
    /SAPSRM/CL_CLL_POWLT_INV_PROF
    /SAPSRM/CL_CLL_POWLT_INV
    /SAPSRM/CL_CLL_POWLT_INV_S
    based on the powl query you need to do the enhancement in the feeder class .
    Thanks & Regards
    Pradeep Kumar Dondeti

Maybe you are looking for