API calling a search help

Hi all,
Is there any Function Module which can be used to call a search help and read the values returned by this search help?
Thanks,
Sukru

Hi,
Try this FM to read the techinical attributes of any Search help
F4IF_GET_SHLP_DESCR
F4IF_SELECT_VALUES
Regards,
Karthik.

Similar Messages

  • 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

  • Calling DDIC search help

    Hello
    Is it possible to call a DDIC search help within a WD application without binding it to an input field. We are looking for a way to call a search help on a button pressed event.
    Regards, Mathias

    Hi Mathias,
    Using CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP is a very easy solution to this problem but, you are advised  not follow this approach of using this class & method as they may be stopped at any time by SAP.  All the classes which start with CL_WDR* are meant for internal use by SAP and are not meant for use by customers. We are supposed to use only classes which start with CL_WD*. Try go through this [thread |CALL SEARCH HELP IN WEB DYNPRO;which deals with the same same issue.
    You can try resolve this problem by creating an [Freely Programmed Value Help|https://wiki.sdn.sap.com/wiki/display/WDABAP/Freely%2bprogrammed%2binput%2bhelp] & when you press on the pushbutton you can call this search help. You can try go through this [thread |freely programed F4 help;where I have explained about how you can create an Freely Programmed value help.
    Regards,
    Uday

  • Call SE11 Search Help through ABAP code.

    Hello,
    I have a requirement in which I need to call various search helps created through SE11 in a Function Module. I want the Search help to return the Values which I would use in my Function Module.
    Please suggest if there's a standard FM/ Statement to process SE11 Search helps.
    Thanks,
    Shalabh

    TYPE-POOLS: shlp.
    DATA: l_shlp     TYPE shlp_descr_t,
          l_wa       TYPE ddshiface,
          l_bukrs    TYPE char50,
          l_repid    TYPE syrepid,
          L_DYNNR    TYPE SYDYNNR,
          l_ret_val  LIKE ddshretval OCCURS 0 WITH HEADER LINE,
          l_t_fields TYPE dynpread   OCCURS 0 WITH HEADER LINE.
    PARAMETERS: p_bukrs TYPE pa0001-bukrs,
                p_werks TYPE pa0001-werks,
                p_btrtl TYPE pa0001-btrtl.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
      FIELD-SYMBOLS <fs> TYPE ddshiface.
      l_repid = sy-repid.
      L_DYNNR = SY-DYNNR.
      CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
        EXPORTING
          shlpname       = 'H_T500P'
    *     SHLPTYPE       = 'SH'
        IMPORTING
          shlp           = l_shlp
      LOOP AT l_shlp-interface INTO l_wa.
        IF l_wa-shlpfield  EQ 'BUKRS'.
          l_wa-valtabname = 'PA0001'.
          l_wa-valfield   = 'BUKRS'.
        ELSEIF l_wa-shlpfield EQ 'PERSA'.
          l_wa-valtabname = 'PA0001'.
          l_wa-valfield   = 'WERKS'.
        ENDIF.
        MODIFY l_shlp-interface FROM l_wa.
      ENDLOOP.
    * Process standard searchhelp
      CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
        EXPORTING
          shlp          = l_shlp
        TABLES
          return_values = l_ret_val.

  • FM : to call collective Search help and update two fields in SSCR

    Hi Experts,
         I have problem while using collective serach help.
        My scenario is using Collective Search help thru that i want to update 2 fields in my selection screen.
    Thru this function module F4IF_INT_TABLE_VALUE_REQUEST  i can mapping and update two fields using DYNP_VALUE_UPDATE but using this function module i can't able to call my Collective Search help
    in other way
    Thru F4IF_FIELD_VALUE_REQUEST  i can able to call the collective search help but _i can't mapping field and can't updated the
    selection screen field_
    Is any otherway to do it, Please help me ASAP.
    Regards,
    Florian.

    Hi Friends,
    I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
    The search help is working fine and i am getting the entries with the following code.
    The problem is i am finding extra popup on screen.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname         =  space
    fieldname       =  space
    SEARCHHELP      =  'MAT1'
    MULTIPLE_CHOICE =  'X'
    STEPL           =  0
    value           = 'MATNR'
    *dynpprog        =  progname
    *dynpnr          =  dynnum
    *dynprofield     = 'CARRIER'
    CALLBACK_PROGRAM          = 'ZTEST_1_PRA'
    CALLBACK_FORM             = 'F4CALLBACK'
    TABLES
    RETURN_TAB                = RETURN_TAB
    EXCEPTIONS
    FIELD_NOT_FOUND           = 1
    NO_HELP_FOR_FIELD         = 2
    INCONSISTENT_HELP         = 3
    NO_VALUES_FOUND           = 4
    OTHERS                    = 5.

  • Matchcode in OO (call the search help when the button is pressed )

    Hi Guys,
    I'm using the class cl_dd_document in order to fill a form that contains a input element (cl_dd_input_element) and a button element (cl_dd_button_element).
    What I need to do now is to simulate (or build) a matchcode for the button.
    For example, the input field is for entering the name of a table, and with the button i want to show all the tables that are elegibles for that field.
    Any suggestion?
    Regards,
    Eric
    Message was edited by:
            Eric Hernandez Pardo

    Hi Uwe,
    What I want to know is how to call the search help when the button is pressed. (Like the one in SE80 Transaction)
    Regards,
    Eric
    Message was edited by:
            Eric Hernandez Pardo

  • Call a search help

    I'd like to call a search help COBL_EX_FICO within an abap program.
    Do not want to change my structure ... maybe a function module ???
    Thanks

    Hi Stephan
    I'm not sure to understand ?
    You speak about that ?
    parameters : p_geber type bp_geber matchcode object cobl_ex_fico.

  • Dump with calling Custom search help in SRM Portal

    Hi,
    We are calling a WBS search help from Shopping Cart Cost Assignment screen.
    It works fine with ITS and get the results for WBS elements, but when we try to access the search help through the Portal, after clicking on the FIND button it Dumps "SYSTEM_CANNOT_WRITE_TABLE".
    Any Ideas ??
    Thanks in Advance...!!!

    Hi
    <u>This is clearly a SAP BASIS problem. You need to install GUI Patch 332 (gui46D_332.exe).</u>
    <b>Please go through the links below  for more details -></b>
    Note 842824 - Disposal of the BC-FES-OAC component
    Note 392208 - Automation: Error in the automation controller
    Hope this will definitely help.
    Do let me know.
    Regards
    - Atul

  • Call elemetary search help dynamically

    Hi,
    I would like to call an elemetary search help at run time based on the contents of a screen field.
    e.g. field 1 (case type: value 1/2/3/4)
         field 2 (case number (get the case number from SH1/SH2/SH3/SH4 depending on value in field 1)
    I tried using a serach help exit for this purpose, however there are too many problems. Is there a FM that I can use at on value-request to call the specific search  help for field case number?
    Examples would be appreciated.
    Thx. LM

    Hello Liza,
    There are quite a few standard Function Modules which help you program your own F4 help in the POV event. You can look for FMs starting with F$IF. One of the most common ones, which might be applicable in your case is F4IF_FIELD_VALUE_REQUEST. this Function Module has got elaborate documentation which must help you solve your problem without much difficulty.
    Regards,
    Anand Mandalika.
    P.S. Reward points for this answer if it has helped you solve your problem.

  • How to call elem. Search help on Button click event in WD appilcation

    Hello All,
    i have requirement to call elem. search help on button click event in WD application. currently i am calling FM  F4IF_START_VALUE_REQUEST but getting the short dump as below,
    The following error text was processed in the system X31 : Screen output without connection to user.
    The error occurred on the application server saps_X31_31 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    SYSTEM-EXIT of program SAPLSDH4
    Function: F4_PRESEL_WITH_TABSTRIP of program SAPLSDH4
    Form: F4PROZ_STEP_PRESEL of program SAPLSDSD
    Function: DD_SHLP_SINGLE_STEP of program SAPLSDSD
    Form: F4PROZ_LOOP of program SAPLSDSD
    Form: F4PROZ of program SAPLSDSD
    Function: F4IF_START_VALUE_REQUEST of program SAPLSDHI
    Method: ONACTIONSEARCH_CUSTOMER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    is there any way to achieve the required behaviour.
    please let me know.
    Regards,
    Chandra

    Hi Friends,
    I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
    The search help is working fine and i am getting the entries with the following code.
    The problem is i am finding extra popup on screen.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname         =  space
    fieldname       =  space
    SEARCHHELP      =  'MAT1'
    MULTIPLE_CHOICE =  'X'
    STEPL           =  0
    value           = 'MATNR'
    *dynpprog        =  progname
    *dynpnr          =  dynnum
    *dynprofield     = 'CARRIER'
    CALLBACK_PROGRAM          = 'ZTEST_1_PRA'
    CALLBACK_FORM             = 'F4CALLBACK'
    TABLES
    RETURN_TAB                = RETURN_TAB
    EXCEPTIONS
    FIELD_NOT_FOUND           = 1
    NO_HELP_FOR_FIELD         = 2
    INCONSISTENT_HELP         = 3
    NO_VALUES_FOUND           = 4
    OTHERS                    = 5.

  • 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

  • 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

  • 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

  • Search help call without display

    Hi
    Can I call a search help within a program but not send the output to the screen?  I wish to validate an entry against the logic but not display anything.
    Cheers
    Ian

    ohh I dont think we can stop display of the search help screen...
    the max u can do is display the values directly, without any seleciton screen kind of .. to display...
    Reward points if u think usefull
    jackandjay.
    or u can write some validations code in the At selection screen event..
    Message was edited by:
            jackandjay

  • Need a Function Module to call a standard Elementary Search help - DEBIK

    Hi Gurus,
    I need to call the standard elementary search help DEBIK in one of my screen fields. Also I need to filter the values for the Account group KTOKD to Z104 ( transshipment location customers).
    Actually i do not want to copy the standard search help DEBIK to custom search help ZDEBIK and give a default value of Z104 to field KTOKD.
    Also i do not want to use FM - F4IF_INT_TABLE_VALUE_REQUEST .
    I want a FM which will call the search help directly . I tried using FM - FC_RVERS_SEARCHHELP but did not succeed. Can anybody help me in this.
    Thanks and Regards,
    Nabanita.

    Can you check both FM DDIF_SHLP_GET and 'F4IF_FIELD_VALUE_REQUEST'
    Kanagaraja L

Maybe you are looking for

  • Windows laptop isnt recognizing my 4th generation ipod shuffle, does anyone know how to fix this

    My windows 8 Asus laptop will not recognize my 4th gen ipod shuffle, either in device manager or in itunes just to be clear, apple support just tells me its my usb cable and not something that is wrong with the ipod, anyone else have this issue or at

  • Problem in uploading file

    I stucked on a problem...... I want to upload file from html page....On this page I want only a upload button so that when I click on this button file will upload from my client m/c to server m/c.... I have code n all but browse button on html page..

  • Excel printing looks out of alignment

    All in One C410A. Print works fine in all programs except MS Excel. My printouts look like the printheads are out of alighnment; both vertical and horizontal depending on the file. This did not happen until I moved to the C410. My old C309 the print

  • Audigy 2 ZS Platinum Headach

    Operating System: Windows XP Creative Model Number: SB0470 Computer Brand/Model: Custom Processor/CPU: AMD64 3000+ Memory: Gig BIOS Type/Revision: System Board/Chipset: Gigabyte GA-K8N Pro nForce3 50 Ok so yea, I by no means am not a newbie when it c

  • Apps for printer

    Are there fees for this apps? How do I know what they are, if so? PhotoSmart AIO Premium Fax c410a This question was solved. View Solution.