Skip to Content
avatar image
Former Member

How to pass the default value to search help selection screen


I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.

Could you please let me know how can we do this?

When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this default value based on condition.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Dec 15, 2009 at 06:08 AM

    Hi All

    Could you please answer my question.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Radhika

      It seems your answer is wrt the search criteria but my requrement is related to the search help.

      When we press F4 we will get a popup where in we will have few input parameters(input fields)

      to enter in this input fields i need to push a default value (dynamic value not the constant value).

      Component: BT130I_OPPT

      View : BT130I_OPPT/ItemDetails

      Could you please suggest me..



  • avatar image
    Former Member
    Dec 18, 2009 at 07:50 AM


    Have you already checked this Note:

    [Note 1381285 - Prefilling of search attr. in the UI (eg. Contact search)|]

    This explains how to default a value in a search.

    Best regards


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Have you tried search help exit.

      You may have to find a way to read Web UI data from search help exit. Try SET/GET FMs or static methods.

  • Apr 01, 2010 at 11:31 AM


    This depends on whether you are using search help objects or calling BSP components as popup. BSP components meant to act as search helps usually accept data via inbound plugs in their interface window controller. In case of search help objects, go to se11 and see what input fields it is accepting and you have to include them in your "inmap" parameter.


    Arun Prakash

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Notice this part of your code.

      CLEAR ls_map.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr = 'SERVICE_LINE'.
      APPEND ls_map TO: lt_inmap.

      You are passing the same attribute of your context node "zzattr_i_i" to both "ATTRIBUTE" and "SERVICE_LINE". That's why, if this field has any values it is copied to both the fields in the search help. Instead of struct.zzattr_i_1, you have to pass a different attribute from the same context node that you wish to pass to the f4 screen.


      Arun Prakash

  • avatar image
    Former Member
    Aug 26, 2015 at 08:11 AM

           lv_title        TYPE string,
           lv_attribute    TYPE string,
           lv_model        TYPE string,
           lv_event_string TYPE string.
         DATA lr_cnode         TYPE REF TO cl_bsp_wd_context_node.
         DATA lr_current       TYPE REF TO if_bol_bo_property_access.
         DATA lr_dquery        TYPE REF TO cl_crm_bol_dquery_service.
         DATA lr_col           TYPE REF TO if_bol_bo_col.

           iv_event_string = lv_event_string
           ev_model_name   = lv_model
           ev_index      = gv_index
           ev_attribute    = lv_attribute ).

         lv_title = 'XXXXXX'.
         IF ischevaluehelp_popup IS NOT BOUND.
    *    lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/IB_SEARCH' ).

           ischevaluehelp_popup = comp_controller->window_manager->create_popup(
           iv_interface_view_name = 'MainWindow'
           iv_usage_name = 'CUISCHEValueHelp'
           iv_title = lv_title ).

         ischevaluehelp_popup->set_on_close_event( iv_view = me iv_event_name = 'SEL_ISCHE' ).
         ischevaluehelp_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
         ischevaluehelp_popup->open( ).


         "Set Default Value To the Search Help Component
         lr_cnode = ischevaluehelp_popup->get_context_node( iv_cnode_name = 'BTQACT' ).
         CHECK lr_cnode IS BOUND.

         lr_dquery ?= lr_cnode->collection_wrapper->get_current( ).
         CHECK lr_dquery IS BOUND.

         lr_dquery->add_selection_param( iv_attr_name = 'PROCESS_TYPE' iv_low = 'ZSC1' iv_sign = 'I' iv_option = 'EQ' ).

    Add comment
    10|10000 characters needed characters exceeded