Handling the search help exporting parameters.

Hi all,
I am using a search help for an input field.My requirement is that on the selection of a row in the displayed result for search help two other fields needs to be populated in the UI , which actually are the exporting parametrs of the search help.I mean to say how to handle the exporting parameters of a search help so as to populate other input fields in the UI.

This is possible with the DDic Search help.  From the online help:
If an input help structure is stored in a field in the ABAP Dictionary, and if you want to use the field mapping of search help parameters stored in the ABAP Dictionary as the field name for the structure for your Web Dynpro input help, then map your context nodes to this structure. This ensures that all components of the structure are available dynamically at runtime as attributes of the node.
If the context node is not mapped to the structure, the data element's input help can be used if there is one.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm

Similar Messages

  • How to customize the *Search Help ID* in selecion parameters of FBL5N?

    Hi All,
    I'd like to know if is possible to customize the Search Help ID in the selecion parameters of FBL5N
    Thanks for Your Help
    G.

    Yes, you can
    Please go to OB49
    select tab included search help
    here you can assign
    please read img activity documentation for further help.
    Rgds
    Murali. N

  • How to find the search help for the parameters stmt in a report

    hi
    how to find the search help for the parameters stmt in a report , that is using which addition to the parameters statement

    I am not sure if I understood the question,but if you meant how to attach a search help to parameter for which a default search help is not available,you can do that by using addition  "Matchcode Object"
    Parameter: a type i matchcode object 'Search Help Name'
    Search Help name should be in single quotes.
    Regards,
    Anubhav.
    P.S: Award Points if useful.

  • How to restrict the values for selection in the search help..

    hi,
    i have a requirement regarding screen programming. i have added a i/o field in a screen and i linked a search help for that field.
    i used the standard search help it holds some 15 values for selection...
    when i click on the  search help i m getting some 15 values for selection. but i dont need all the 15 values. i need only 4 values for selection..can any one help me regarding this...
    waiting for ur reply...
    Uday.
    Edited by: uday13 on May 31, 2010 9:17 AM

    Hello,
    Refer the below code and you can provide your own search help to a parameter depending on the value in another parameter:-
    PARAMETERS : p_belnr TYPE belnr,
                 p_bukrs TYPE bukrs.
    DATA : BEGIN OF itab OCCURS 0,
             bukrs TYPE bukrs,
           END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      PERFORM f4_bukrs_help USING p_bukrs.
    *&      Form  f4_bukrs_help
    FORM f4_bukrs_help USING p_bukrs.
      DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
             tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
             v_belnr TYPE belnr.
      CLEAR:   tb_dynpfields.
      REFRESH: tb_dynpfields.
      MOVE 'P_BELNR' TO tb_dynpfields-fieldname.
      APPEND tb_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = 'Z_F4' "program name
          dynumb                               = '1000' "screen number
        TABLES
          dynpfields                           = tb_dynpfields
      IF sy-subrc NE 0.
      ENDIF.
    READ TABLE tb_dynpfields INDEX 1.
      IF sy-subrc EQ 0.
        v_belnr = tb_dynpfields-fieldvalue.
      ENDIF.
      SELECT bukrs from <db_table> INTO TABLE itab WHERE belnr = v_belnr.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'BURKS' "internal table field
          dynpprog               = 'Z_F4' "program name
          dynpnr                 = '1000' "screen number
          dynprofield            = 'P_BUKRS' "screen field name
          value_org              = 'S'
        TABLES
          value_tab              = itab "internal table
      IF sy-subrc NE 0.
      ENDIF.
    ENDFORM.                    " f4_bukrs_help
    Hope this helps you.
    Regards,
    Tarun

  • Value help - exporting parameters

    Hello,
    I am having difficulty exporting the vendor name in addition to the vendor number using search help in web dynpro ABAP.
    I have looked at the SAP help (linked below) and read through some of the threads on value help before posting but have had no luck.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm
    Here are the steps I've taken:
    I've created a context node with dictionary structure LFA1 with two attributes LIFNR and NAME1.  The input help mode for LIFNR is automatic and the search help is KRED_C.
    I've gone into KRED_C and added an export parameter NAME1 and maintained the parameter assignment to KRED_T.
    In search help KREDA I've changed the Selection method from M_KREDA to ZM_KREDA and added the NAME1 field in view ZM_KREDA.  I added a search help parameter (EXP) name1 to KREDA and maintained the parameter assignment between KRED_T and KREDA.
    When I test the web dynpro, the search help displays name1 in the hit list, but when I make a selection, only LIFNR is populated and NAME1 is not.
    I've also tried using KRED for my LIFNR search help instead of KRED_C with no luck.
    I've looked at the sample program WDR_TEST_DDIC_SHLP but can't see what I might be doing wrong.
    Any ideas or suggestions would be greatly appreciated.
    Thanks,
    Gordon

    Hi
    You can directly aply the OVS to the field KRED_C.It is easy also..
    Use the std component WDR_OVS in the used components.
    Go to particular attribute and change the input help mode :Object value Selector
    and OVS componet usage: <aliias name of std component>
    then create event handler in methods tab and then bind the standard event(OVS) of std component to this event handler
    In coding in place of kunnr ,name change to lifnr ,KRED_C
    types:
        begin of lty_stru_input,
          kunnr type kna1-kunnr,
          name1 type kna1-name1,
        end of lty_stru_input.
      types:
        begin of lty_stru_list,
      add fields for the selection list here
          kunnr type kna1-kunnr,
          name1 type kna1-name1,
          land1 type kna1-land1,
        end of lty_stru_list.
      data: ls_search_input  type lty_stru_input,
            lt_select_list   type standard table of lty_stru_list,
            ls_text          type wdr_name_value,
            lt_label_texts   type wdr_name_value_list,
            lt_column_texts  type wdr_name_value_list,
            lv_window_title  type string,
            lv_group_header  type string,
            lv_table_header  type string,
            cond(72) TYPE c, "for one where clause
            itab_where LIKE TABLE OF cond, "dyn. where clause tabl
           lt_kna1 TYPE TABLE OF ty_pa0001, "Results table
    node_kna1 TYPE REF TO if_wd_context_node, "Reference to context n
    elem_kna1 TYPE REF TO if_wd_context_element. "Reference to context n
      field-symbols: <ls_query_params> type lty_stru_input,
                     <ls_selection>    type lty_stru_list.
      case ovs_callback_object->phase_indicator.
        when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
          ls_text-name = `KUNNR`.  "must match a field name of search
          ls_text-value = `Customer Number`. "wd_assist->get_text( `001` ).
          insert ls_text into table lt_label_texts.
          ls_text-name = `NAME1`.  "must match a field in list structure
          ls_text-value = `Customer Name`. "wd_assist->get_text( `002` ).
          insert ls_text into table lt_column_texts.
          lv_window_title = 'Customer Details'.
          ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    window_title = lv_window_title
                    col_count    = 2
                    row_count    = 20 ).
        when if_wd_ovs=>co_phase_1.  "set search structure and defaults
        node_kna1 = wd_context->get_child_node( name = `KNA1` ).
    get element via lead selection
          elem_kna1 = node_kna1->get_element( ).
          ovs_callback_object->context_element->get_static_attributes(
              importing static_attributes = ls_search_input ).
        pass the values to the OVS component
          ovs_callback_object->set_input_structure(
              input = ls_search_input ).
        when if_wd_ovs=>co_phase_2.
          if ovs_callback_object->query_parameters is not bound.
          endif.
          assign ovs_callback_object->query_parameters->*
                                  to <ls_query_params>.
          if not <ls_query_params> is assigned.
          endif.
        IF not <ls_query_params>-kunnr EQ ' ' AND <ls_query_params>-name1 EQ ' '.
         SELECT * FROM kna1
        INTO CORRESPONDING FIELDS OF TABLE lt_select_list
        WHERE kunnr EQ <ls_query_params>-kunnr
        AND   name1 EQ <ls_query_params>-name1.
       ELSE.
         SELECT * FROM kna1
        INTO CORRESPONDING FIELDS OF TABLE lt_select_list.
        ENDIF.
    ovs_callback_object->set_output_table( output = lt_select_list ).
        when if_wd_ovs=>co_phase_3.
          assign ovs_callback_object->selection->* to <ls_selection>.
            ovs_callback_object->context_element->set_static_attributes(
                                   static_attributes = <ls_selection> ).
          endif.
      endcase.
    if you have any doubts please let me know
    Thanks and regards
    Tulasi Palnati

  • Adding a new field to the search help exit

    Hi friends,
    adding a new field to the search help exit. How does it work ?
    Thanks in advace
    Ilhan

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • How to disappear the search help in alv

    hi experts:
       some field's search help in alv appear automaticly,such as bukrs. I want to disappear the search help in ALV.how it come true?
    the alv is CL_GUI_ALV_GRID.
    Edited by: huiqing wei on Apr 20, 2009 10:35 AM

    In the Layout give parameter NO_F4 = 'X'.
    DATA:        wa_layo type lvc_s_layo.
    wa_layo-no_f4 = 'X'.
      call method grid_alv->set_table_for_first_display
        exporting
    *    I_BUFFER_ACTIVE               =
    *    I_BYPASSING_BUFFER            =
    *    I_CONSISTENCY_CHECK           =
    *        i_structure_name              = 'T_MARD'
    *    IS_VARIANT                    =
    *    I_SAVE                        =
          i_default                     = 'X'
        is_layout                     = wa_layo   <<<<<<<<<<<<<<<<<<<<<
    *    IS_PRINT                      =
    *    IT_SPECIAL_GROUPS             =
    *    IT_TOOLBAR_EXCLUDING          =
    *    IT_HYPERLINK                  =
    *    IT_ALV_GRAPHICS               =
    *    IT_EXCEPT_QINFO               =
    *    IR_SALV_ADAPTER               =
        changing
          it_outtab                     = i_mard[]
      it_fieldcatalog               = i_fieldcat[]
    *    IT_SORT                       =
    *    IT_FILTER                     =
    exceptions
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      others                        = 4
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

  • How to restrict the search help given to a field for a specific program ??

    Hi,
    I have one search help which is attached to a field.
    This seach help is using a Z table and showing values perfectly for one program where I attached earlier.
    The same fields and Z table I am using is some other related program where user wants to see the restricted values only.
    I am not getting, how a search help can be restricted.
    I try to take a example of it.
    If in first program the search help values are:
    Material           Level
    Orange              1
    Mango               2
    Grapes              3
    Now in the second program user wants to see only levels not the material. I Have given only two colums for understanding purposes not all .
    Please suggest what are the possible ways we can do it.
    Thanks right now.
    -=Maddu=-

    Hi,
    Use this event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cc.
      PERFORM company_code CHANGING p_cc.
    FORM company_code CHANGING p_cc.
      DATA: dynpfld_mapping LIKE dselc OCCURS 0 WITH HEADER LINE.
      REFRESH gt_bukrs.
      SELECT * FROM t001
      INTO CORRESPONDING FIELDS OF TABLE gt_bukrs.
      LOOP AT gt_bukrs.
    **ST AS ON 08.09.2006
        AUTHORITY-CHECK OBJECT 'ZREP_TMF'
              ID 'BUKRS' FIELD gt_bukrs-bukrs
              ID 'VKORG' FIELD gt_bukrs-bukrs
              ID 'VKBUR' DUMMY
              ID 'SPART' DUMMY
              ID 'VTWEG' DUMMY.
       AUTHORITY-CHECK OBJECT 'ZREM_ORG'
             ID 'VKORG' FIELD gt_bukrs-bukrs
             ID 'VKBUR' DUMMY
             ID 'SPART' DUMMY
             ID 'VTWEG' DUMMY.
    **ST AS ON 08.09.2006
        IF sy-subrc NE 0.
          DELETE gt_bukrs.
        ENDIF.
      ENDLOOP.
      dynpfld_mapping-fldname   = 'BUKRS'.
      dynpfld_mapping-dyfldname = 'BUKRS'.
      APPEND dynpfld_mapping.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = 'ZREM_AGENCY_REPORT'
          dynpnr          = '1000'
          dynprofield     = 'COMPANY'
          value_org       = 'S'
        TABLES
          value_tab       = gt_bukrs
          return_tab      = return_tab
          dynpfld_mapping = dynpfld_mapping.
    ENDFORM.                    " sale_org
    Reward points

  • Deleting the search help

    Hi all,
        I have created a elementary search help and assigned some parameters and copied them to the table. now i have modified the search help. but it is not getting modified in the table. so i want to delete the existed one.
    can someone help out in this issue?
    **************Points will beReward**********
    Regards,
    Santosh

    Hi Santhose,
    the problem here is you assigned the search help to the field before change,thats why you are getting previous one.first after changing the searchhelp activate it.Then activate the table also.
    till now if you are not getting the changed searchhelp then delete the searchhelp and again add the searchhelp.
    but the first thing will definitely work.

  • Event handler on search help PREM how to?

    Hello!
    I'm new to webdynpro and did already some basic tutorials.
    One thing which isn't covered there i want to know...
    I have for example to attributes.
    PERSNO and ENAME.
    On Perso i have the basic search help PREM
    In my webdynpro i have these 2 Input fields. Now i need an event which fills the ENAME, after i selected a PERNR via the search help.
    How can i handle these events?
    greets thomas

    Hi
    see standard component WDR_TEST_OVS
    this link will be helpful
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/abap%2bwd%2bobject%2bvalue%2bselector(OVS)
    Abhi

  • Hiding the Birthday Column in the search help in transaction PA20

    Steps to generate the issue.
    1) Goto transaction PA20.
    2) Use the search help (Press F4) in the personnel number field.
    A search help pops up.
    3) In the 'Last Name - First Name' tab enter 'M*' in the 'Last Name' field and select the enter button.
    A list of employees is displayed. In my system along with the last name and first names the employees birthday is displayed.
    The business would like this field hidden as they have decided that this is sensitive information that they do not want everybody to have access to.
    Can this be hidden by making a change to configuration? How do I go about this?

    Dear Mark,
    After pressing F4, when the list will be shown, select the heading of the birthday coloumn, right click, then select personalize, then select Birth date, and click hide fields switch which is in the same screen, then click enter.
    See your problem is solved.
    Thanks & Regards
    Jasaswi

  • How to restrict the results in the search help

    Hi Friends,
    My current assignment calls for a program using search help. The scenario is.. there are different radio buttons for organizational units and if a unit is selected, corresponding users need to be displayed in the screen. Multiple selection should be allowed.
    I created the search help and attached it to the screen field userid. I am able to display all the users.
    But my problem is , i need to consider the organizational unit before displaying the users... If the radio button for A/R is selected, only the A/R should be displayed.....
    Is there any way that we could restrict the entries in the search help? Please help me with your expert advices and
    suggestions.
    Thanks
    Poornima

    Hi,
    Refer this link:
    http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Regards,
    Prashant

  • How to change the desription of a standard SAP field in the Search Help

    Hi All,
    In Table T023T there is a field WGBEZ60(Long text describing the material group) and the data element of the field is WGBEZ60.
    Requirement is to change the description of the field WGBEZ60.The desription of the  field is - Description 2 for the material group.
    But the user want as - Description for the material group. He dont want 2 in the description.
    we are using this field in the search help of Material group for the transaction ME21N and ME51N.
    So please tell me how can we change the description of the field in the Search help.
    Thanks.
    Regards,
    Peeyush

    As search help uses data element , it shows its keyword. So you have to do modification to that keyword.
    - Go to CMOD
    - from top menu GOTO -> Text enhancements -> Keywords -> Change -> type WGBEZ60 -> change the description -> Save and add it to transport
    - now use that data element either on the screen or search help. It will have the descripiton modified.
    Regards
    Marcin

  • I can't remove Bing. I've tried Control Panel, the article "Removing the Search Helper Extension and Bing Bar," and I have had no luck for Windows 7 and Firefox.

    I can't remove Bing. I've tried Control Panel, the article "Removing the Search Helper Extension and Bing Bar," and I have had no luck for Windows 7 and Firefox.
    I wish I could share the two screen shots I took, but this question site doesn't have the option, so I guess I'll describe where Bing is showing up.
    In the left hand of my browser, just to the right of the back and forward arrows, there is speech bubble with a black eye ball or something. I found out it's Bing-related by clicking on it. There is no option to remove it with either left or right clicking on it.
    Also, in the right hand corner of my browser, at the very end of all my tabs, there is a white rectangular box with an orange "b" and a magnifying glass symbol. It will not respond to anything I try to do to it either, but if clicked it opens a new tab with a Bing search dialogue box.
    Finally, any new tab I open automatically opens to the Bing search dialogue box (versus Google).
    I need to get specific, step-by-step instructions for removing this Bing stuff from my computer. As I said, I have already gone through all steps outlined in the article I mentioned above as well as not been able to locate Bing in my control panel.
    Please help. I'm certain others are having this same issue. I use Windows 7 and Firefox. Thanks.

    Apologies for the formatting there. No idea what went wrong...

  • Removing the Search Helper Extension and Bing Bar

    The above question has been asked a number of times already, and some replies date back 8 months or more. Sadly, whilst the
    offers of help are much appreciated, they no longer seems to fix the problem, AFAICS.
    My setup details, if it assists:
    Dell Inspiron N5110 laptop
    Intel(R) Core(TM) i7-2630QM CPU @ 2,00GHz
    4.00GB RAM
    WDC [Western Digital) WD6400BPVT-75HXZT1 5400 6.5GB HDD
    NVIDIA GeForce GT 525M video card
    Intel(R) HD Graphics 3000 64meg onchip GPU
    Win 7 Home Premium 64bit SP1
    Mozilla Firefox v4.0.1
    Having bought the above laptop, I am in the process of changing from old to new. During a mass MS update session, Firefox was
    impregnated with a 'bing' search box and button [It is perfectly possible that I inadvertantly 'speed clicked' a sneaky 'install me'
    button on the way]. Anyhoo, I now have said search box/button and want rid asap. The Firefox help suggests following the
    advice in their item entitled 'Removing the Search Helper Extension and Bing Bar', but this shows as out of date. Furthermore, I
    have no 'bing' or 'search helper extension' entries in my 'Programs & Features' applet in Control Panel, neither do I have MS
    KB982217 installed to uninstall. There are no eponymous entries in Firefox's 'Tools/Addons' menu.
    Any ideas, please?

    Apologies for the formatting there. No idea what went wrong...

Maybe you are looking for