Skip to Content
author's profile photo Former Member
Former Member

How to pass the default value to search help selection screen

Hi

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.

Regards

Anil

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2009 at 06:08 AM

    Hi All

    Could you please answer my question.

    Add a 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 values..now 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..

      Regards

      Anil

  • Posted on Dec 18, 2009 at 07:50 AM

    Hello!

    Have you already checked this Note:

    [Note 1381285 - Prefilling of search attr. in the UI (eg. Contact search)|https://service.sap.com/sap/support/notes/1381285]

    This explains how to default a value in a search.

    Best regards

    Arno

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 01, 2010 at 11:31 AM

    Hi,

    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.

    Regards,

    Arun Prakash

    Add a 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.

      Regards,

      Arun Prakash

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2015 at 08:11 AM

    DATA:
    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.

    cl_chtmlb_config_utility=>outbound_plug_event_info(
    EXPORTING
    iv_event_string = lv_event_string
    IMPORTING
    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 ).
    ENDIF.

    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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.