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

Similar Messages

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

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

  • Clearing only a few fields in the selection-screen

    Hi Folks,
    I am having the following fields in the selection screen.
    werks.
    matnr
    quantity
    filename like rlgrap-file.
    First time the user enters some values and executes it and comes back to the selection-screen.At this point I want <b>only matnr and quantity</b> fields in the selection-screen to be cleared.
    If I use FREE MEMORY it is clearing all the fields.I want only the above mentioned fields.I don't want to set the data in the in werks as default in the program.Kindly let me know how to achieve this.
    Thanks,
    K.Kiran.

    Hi Kiran,
    You can write your code in AT-SELECTION SCREEN OUTPUT.
    So when ever selection screen called you will have your variables you want cleared.
    USe LOOP AT SCREEN.. there.
    Regards,
    Atish

  • Database search criteria: field empty / not empty

    Greetings,
    How can I define a search that says "Find all records where field X is empty," or "where field X is NOT empty." I have tried using these arithmetic operators:
    "=''"
    (quote equal single-quote single-quote quote)
    (quote less-than greater-than single-quote single-quote quote)
    but they don't work.
    Somehow I was able to do this in AW5 (in OS9), but when I go to edit those searches in AW6, all the fields are empty.
    Thanks!
    DM
    iBook G3 Dual USB (white)   Mac OS X (10.3.9)  

    Hello
    Yvan says thank you !
    My response was for those trying to use the "Layout > Find" tool.
    I made an error because the US operator is not "isempty" but "isblank".
    For those wishing to use "Organize > Match Records", they may use the condition defined by the formula:
    isblank('field_X')
    Yvan KOENIG (from FRANCE mercredi 14 décembre 2005 9:53:12)

  • Search criteria drop down not working in CRM 7.0 Web UI for few users.

    Hi Gurus,
    i have come across problem in sap CRM 7.0 web ui,
    it goes here....
    when a user opens a webui page and goes to "account management" work center page under "search" work center link group... he selects "accounts"(or contacts or account plan)... there in search criteria fields..(account id,role,country etc ) drop down list is not working for him...he can only see only which is maintained as default but if wants to change it by drop down list selection it is not possible...for me it is working ..can u please suggest what is missing in his case..?
    if it is authorization issue please tell which object should i check..?
    Thanks,
    gaurav

    Hi,
    Please check if the user is assigned to a Business Partner.If not then assign the User to a Business Partner and check.
    Regards.
    Deepak Ramchandran.

  • OVS - how to change the position of the fields in the OVS search criteria

    Hi,
    I have an OVS search screen where 4 search criterias are  there.Based on the search criteria , the values will be papulated in the OVS screen.
    Now I have to change the position of the fields in the search criteria.Means if the Maximum field (one of the search criteria) is in the first position,I need to put it in the last position.I have ro change the position of the search criteria field and not the result fields.
    Please suggest me how to do that.
    Regards
    -Sandip

    Hi Sandeep,
                      please go through this article for customizing Value Help:
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113d]
    Thanks and Regards

  • Create several search filters fields in SOCO SRM 7.0

    Hello
    I would like add several search criterial fields in SOCO but i not find where do it. (in the first step)
    Someone can help me? Someone know the class-method where do it?
    Thank very much
    Alfie

    Maria
    EDIT Action in POWL is disabled for performance reasons. It is possible to activate that button there.
    Regarding EDIT button in SC Detail, this function is a standard behaviour where SRM allows the creator/requestor to pull the cart back from approval by using EDIT button.
    If you do not want the users to use this button, Go ahead and Disable the button by Class and Method. Make sure you disable the action EDIT only when USER = (CREATOR or REQUESTOR) AND Status of Cart = Awaiting Approval. If you disable it for all users, Approvers will have tough time apprving the carts
    Regards
    Virender Singh

  • How to Dynamically add Search Criteria in Advance Search Region.

    Hi All,
    I want to understand how can we add Search Criteria dynamically in the Advance Search Region.
    The Requirement is to add 4 additional search criteria for an org_id in a multi org structure. For other business those fields should not be visible.
    I did try this with the form personalization but could not Show/hide the additional search criteria programatically for the business as we can only see 4 search criteria at the time of page load and other criteria comes in the drop down list to add which can not be show/hide after page load.
    I thought of a solution to add search criterias dynamically for my org through extending controller.
    I found the OAAdvanceSearchBean (advance search Region in controller) object for my Advance Search but could you tell me how can I add the Criteria Row in that Advance Search (createWebBean function) and then add the item in criteria Row dynamically.
    Also please tell me how we can increase the showed criteria from default 4 to more, setDisplayedCriteriaCount(int) is not allowed and it is not working also.
    Thanks.
    Regards,
    Ashish Bansal

    Hi,
    As Lars said The "Search Option Set" and the "Search Component Set" offer you quite some flexibility.
    You can configure both of these component to customize your search.
    Once you did it, you can create a new basic search iview and set these components.
    On the other hand, you also customize the layout use to show result of search.
    Dont'f forget that you need to configure Trex and create an index.
    For instance, I configured the search criteria, the system only asked me some metadatas (created by us,whose value are dependents). Each time that you upload a document you set these attributes.
    Then when you want to search, appear a screen with these values
    Country :
    City:
    search field:
    Patricio.

  • New custom field in the POWL search criteria

    Hi experts,
    My requirement is to add a new custom field in the search criteria (Parameters)
    In my Easy shopping card POWL. I need to add custom fields in search criteria.
    I tried appending my custom fields in structure /SAPSRM/S_SEARCHFIELDS
    And customized the POWL type DB criteria SAPSRM_FEEDER_SC by adding the custom field
    But still the newly added search criteria is not displaying in the
    Query   SAPSRM_E_CHECKSTATUS_01 in powl_query transaction.
    Kindly help me to solve this issue
    Regards
    Chinnaiya P

    Hello Konstantin,
    thanks for the reply...
    I tried to add an extra Field(Company code) in POWL Search. the problem is the Field Company code doesnt get updated in BBP_PDHSC and BBP_PDISC with the value used in while creating SC.
    I only get the Company code value in table BBP_PDBEI for SC.
    So when i give any value in POWL search for company code no data is shown even though the SC was created in the inputted Company code.
    so how to go about adding CC as search criteria in POWL so that the resultant output is filtered on the basis of CC value.
    Thanks
    Rajat

  • 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

  • Search criteria for standard field

    Hi All,
    we have a requirement in loyalty management employee search screen we couldn't find a custom field called occupation, But in create employee screen it's come. please suggest solution for add this standard field in search criteria.
    Regards
    Praveen.

    Hi praveen,
    I am providing some screen shots
    click on new entries after that will get below screen some times check box checked so only i told to check if it is unchecked is not an issue so  u need to check in structure level.

  • Restrict No: of input Search Criteria to 1 dropdown field

    Dear Experts,
    We have a custom BP_Search AB where we have 4 fields. We added these 4 fields in the UI Configuration.
    Now on the search screen, these appear as 4 lines. However, our requirement is:
    We just need to show 1 search criteria as dropdown box with the 4 available fields i.e we do not want the "Copy Line" and "Remove Line" functionality as in Standard Account Search.
    Similar requirement was posted in thread :Removing + and - icons from AdvancedSearchHelp pages but the solution suggested does not serve our purpose and modification of suggested standard classes would affect searches everywhere but we want the + and - to be removed only for our custom AB.
    How do we go about achieving this?
    Regards
    Nisha

    Hi Hariharan,
    Please use the Mark_tab parameter of the FM F4IF_INT_TABLE_VALUE_REQUEST as below.
    data: MARK_TAB TYPE DDSHMARKS.
    data: mark like line of mark_tab.
    mark = '2'.
    append mark to MARK_TAB.
    *-- Call fucntion for search help
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = l_retfld
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = l_dynfld
    MULTIPLE_CHOICE = 'X'
    callback_program = sy-repid
    MARK_TAB = mark_tab
    TABLES
    value_tab = l_i_value
    field_tab = l_i_fields
    return_tab = l_i_return
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    OTHERS = 3.
    IF sy-subrc 0.
    MESSAGE i000
    WITH 'No search help found'(090) .
    ENDIF.
    Regards,
    Amit.

  • Input Search criteria gets cleared on searching in Search Region

    In a pageA I have a search region, this search region has
    2 date fields.
    I have a return link on pageA that directs to pageB. Another button on pageB directs to pageA. For every page redirection, we have retainAM='Y', due to this the search criterial in pageA still remains if we do a navigation like pageA->pageB->pageA
    to clear the search criteria for every page reload of pageA, I am setting the value of
    datefield to null in the processrequest() of pageA.
    Now the wierd thing that is happening is though the search results are appearing fine,
    the data entered in date fields is getting disappeared on doing a search.
    in processformrequest, when I do a pagecontext.getparameter(datefieldID) this returns a value but
    doing a webBean.findindexchildrecursive(dateBean).getValue returns null.
    any idea what the issue could be.
    Thanks,
    Kalyan.
    Message was edited by:
    Naga Kalyan

    Is it a query region or a custom search region? What is the code written to null the date fields?
    Is there any flow where the values are retained?
    --Shiv                                                                                                                                                                                                                                                                                                                           

  • Search: standard field as search criteria

    Hello,
    I have problem because of a search component within the webclient ui framework (background SAP Solution Manager).
    Background:
    There is a ui search component to search for change documents (which are plain entries within the table crmd_orderadm_h). I successfully have redefined the corresponding ui component. Now there is, let me say, a challenge.
    The change document among other things consists of an assignment block for approval management. But dont think about approval management so long. It could be any other assignment block. I have to integrate one standard field of that assignment block as a search criteria to the search component, to search for change documents.
    1. At first I navigated to the ui component of that assignment block and searched for the attribute structure of the right context node, where the attribute is placed.
    2. Second, I navigated to the ui component of the search and opened the attribute structure of the search context node.
    3. To that attribute structure I have appended the attribute with the corresponding data element from step 1.
    Now the attribute is available as a search criteria within the search component. But there are two open problems.
    First problem:
    The attribute has a special value range, that is not available at the moment. The search criteria currently only is a plain text field. Do I have to implement the getter- and setter-methods (respectively the v-getter) to Show up the possible search values in an drop-down list?
    Second problem:
    The name of the attribute is included within the search, but the search ignores it and I get an query error ("there is a problem with the query"). I have seen the attribute name at a breakpoint in CL_AI_CRM_IM_SAPDATA_SEARCH=>IF_CRM_RF_Q1O_SEARCH~SEARCH. But deeper within the code there is an query error raising up. Did I forget some customizing?
    Can anyone help me?
    best regards,
    raoul

    Hi Eli,
    Please go to the web ui configuration and search reason feild is available for the config view. If it is available please move from hidden to visible. If it is not available you can add using development or AET to add that feild in the view.
    Regards,
    karthik J

Maybe you are looking for

  • How to load data from one Infocube to another request by request using DTP

    Hi All, I have a scenario where we are maintaining backup Infocube B for Infocube A.  User loads data from a flat file many times a day in different requests.  We need to maintain backup of the Infocube A on weekly basis.  i.e data to be refreshed wi

  • Comes With Music. After Hard Reset.

    I had to hard reset my phone earlier because the music player stuffed up... i just put all my music back on my phone but now its saying "Unable to play - License invalid" anyone know how to fix it?

  • 2 JScrollPanes and 1 JTable

    I have searched for about an hour and I can't find anything related to this. I apologize in advance if this is a repeat post. I have a JTable that is being displayed in a JScrollPane that is nestled into a JFrame. I am attempting to build another Scr

  • Windows speed on Mac

    Hi ! Can someone let me know if Windows XP installed in IMAC 20 core duo 2.16 GHz with BootCamp or Parallels is faster than XP installed in PC 3GHz. Thanks G5 1.6GHz   Mac OS X (10.4.8)  

  • [SOLVED] Configure keyboard with HAL

    Hi I'm using HAL with the new xorg-server 1.6 and since the upgrade, the keyboard delay before starting to repeat a keypress has become longer.  I'm not sure what caused this, but now I'd like to know how I configure this with HAL. I configured the m