ABAP sentence/code to call search help

Hello,
I created a search help in the Dictionary, and have used it in a module-pool, filling the corresponding field in the Attributes window.
But now I would like to call that search help from my code, in a different program. Is there any ABAP sentence for that purpose?
Thank you very much.

Hi Ivson,
You can use the matchcode object concept.Select-options or parameters can be used in case of type 1 programs.
select-options:s_fail for failtable-failcode matchcode object fail.                           "Fail is the serach help you created.
regards,
MV

Similar Messages

  • Calling search help in SRM system

    Hello all!
    I have a problem with using the functional module ‘F4IF_FIELD_VALUE_REQUEST’ in SRM system. I need to call search help by this function module and retrieve output parameter. If I’ve connected by SAP GUI all works splendid, but in HTML environment a behavior of this FM is very strange. In the HTML connection after I’ve select the subordinate search help for selection criteria field search help becomes disappeared and main screen becomes shown as modal (sic!) window.
    Does anybody know how to avoid this?
    This is piece of code with FM call
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname           = 'ZSRM_002_SCR_REQITEM'
          fieldname         = 'PRDID'
          searchhelp        = 'COM_PR_COLLECTION'
          shlpparam         = 'PRODUCT_GUID'
          dynpprog          = 'SAPLZSRM_PP_SELECT_SCREENS'
          dynpnr            = '9003'
          dynprofield       = 'ZSRM_002_SCR_REQITEM-PRDID'
        TABLES
          return_tab        = lt_return
        EXCEPTIONS
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          OTHERS            = 5.
    Best regards and thanks in advance.

    Is my explanation not clear or nobody knows how to win this problem?

  • Calling search helps dynamically

    Hi all,
    I have two search helps. I need to call these search helps in my Application dynamically for a single field (PARNR) based on PARVW.
    If it is a single search help, we can assign that in field attributes.
    But here... I need to call different search helps for a single field based on the condition.
    Pls help me.
    Thanks
    Kiran

    Hi Kiran,
    I Think by using OVS help u can acieve this, using WDR_OVS as used component.
    here examples... check
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac
    /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
    http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    Cheers,
    Kris.
    Edited by: kissnas on Mar 26, 2011 5:17 AM

  • Calling search Help with parameter/

    I have selection-screen as follows
    PARAMETERS : p_bukrs1 TYPE bukrs ,
                 p_kostl1 TYPE kostl .
    PARAMETERS : p_bukrs2 TYPE bukrs ,
                 p_kostl2 TYPE kostl .
    Req: When user press F4 on P_KOSTL1, it should display cost centers only for company code value entered in P_BUKRS1, similarly for P_KOSTL2 it should display cost centers for comapny code entered in P_BUKRS2.
    I know I can select records on AT SELECTION-SCREEN .. ON VALUE-REQUEST for respective fields and display in F4 with some FM .
    <b>Is there any method by which I can call the search help specifying the company code as parameter?</b>

    by using FM DYNP_VALUES_READ u can get the values of BUKRS.
    based on the values of BUKRS get values of Cost Centres from DB tables into Internal tables
    F4IF_INT_TABLE_VALUE_REQUEST by using this u can display.
    Regards
    peram

  • Calling search helps dynamically in module pool program

    Hi Experts,
    I have created two search helps. I need to call these search helps in my module pool program dynamically for a single field (i.e ZMATNR).
    you might be known... if it is a single search help, we can assign that in field attributes.
    But here... I need to call different search helps for a single field based on the condition.
    Pls help me.
    Thanks
    Raghu

    Hi,
    Use the below function module and  pass the search help created in search help field according to the condition.
    Process on Value-request.
    if condition = A.
    call function " F4IF_FIELD_VALUE_REQUEST"
    TABNAME           =                                                         
    FIELDNAME        =                                                       
    SEARCHHELP     =  "Mention search help created                                                          
    Elseif  Conditon =B.
    call function " F4IF_FIELD_VALUE_REQUEST"
    TABNAME           =                                                         
    FIELDNAME        =                                                       
    SEARCHHELP     =  "Mention search help created      
    Endif.
    Regards,
    Prabhudas

  • CALL SEARCH HELP IN WEB DYNPRO

    Description :
    My web dynpro contains some buttons and allow some interaction...
    One of the buttons is : 'LOAD DATA'...
    I'd like to call a search help when the user PRESSES this button, how can i do that ? maybe a reusable component ???
    Thank you...

    Hi Stephan,
    Well there is a way by which you can achieve this functionality...  You need to call the static method HANDLE_VALUE_HELP of class CL_WDR_VALUE_HELP_HANDLER. To use it we simply need to pass in a reference to the context element, and the name of an attribute. It will then run the value help defined in the context for that attribute.
    However being SAP internal, the method could change or disappear at any time. So this isn't a reliable approach. You would be better off following the approach suggested by the other users. I am however just quoting it for your inspection.
    Suppose I have a context node by name NODE1 & an attribute MATNR under it of type MARA-MATNR. Now up on click on a button I want the search help MAT1 for MATNR to be displayed. Below is the coding for the buttons action handler:
    method ONACTIONCALL_VALUE_HELP .
      data: wd_node type ref to if_wd_context_node,
            wd_element type ref to if_wD_context_element.
      wd_node = wd_context->get_child_node( name = 'NODE1' ).
      wd_element = wd_node->get_element( index = 1 ).
      CALL METHOD CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP
        EXPORTING
          CONTEXT_ELEMENT   = wd_element
          CONTEXT_ATTRIBUTE = 'MATNR'.
    endmethod.
    Regards,
    Uday

  • Calling Search Help in BAdI implementation.

    Hi All,
    I have created my search help with search help exit function. Now I need to call this Search Help in my BAdI Implementation ( Method of BAdI) . Please suggest me which function I should use to call my search help.

    Hi,
    Please use the following FM. It might be helpful.
    F4IF_SELECT_VALUES
    Regards
    Bhupal Reddy

  • Call search help as seperately

    Hello,
    May I know if there is possible to call the popup window for search help directly, but not through the input field which uses the search help.Thank you very much!
    Best regards,
    Shumin

    Hi Shumin,
    *& Report  ZTEST_SEARCHHELP_ITAB
    *& This report is to populate F4 help for custom fields
    REPORT  ztest_searchhelp_itab.
           TYPES DECLARATION                                        *
    TYPES: BEGIN OF ty_mara,
           matnr TYPE mara-matnr,
           mtart TYPE mara-mtart,
           END OF ty_mara.
           INTERNAL TABLE AND WORKAREA  DECLARATION    *
    DATA : it_mara TYPE TABLE OF ty_mara,
           wa_mara TYPE ty_mara.
         PARAMETERS DECLARATION                              *
    PARAMETERS p_matnr TYPE ty_mara-matnr.
       SELECTION SCREEN FOR VALUE REQUEST         *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
       SELECT QUIRES FOR CUSTOM FIELDS                *
    SELECT matnr mtart FROM mara INTO TABLE it_mara UP TO 10 ROWS.
         FUNCTION MODULE TO POPULATE F4 HELP         *
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'MATNR'
          dynpprog    = sy-repid
          dynpnr      = sy-dynnr
          dynprofield = 'P_MATNR'
          value_org   = 'S'
        TABLES
          value_tab   = it_mara.
    Here you will first fill the table  ***it_mara**  as per your requirements by the \
    Select Query and then you will take the values for Search Help from the same table( it_mara).
    Let me know if you have any doubts.
    Edited by: AMIT BISHT on Sep 12, 2008 11:11 AM

  • Call Search Help

    Hello Experts,
    I m developing one screen, in that  have a field plant .
    Plant is input by use of standard search help.Moment i give plant,
    i want to call another Standard search help where this plant parameter is passed by ticking SET GET parameter in
    previous LOV. It gives me only last werks value in another LOV field.
    Problem is  that as soon as i change plant everytime ,it doesnot get reflected in other LOV. ?
    Regards,
    Aastha

    Hi Astha,
    use search help exit in the second field.use dynpro value read to populate the second LOV.
    cheers
    shibu

  • Steps to replace match code objects with search helps in ECC6 upgrade

    Hi,
    Upgrade 4.7 to ECC6, match code objects need to be replaced with search hellps.
    SAP note provided by client but not understanding clearly. Can any one explain me the stelps to migrate the match code objects into search hepls.
    Thanks,
    Jwala Deepa

    Hi,
    Migration must be done by a developer who knows both matchcodes and search helps. It's not just like a procedure that you can follow without knowledge/without thinking.
    It's probably a little bit like forms (but far more simple), they often need to be "migrated from scratch"
    The first important point is where to find the matchcode object/IDs -> SE11 -> Utility -> Other DDic objects. Then you'll see that are the update type, base table, etc.
    There's a little scheme here to show the differences: http://help.sap.com/saphelp_46c/helpdata/en/3e/f3fc37eeb70143e10000009b38f8cf/frameset.htm (plus the general matchcode documentation : http://help.sap.com/saphelp_46c/helpdata/en/cf/21ef1f446011d189700000e8322d00/frameset.htm )
    If you need a procedure, let's wait, and see if someone has one, but it doesn't look promising as matchcodes are not used since a long time now.
    BR
    Sandra

  • Match code modification or search help hinding in LDB

    Hi all,
    I am working on report using PNP logical database.
    I created a custom search help (ZSH001) and appended in PERM coll search help.
    For field PERNR in selection screen need to have only one searchhep ZSH001 when I use F4 on pernr in selectin screen.
    I should get for only one report. It should not change the logical databse. Is there any function module to work on this?
    Regards,
    Prasad

    Hi,
    Can you just let me knoew the steps involved ... do you have any notes regrading this ??
    Many thanks if you could share the same.
    Rgds
    Siva

  • How to call a Search help in a function module?

    Hi Experts,
    I am a novice to ABAP, I am working on search helps. My requirement is to call a search help in a function module.
    Can anyone  please throw some light on this.
    Any inputs will be helpful.
    Thanks,
    Amita

    yes you can do that..
    in side the source code ..
    write the select statement according to requirement and pass the internal table to below function moduel and return field to yor help field..
    call the below fm inside the function module..
    'POPUP_WITH_TABLE_DISPLAY' or 'REUSE_ALV_POPUP_TO_SELECT'
    see the sample code...
    FUNCTION Z_MFG_PLANTS_F4 .
    "*"Local Interface:
    "  IMPORTING
    "     REFERENCE(W_WERKS) TYPE WERKS OPTIONAL
    "  IMPORTING
    "      REFERENCE(W_MATNR)    TYPE MANTR OPTIONAL
    Alv popup display
    DATA : gc_selfield     TYPE slis_selfield,
           gt_fieldcat_drd TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    p_werks = W_WERKS.
    data : begin of t_marc occurs 0,
                werks type werks,
                matnr type matnr,
            end of t_marc
    select matnr werks from marc into table t_marc where werks = p_werks.
      IF t_disp[] IS NOT INITIAL.
      gt_fieldcat_drd-seltext_m = 'Material'.
      gt_fieldcat_drd-fieldname = 'MATNR'.
      APPEND gt_fieldcat_drd.
      CLEAR : gt_fieldcat_drd.
      gt_fieldcat_drd-seltext_m = 'WERKS'.
      gt_fieldcat_drd-fieldname = ''WERKS'.
      APPEND gt_fieldcat_drd.
      CLEAR : gt_fieldcat_drd.
    Allow the user to select the required plant
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          i_title               = 'Material Selection for Plant'
          i_selection           = 'X'
          i_screen_start_column = 5
          i_screen_start_line   = 5
          i_screen_end_column   = 70
          i_screen_end_line     = 20
          i_tabname             = 'T_MARC'
          it_fieldcat           = gt_fieldcat_drd[]
        IMPORTING
          es_selfield           = gc_selfield
        TABLES
          t_outtab              = t_MARC
        EXCEPTIONS
          program_error         = 1
          OTHERS                = 2.
      IF sy-subrc  0.
      ENDIF.
      READ TABLE t_MARC INDEX gc_selfield-tabindex.
      IF sy-subrc = 0.
            w_matnr = t_matnr-matnr.
      ENDIF.
    ENDIF.
    ENDFUNCTION.
    rgrds,
    Shweta

  • Clear error message on F4 standard search help in webdynpro abap

    Hi Gurus,
    We have a check on the data entered by the user in our webdynpro producing a error message if the data are not correct. My problem is that this message is also diplayed in the search help afterwards when the user clicks on the search help. I know how to clear an error message but I can't find the event triggered by the F4 search help to put my code. The search help is a standard search help and thus I can't modify it.
    All I want is to find the event triggered when the user clicks on the search help. The field is in an alv but the alv click or alv action are not triggered when the user clicks on the search help.
    Thanks for your help in advance guys.

    Yes.  It is called a Freely Defined Value Help if you want to have complete control of the UI that is displayed in the dialog:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm

  • Search help in webdynpro abap

    hi all,
    I am new to webdynpro abap.i want to implement search help for input feilds in my application,.can anyone give me step by step procedure to create search help
    thanx in advance.
    regards,
    Anusha

    Hi Anusha,
    Web Dynpro provides two types of pre-implemented search helps :
    1. ABAP Dictionary Search help
    2. OVS
    [Input Help for WDA|http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm]
    I have created a blog on implementing OVS help in WDA. You can refer that for sample code.
    [OVS help in WDA|/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap]
    In addition, you can also provide help through Drop Downs and Select options.
    [Working with Select options in WDA|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e]
    Plz reward if helpful.
    Thanks.
    Shruti

  • Search help ehancement of field in t-code F-02.

    Hi all,
    I want to ehance a filed's search help in t-code f-02.
    requirement is as below.
    when you click one field's sech help in t-code f-02. A search help pop-up window will display. In this pop-up window, there are several tabs.  I want to add a new tab in this pop-up window.
    In this new tab, I want to add 2 new fields (for example, company code & bank code) in this tab. each tab also has search help.
    And also if I input value "1000" in the company code field, the search help value of field bank code will automatically relate to "1000".
    could anyone give me a solution or suggestion?
    Thanks in advance!

    Hi,
    1. You can add new fields in the complex search help of the field
    by editing the search help exit. please check search help have any search help exit attached to it.
    Frank Zhang wrote:
    > And also if I input value "1000" in the company code field, the search help value of field bank code will automatically relate to "1000".
    I not sure how a F-02 screen value of company code in the entry screen can be relate with bank code in the search help

Maybe you are looking for

  • HTTP Receiver Adapter - delete ?xml version="1.0" encoding="UTF-8"?

    Hi, Is it possible to delete the part below when sending an HTTP request through HTTP receiver adapter without any java/abap/xslt mapping? <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_SELL xmlns:ns0="http://test.com/Sell"> Thanks Arman

  • Equivalent Statement in ECC6.0

    Hi, I want the equivalent statement of the following in ECC6.0. SELECT MCOMP  SUM( PSMNG ) INTO CORRESPONDING FIELDS OF                                   ITAB_NEW FROM (ITAB_SEL) GROUP BY MCOMP. ENDSELECT. This statement is giving error in the new Ve

  • Euphonix MC MIX and Logic 9.0.x = no tracks volume values display

    Hi, Did anybody noticed that, since introduction of Logic 9.0.1 update, the track volume values aren't showed in the MC MIX display anymore? Euphonix support says that they are aware of the problem and are working close to Apple to resolve the issue,

  • Exception colors

    Hi experts, We've created a query under BEx Query Designer with Exception and on the <b>Display</b> tab flagged options "<b>Exception affects characteristic cells</b>" and chose "<b>Rows</b>"; and option "<b>Exception Affects Data cells</b>" and "All

  • Content Filter block attachment .scr/.cab etc... not working inside archive

    Hi, We have trouble that Content Filter for blocking attachments executable, scr, and cab is not working if .exe, .scr, or.cab are inside 7zip, zip or rar archive. How deep inside attachment ESA goes, if any? Antivirus config is set to 5 and some vir