USE OF SERCH HELP EXIT

hello
i am usin serch help in callcontrol = 'DISP'
in this way
LOOP AT GT_IT_ITAB INTO  GW_ITAB.
     LWA_SELOPT-SHLPNAME     = 'ZSDH_FOCUS_LIST'.
     LWA_SELOPT-SHLPFIELD    = 'AUART'.
     LWA_SELOPT-SIGN         = 'I'.
     LWA_SELOPT-OPTION       = 'EQ'.
     LWA_SELOPT-LOW          = GW_ITAB-PARAM_VALUE2.
     APPEND LWA_SELOPT TO LT_SELOPT.
   ENDLOOP.
   SHLP-SELOPT[] = LT_SELOPT[].
what is missing becouse im getting worg aswer
thank you
for your help
shlomit

hello
i am usin serch help in callcontrol = 'DISP'
in this way
LOOP AT GT_IT_ITAB INTO  GW_ITAB.
     LWA_SELOPT-SHLPNAME     = 'ZSDH_FOCUS_LIST'.
     LWA_SELOPT-SHLPFIELD    = 'AUART'.
     LWA_SELOPT-SIGN         = 'I'.
     LWA_SELOPT-OPTION       = 'EQ'.
     LWA_SELOPT-LOW          = GW_ITAB-PARAM_VALUE2.
     APPEND LWA_SELOPT TO LT_SELOPT.
   ENDLOOP.
   SHLP-SELOPT[] = LT_SELOPT[].
what is missing becouse im getting worg aswer
thank you
for your help
shlomit

Similar Messages

  • Serch Help Exits

    Hi,
    How can i write a serch help exits.
    My requirement is to add a serch help exit for kunnr.

    Hi Phani,
    Goto SE11 create a search help, in the search help exit the search help FM name for example (ZMET_DE_INSP_SHELP_EXIT).
    Check the sample code for search help user exit.
    FUNCTION zspa_es_insp_shelp_exit.
    ""Local interface:
    *"  TABLES
    *"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
    *"      RECORD_TAB STRUCTURE  SEAHLPRES
    *"  CHANGING
    *"     VALUE(SHLP) TYPE  SHLP_DESCR_T
    *"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
      IF callcontrol-step = 'SELECT'.
        CLEAR: i_sel, wa_sel, ws_date_from, ws_date_to, ws_year,
               r_inspdt, i_inst, i_inst_name, i_final, wa_inst,
               wa_inst_name, wa_final.
        REFRESH: i_sel, i_inst, i_inst_name, i_final, r_inspdt.
      ENDIF.
      IF callcontrol-step = 'DISP'.
        i_sel[] = shlp-selopt[].
        READ TABLE i_sel INTO wa_sel WITH KEY shlpfield = 'DATE_FROM'.
        IF sy-subrc = 0.
          ws_date_from = wa_sel-low.
        ENDIF.
        READ TABLE i_sel INTO wa_sel WITH KEY shlpfield = 'DATE_TO'.
        IF sy-subrc = 0.
          ws_date_to = wa_sel-low.
        ENDIF.
        READ TABLE i_sel INTO wa_sel WITH KEY shlpfield = 'YEAR'.
        IF sy-subrc = 0.
          ws_year = wa_sel-low.
        ENDIF.
        IF NOT ws_date_from IS INITIAL AND
           NOT ws_year      IS INITIAL.
          PERFORM go_back_years USING     ws_date_from
                                CHANGING  ws_date_from.
          IF NOT ws_date_to IS INITIAL.
            PERFORM go_back_years USING     ws_date_to
                                  CHANGING  ws_date_to.
            r_inspdt-sign   = c_i.
            r_inspdt-option = c_bt.
            r_inspdt-low    = ws_date_from.
            r_inspdt-high   = ws_date_to.
            APPEND r_inspdt.
          ELSE.
            r_inspdt-sign   = c_i.
            r_inspdt-option = c_eq.
            r_inspdt-low    = ws_date_from.
            APPEND r_inspdt.
          ENDIF.
          SELECT aanlage asparte avstelle bzzinspdt
                 INTO TABLE i_inst
                 FROM eanl AS a INNER JOIN zeanl AS b
                 ON aanlage EQ banlage
                 WHERE b~zzinspdt IN r_inspdt.
          IF sy-subrc = 0.
            SELECT vstelle str_erg2 INTO TABLE i_inst_name
                    FROM evbs
                    FOR ALL ENTRIES IN i_inst
                    WHERE vstelle = i_inst-vstelle.
            LOOP AT i_inst INTO wa_inst.
              wa_final-date_from = ws_date_from.
              wa_final-date_to   = ws_date_to.
              wa_final-year      = ws_year.
              wa_final-anlage    = wa_inst-anlage.
              READ TABLE i_inst_name INTO wa_inst_name WITH KEY
                                     vstelle = wa_inst-vstelle.
              IF sy-subrc = 0.
                wa_final-str_erg2  = wa_inst_name-str_erg2.
              ENDIF.
              wa_final-last_insp_date = wa_inst-zzinspdt.
              PERFORM inspdt_plus_years USING     wa_inst-zzinspdt
                                        CHANGING  wa_final-next_inst_date.
              APPEND wa_final TO i_final.
              CLEAR: wa_final, wa_inst, wa_inst_name.
            ENDLOOP.
            LOOP AT i_final INTO wa_final.
              record_tab-string = wa_final.
              APPEND record_tab.
              CLEAR wa_final.
            ENDLOOP.
          ENDIF.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'F4UT_OPTIMIZE_COLWIDTH'
        TABLES
          shlp_tab    = shlp_tab
          record_tab  = record_tab
        CHANGING
          shlp        = shlp
          callcontrol = callcontrol.
    ENDFUNCTION.
    Regards,
    PRakash.

  • Use of search help exit

    use of search help exit with an example

    Hi,
    A search help describes the standard input help process. In exceptions it could be necessary to deviate in some points from this standard. Such a deviation from the standard can also be implemented with a search help exit.
    The input help process should look as much the same as possible throughout the entire system. Search help exits should therefore only be used for exceptions.
    A search help exit is a function module that has a predefined interface. A search help exit is called at certain times by the help processor. The administrative data of the help processor are passed to the search help exit using the interface.
    You can store your own program logic that manipulates this administrative data in the search help exit. Individual steps of the input help process can be skipped with a search help exit.
    for example
    Search help exit F4UT_OPTIMIZE_COLWIDTH adjusts the column width in the hit list to the contents of the column. It makes sense to use this search help exit when the columns of the hit list have to be made very wide for extreme cases (e.g. for name fields), but normally they will contain much smaller values.
    Each search help exit must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE (is used as pattern for all the search help exits to be created). You can find more information about the interface in the documentation for this function module.
    Calling the Search Help Exit
    If a search help exit is assigned to a search help, the help processor calls it at the following times:
    Before Displaying the Dialog Box for Selecting the Required Search Path.
    It is only called for collective search helps. Using the search help exit, the set of elementary search helps available can for example be restricted depending on the context.
    Before Starting the F4 Process for the Elementary Search Help
    The call is triggered independent of whether the dialog window for entering the search conditions appears or whether the selection is executed immediately (for example, because in the Hot key of the elementary search help Immediate value display is set).
    Before Displaying the Dialog Box for Entering Search Conditions.
    You can either influence the dialog for entering search conditions or skip it altogether here. You can also influence how the selection screen looks. The call is triggered only if there is no direct selection (that is, if in the Hot key of the elementary search help Immediate value display is not set).
    Before Selecting Data.
    The data selection can be partly or completely copied from the search help exit. This can become necessary if the data selection cannot be implemented with a SELECT statement for a table or a view.
    Before Displaying the Hit List.
    You can influence the display of the hit list in this step with the search help exit. You can reduce the number of values displayed here. For example, you can display only values for which the person calling the input help has authorization. You can also copy the complete hit list from the search help exit.
    Before Returning the Values Selected by the User to the Input Template.
    It could be advisable to intervene at this time if control of the further transaction flow should depend on the value selected. A typical example is setting set/get parameters.

  • Relating to a field inside serch help exit

    Hi!
    The serchhelp which was created by me has two
    fields.
    One field is character field (CHAR030). It is not
    a dictionary field which is being in any table
    or else.
    My question is how can I relate to this field
    in the serch help exit. For example to check
    what a user has input in this field ?
    I have to program some abap code inside
    of serch help exit.
    Regards
    ertas

    hi,
    how do you bind my mentioned field with this FunctionModule
    F4IF_INT_TABLE_VALUE_REQUEST
    Rgds
    ertas

  • Serch Help Exit problem

    Hi.
    I have this FM created by me.
    FUNCTION z_ricerca_ara_ofi.
    *"*"Interfaccia locale:
    *"  TABLES
    *"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
    *"      RECORD_TAB STRUCTURE  SEAHLPRES
    *"  CHANGING
    *"     VALUE(SHLP) TYPE  SHLP_DESCR_T
    *"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
    DATA DECLARED ... :P
    * EXIT immediately, if you do not want to handle this step
      IF callcontrol-step <> 'SELONE' AND
         callcontrol-step <> 'SELECT' AND
         " AND SO ON
         callcontrol-step <> 'DISP'.
        EXIT.
      ENDIF.
    * STEP SELONE  (Select one of the elementary searchhelps)
    * This step is only called for collective searchhelps. It may be used
    * to reduce the amount of elementary searchhelps given in SHLP_TAB.
    * The compound searchhelp is given in SHLP.
    * If you do not change CALLCONTROL-STEP, the next step is the
    * dialog, to select one of the elementary searchhelps.
    * If you want to skip this dialog, you have to return the selected
    * elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
    * either to 'PRESEL' or to 'SELECT'.
      IF callcontrol-step = 'SELONE'.
    *   PERFORM SELONE .........
        EXIT.
      ENDIF.
    * STEP PRESEL  (Enter selection conditions)
    * This step allows you, to influence the selection conditions either
    * before they are displayed or in order to skip the dialog completely.
    * If you want to skip the dialog, you should change CALLCONTROL-STEP
    * to 'SELECT'.
    * Normaly only SHLP-SELOPT should be changed in this step.
      IF callcontrol-step = 'PRESEL'.
    *   PERFORM PRESEL ..........
        EXIT.
      ENDIF.
    * STEP SELECT    (Select values)
    * This step may be used to overtake the data selection completely.
    * To skip the standard seletion, you should return 'DISP' as following
    * step in CALLCONTROL-STEP.
    * Normally RECORD_TAB should be filled after this step
      IF callcontrol-step = 'SELECT'.
        LOOP AT shlp-selopt INTO ls_interface.
          APPEND ls_interface TO lt_interface.
        ENDLOOP.
        STUFF DONE HERE :P.
        LOOP AT lt_matnr INTO ls_matnr.
          APPEND ls_matnr TO record_tab.
        ENDLOOP.
      ENDIF.
    * STEP DISP     (Display values)
    * This step is called, before the selected data is displayed.
    * You can e.g. modify or reduce the data in RECORD_TAB
    * according to the users authority.
    * If you want to get the standard display dialog afterwards, you
    * should not change CALLCONTROL-STEP.
    * If you want to overtake the dialog on you own, you must return
    * the following values in CALLCONTROL-STEP:
    * - "RETURN" if one line was selected. The selected line must be
    *   the only record left in RECORD_TAB. The corresponding fields of
    *   this line are entered into the screen.
    * - "EXIT" if the values request should be aborted
    * - "PRESEL" if you want to return to the selection dialog
      IF callcontrol-step = 'DISP'.
    *   PERFORM AUTHORITY_CHECK TABLES RECORD_TAB USING SHLP.
        EXIT.
      ENDIF.
    ENDFUNCTION.
    My questions is:
    Do i have to write something else in some of the STEPS ?
    Because i receive the message that the list is empty, but lt_matnr has 397 lines.
    I saw that in some further steps, outside my FM, record_tab is refreshed.
    There seams to be something missing from my FM, but i can't figure it out.
    Can someone help?
    Thanks.

    Hi there guys.
    Thanks for the help and for the ideas.
    The answer was allot simpler. It was only needed to add one line
    callcontrol-step = 'DISP'.
    before the corresponding ENDIF of
    IF callcontrol-step = 'SELECT'.
    Here is what I did:
    FUNCTION z_ricerca_ara_ofi.
    *"*"Interfaccia locale:
    *"  TABLES
    *"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
    *"      RECORD_TAB STRUCTURE  SEAHLPRES
    *"  CHANGING
    *"     VALUE(SHLP) TYPE  SHLP_DESCR_T
    *"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
      DATA: BEGIN OF ls_cawnt,
            atinn TYPE atinn,
            spras TYPE spras,
            adzhl TYPE adzhl,
            atzhl TYPE atzhl,
            END OF ls_cawnt.
      DATA: BEGIN OF ls_cawn,
            atwrt TYPE atwrt,
            atflv TYPE atflv,
            END OF ls_cawn.
      DATA: BEGIN OF ls_cabn,
            atfor TYPE atfor,
            anzst TYPE anzst,
            anzdz TYPE anzdz,
            END OF ls_cabn.
      DATA: BEGIN OF lt_ausp OCCURS 0,
            objek TYPE objnum,
            cuobf     TYPE cuobm,
            END OF lt_ausp,
            ls_ausp LIKE LINE OF lt_ausp.
      DATA: lt_interface TYPE STANDARD TABLE OF ddshselopt,
            ls_interface LIKE LINE OF lt_interface,
            strwhere TYPE string,
            strwhere2 TYPE string
      TYPES: BEGIN OF gs_matnr,
              matnr TYPE matnr,
             END OF gs_matnr.
      DATA: lt_matnr TYPE TABLE OF gs_matnr,
            ls_matnr TYPE gs_matnr.
      DATA: BEGIN OF s_matnr OCCURS 0,
             sign(1),
             option(2),
             low  TYPE matnr,
             high TYPE matnr,
            END OF s_matnr.
      DATA: BEGIN OF s_maktg OCCURS 0,
             sign(1),
             option(2),
             low  TYPE maktg,
             high TYPE maktg,
            END OF s_maktg.
      DATA: BEGIN OF s_spras OCCURS 0,
             sign(1),
             option(2),
             low  TYPE spras,
             high TYPE spras,
            END OF s_spras.
      DATA: BEGIN OF s_zzcodara OCCURS 0,
             sign(1),
             option(2),
             low  TYPE zzcodara,
             high TYPE zzcodara,
            END OF s_zzcodara.
      DATA: BEGIN OF s_zzcodofi OCCURS 0,
             sign(1),
             option(2),
             low  TYPE zzcodofi,
             high TYPE zzcodofi,
            END OF s_zzcodofi.
      DATA: BEGIN OF s_carat1 OCCURS 0,
            sign(1),
            option(2),
            low  TYPE zcarat,
            high TYPE zcarat,
           END OF s_carat1.
      DATA: BEGIN OF s_carat2 OCCURS 0,
            sign(1),
            option(2),
            low  TYPE zcarat,
            high TYPE zcarat,
           END OF s_carat2.
      DATA: BEGIN OF s_carat3 OCCURS 0,
            sign(1),
            option(2),
            low  TYPE zcarat,
            high TYPE zcarat,
           END OF s_carat3.
      DATA: BEGIN OF s_categ OCCURS 0,
            sign(1),
            option(2),
            low  TYPE zcateg,
            high TYPE zcateg,
           END OF s_categ.
    * EXIT immediately, if you do not want to handle this step
      IF callcontrol-step <> 'SELONE' AND
         callcontrol-step <> 'SELECT' AND
         " AND SO ON
         callcontrol-step <> 'DISP'.
        EXIT.
      ENDIF.
    * STEP SELONE  (Select one of the elementary searchhelps)
    * This step is only called for collective searchhelps. It may be used
    * to reduce the amount of elementary searchhelps given in SHLP_TAB.
    * The compound searchhelp is given in SHLP.
    * If you do not change CALLCONTROL-STEP, the next step is the
    * dialog, to select one of the elementary searchhelps.
    * If you want to skip this dialog, you have to return the selected
    * elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
    * either to 'PRESEL' or to 'SELECT'.
      IF callcontrol-step = 'SELONE'.
    *   PERFORM SELONE .........
        EXIT.
      ENDIF.
    * STEP PRESEL  (Enter selection conditions)
    * This step allows you, to influence the selection conditions either
    * before they are displayed or in order to skip the dialog completely.
    * If you want to skip the dialog, you should change CALLCONTROL-STEP
    * to 'SELECT'.
    * Normaly only SHLP-SELOPT should be changed in this step.
      IF callcontrol-step = 'PRESEL'.
    *   PERFORM PRESEL ..........
        EXIT.
      ENDIF.
    * STEP SELECT    (Select values)
    * This step may be used to overtake the data selection completely.
    * To skip the standard seletion, you should return 'DISP' as following
    * step in CALLCONTROL-STEP.
    * Normally RECORD_TAB should be filled after this step
      IF callcontrol-step = 'SELECT'.
        LOOP AT shlp-selopt INTO ls_interface.
          APPEND ls_interface TO lt_interface.
        ENDLOOP.
        READ TABLE lt_interface INTO ls_interface WITH KEY shlpfield = 'MATNR'.
        IF sy-subrc = 0.
          s_matnr-sign = ls_interface-sign.
          s_matnr-option = ls_interface-option.
          s_matnr-low = ls_interface-low.
          APPEND s_matnr.
          CONCATENATE strwhere ' mara~matnr IN s_matnr AND' INTO strwhere.
          CLEAR ls_interface.
        ENDIF.
        READ TABLE lt_interface INTO ls_interface WITH KEY shlpfield = 'MAKTG'.
        IF sy-subrc = 0.
          s_maktg-sign = ls_interface-sign.
          s_maktg-option = ls_interface-option.
          s_maktg-low = ls_interface-low.
          APPEND s_maktg.
          CONCATENATE strwhere ' MAKTG IN s_maktg AND' INTO strwhere.
          CLEAR ls_interface.
        ENDIF.
        READ TABLE lt_interface INTO ls_interface WITH KEY shlpfield = 'SPRAS'.
        IF sy-subrc = 0.
          s_spras-sign = ls_interface-sign.
          s_spras-option = ls_interface-option.
          s_spras-low = ls_interface-low.
          APPEND s_spras.
          CONCATENATE strwhere ' spras IN s_spras AND' INTO strwhere.
          CLEAR ls_interface.
        ENDIF.
        READ TABLE lt_interface INTO ls_interface WITH KEY shlpfield = 'ZZCODARA'.
        IF sy-subrc = 0.
          s_zzcodara-sign = ls_interface-sign.
          s_zzcodara-option = ls_interface-option.
          s_zzcodara-low = ls_interface-low.
          APPEND s_zzcodara.
          CONCATENATE strwhere ' zzcodara IN s_zzcodara AND' INTO strwhere.
          CLEAR ls_interface.
        ENDIF.
        READ TABLE lt_interface INTO ls_interface WITH KEY shlpfield = 'ZZCODOFI'.
        IF sy-subrc = 0.
          s_zzcodofi-sign = ls_interface-sign.
          s_zzcodofi-option = ls_interface-option.
          s_zzcodofi-low = ls_interface-low.
          APPEND s_zzcodofi.
          CONCATENATE strwhere ' zzcodofi IN s_zzcodofi AND' INTO strwhere.
          CLEAR ls_interface.
        ENDIF.
        READ TABLE lt_interface INTO ls_interface WITH KEY shlpfield = 'CARAT1'.
        IF sy-subrc = 0.
          s_carat1-sign = ls_interface-sign.
          s_carat1-option = ls_interface-option.
          s_carat1-low = ls_interface-low.
          APPEND s_carat1.
          CONCATENATE strwhere2 ' ATWTB IN s_carat1 AND' INTO strwhere2.
          CLEAR ls_interface.
        ENDIF.
        READ TABLE lt_interface INTO ls_interface WITH KEY shlpfield = 'CARAT2'.
        IF sy-subrc = 0.
          s_carat2-sign = ls_interface-sign.
          s_carat2-option = ls_interface-option.
          s_carat2-low = ls_interface-low.
          APPEND s_carat2.
          CONCATENATE strwhere2 ' ATWTB IN s_carat2 AND' INTO strwhere2.
          CLEAR ls_interface.
        ENDIF.
        READ TABLE lt_interface INTO ls_interface WITH KEY shlpfield = 'CARAT3'.
        IF sy-subrc = 0.
          s_carat3-sign = ls_interface-sign.
          s_carat3-option = ls_interface-option.
          s_carat3-low = ls_interface-low.
          APPEND s_carat3.
          CONCATENATE strwhere2 ' ATWTB IN s_carat3 AND' INTO strwhere2.
          CLEAR ls_interface.
        ENDIF.
        IF ( NOT strwhere2 IS INITIAL ).
          SHIFT strwhere2 RIGHT DELETING TRAILING 'AND'.
          SELECT SINGLE atinn spras adzhl atzhl
          FROM cawnt
          INTO CORRESPONDING FIELDS OF ls_cawnt
          WHERE (strwhere2).
          SELECT SINGLE atwrt atflv
          FROM cawn
          INTO CORRESPONDING FIELDS OF ls_cawn
          WHERE atinn EQ ls_cawnt-atinn
            AND atzhl EQ ls_cawnt-atzhl.
          SELECT SINGLE atfor anzst anzdz
          FROM cabn
          INTO CORRESPONDING FIELDS OF ls_cabn
          WHERE atinn EQ ls_cawnt-atinn
            AND adzhl EQ ls_cawnt-adzhl.
          IF ls_cabn-atfor = 'CHAR'.
            SELECT objek
            FROM ausp
            INTO CORRESPONDING FIELDS OF TABLE lt_ausp
            WHERE atinn EQ ls_cawnt-atinn
              AND adzhl EQ ls_cawnt-adzhl
              AND atwrt EQ ls_cawn-atwrt.
          ENDIF.
          IF ls_cabn-atfor = 'NUM'.
            SELECT objek
            FROM ausp
            INTO CORRESPONDING FIELDS OF TABLE lt_ausp
            WHERE atinn EQ ls_cawnt-atinn
              AND adzhl EQ ls_cawnt-adzhl
              AND atflv GE ls_cawn-atflv
              AND atflb LE ls_cawn-atflv.
          ENDIF.
          LOOP AT lt_ausp INTO ls_ausp.
            MOVE ls_ausp-objek+0(18) TO ls_ausp-cuobf.
            MODIFY lt_ausp INDEX sy-tabix FROM ls_ausp
                   TRANSPORTING cuobf.
          ENDLOOP.
          IF sy-subrc = 0.
            SELECT matnr
            FROM mara
            INTO CORRESPONDING FIELDS OF TABLE lt_matnr
            FOR ALL ENTRIES IN lt_ausp
            WHERE cuobf EQ lt_ausp-cuobf.
          ENDIF.
        ENDIF.
        SHIFT strwhere RIGHT DELETING TRAILING 'AND'.
        IF NOT s_matnr-low IS INITIAL.
          SELECT mara~matnr
          FROM mara
                JOIN makt ON mara~matnr = makt~matnr
          INTO CORRESPONDING FIELDS OF TABLE lt_matnr
          WHERE (strwhere) " mara~prdha IN s_categ AND spras IN s_spras "
        ENDIF.
        LOOP AT lt_matnr INTO ls_matnr.
          APPEND ls_matnr TO record_tab.
        ENDLOOP.
        callcontrol-step = 'DISP'.
        CLEAR s_categ.
        CLEAR lt_matnr. REFRESH lt_matnr.
        CLEAR ls_matnr.
      ENDIF.
    * STEP DISP     (Display values)
    * This step is called, before the selected data is displayed.
    * You can e.g. modify or reduce the data in RECORD_TAB
    * according to the users authority.
    * If you want to get the standard display dialog afterwards, you
    * should not change CALLCONTROL-STEP.
    * If you want to overtake the dialog on you own, you must return
    * the following values in CALLCONTROL-STEP:
    * - "RETURN" if one line was selected. The selected line must be
    *   the only record left in RECORD_TAB. The corresponding fields of
    *   this line are entered into the screen.
    * - "EXIT" if the values request should be aborted
    * - "PRESEL" if you want to return to the selection dialog
      IF callcontrol-step = 'DISP'.
    *    PERFORM authority_check TABLES record_tab shlp_tab
    *                               CHANGING shlp callcontrol.
    *    EXIT.
      ENDIF.
    ENDFUNCTION.
    It's true that it was not obligatory to do something in that perform (that's why it's still commented), but still I did not have to change the name in F4UT*.
    If there is a special reason i have to change it in F4UT* pls tell me.
    Thanks again for you help.
    Edited by: Marius Cosmin Stoica on Aug 19, 2008 8:13 PM

  • Question about searh help exit

    Hi all
    Can we implement our owen serch help exit , for instance Z_SHL_EXIT, and put it in the search help exit og the sap standar search help , in order to change its behavior or to call another search help.
    let say that sap has a search help called CRAMA , but I want to delete some fields and add an extra field to it , then I can create an Z_CRAMA based on CRAMA after my requirement .
    I can not change the way of calling the CRAMA  and call Z_CRAMA.
    Now , would I be able from CRAMA SEARCH HELP EXIT call Z_CRAMA searh help and use it.
    Thanks in advance.

    For the particular field you have in mind, how is the elementary search help accessed?  Directly or via one of the collective search helps?  If via one of the collective search helps, you would be better off copying CRAMA, modifying it, then including it as an additional elementary search help with it's own title to differentiate it.  Once the users start using it, it will be the default tab that shows up first in the collective help.

  • Help needed in search help exit

    Hi Experts,
       I have used a search help exit in IL03 transaction to include a field in a particular search tab. I have written the code in timepoint PRESEL1 and it is showing the search field in that search tab when I directly enter into that tab.
    But the problem comes when I go to some other search tab and come to the required search tab the field which I have included is not displayed.
    Please give your suggestions to solve this problem.
    Thanks in Advance,
    Arasu K

    Hi,
          In that case. you can do one thing.
    in your search help, following field will have the value entred by the user.
    SHLP_TAB[1]-INTERFACE[1]-VALUE
    Read this table SHLP_TAB index 1 and do your logic.
    Reward points if useful.
    Regards,
    Niyaz

  • Search help exit for CSH_T003 not working in FB60

    Hi. We need to restrict document types per transaction code.
    I know we can use authorisations but it would look nicer to actually restrict the list available, so the user can only choose a valid one, rather than choose any but then be told of authorisation problems.
    I put a user exit on the collective search help CSH_T003 and also on the individual H_T003 and set a break point right at the start of the user exit, but it does not break in transaction FB60.
    Does anyone know if it is possible to use a search help exit in transaction FB60? If it is possible what am I doing wrong?
    Thanks a lot for your help.
    Regards,
    Dave.

    Hi ,
    If you are looking to retrict a specific document type for FB60. You can do so, by customizinng "a/c payable & receivable> Busi Trans > Outgoing invoices/Credit memo>Outgoing invoices/Credit memo enjoy.
    Then in Fb60, go to "editing option" and hide the doc type under "Document type option". This will only work if you want to use a specific doc type for FB60.
    Thanks
    Ron
    Edited by: Ron on Dec 2, 2009 8:45 PM

  • Help on Search Help Exit

    Hi all,
    In transaction code IW51: Create Notification.
    Equipment Field is on Main screen and Ship-to Party is on Subscreen. I have created a new elementary Search help for Ship-to party and attached to collective search help DEBI in which I am displaying one column of equipment number attached to ship-to party.
    Requirnment is when user hits F4 on Ship-to party, all the equipment associated to this ship-to party are displayed,if user clicks on any of equipment number , this has to be filled in equipment field which is on Main screen.
    I think if fields are on same screen it will be filled automatically, but here the equipment is on main screen.
    Please help me if any of you have faced this type of problem.
    Thanks in Advance,
    Vijendra

    Hi,
    If you trying supply value for the equipment field in the main screen, i guess you wouldn`t be able to do it using the search help exit. Rather on the exit you can supply values for the equipment field directly.
    just for eg.  xxxx-equip. = <user selected value>.
    Regards

  • Search Help Exit with portal (webdynpro)

    Hi,
    I'm implementing a customised search help for CAT2. In the portal it is using the webdynpro. I'm using the search help exit to populate the hit list that i want it to appear at both the R/3 backend and the portal side. I've also added the search help to the the table TCATS_SHLP_ITS where it defines the display field for the portal side.
    It is working fine where the hit list is populating correctly. However, when the user select the record from the hit list, i want to display another value that i've populated at the search help exit to the expected field on the portal screen. HOw can i do that? FYI, the 1st display field in the table TCATS_SHLP_ITS, is not the value that i want it to display at the selected field on the portal screen.
    Kindly assist. Many thanks.
    Cheers,
    Loo

    Hi,
    Were you able to resolve this issue.
    Thanks,
    Tanuj

  • Search help exit in H_T001P

    Hi,
    I tried using the search help exit in the search help  h_t001p .
    It works for Tcode PA30 and does not work for PA40.
    Any idea why?
    am i missing something?
    Thanks & Rgds
    G

    Hi gayatri,
              in transaction screen see for the  field search is assigned or not.
    if you tell exactly for which field and screen no i will check and let you know.
    thanks
    vinod

  • Populate and display internal table results using search help exit...

    I have copied F4IF_SHLP_EXIT_EXAMPLE and made changes. I want this search help exit to populate and display contents related to 'FIELD1' when the user enters a specific value for it in the search help screen, meaning when the user restricts the search by that value.  For field2, field3, field4, field5, field6, field7, and field8 I am using a custom view.
    Following is the code:
    TYPES:  BEGIN OF t_search,
                   field2 TYPE field2,
                   field3 TYPE field3,
                   field4 TYPE field4,
                   field5 TYPE field5,
                   field6 TYPE field6,
                   field7 TYPE field7,
                   field8 TYPE field8,
                   field1 TYPE field1,
                END OF t_search.
      DATA: it_itab TYPE TABLE OF t_search,
            wa TYPE t_search,
         wa_selopt TYPE ddshselopt,
            wa_fielddescr TYPE dfies.
    ranges: r_field1 for std_table1-field1
    STEP SELECT    (Select values)
        FREE: r_field1.
    **Get the value entered for FIELD1 in search help
        LOOP AT shlp-selopt INTO wa_selopt.
          CASE wa_selopt-shlpfield.
            WHEN 'FIELD1'.
              r_field1-sign = wa_selopt-sign.
              r_field1-option = wa_selopt-option.
              r_field1-low = wa_selopt-low.
              r_field1-high = wa_selopt-high.
              APPEND r_field1.
              CLEAR: r_field1.
          ENDCASE.
        ENDLOOP.
    **Select 'ID' and 'FIELD1' from table into lt_itab
        SELECT id field1
              INTO TABLE lt_itab
                FROM std_table1
                  WHERE field1 IN r_field1.
        IF sy-subrc = 0.
    **Now, based on the particular IDs from lt_itab, I need to select other values
    from other tables which also have 'ID' as the key.
           SELECT std_table2~field2
                std_table2~field3
                std_table3~field4
                std_table3~field5
                std_table3~field6
                std_table4~field7
                std_table4~field8
                std_table1~field1
              INTO CORRESPONDING FIELDS OF TABLE it_itab
              FROM std_table2
                         INNER JOIN std_table3 ON
                                std_table3mandt = std_table2mandt AND
                                std_table3id = std_table2id
                         INNER JOIN std_table4 ON
                                std_table4mandt = std_table2mandt AND
                                std_table4id = std_table2id
                         INNER JOIN std_table1 ON
                                std_table1mandt = std_table2mandt AND                                           std_table1id = std_table2id
              WHERE
                    std_table1~field1 IN r_field1.
    'id' is common in all the std_tables --> std_table1, std_table2, std_table3, std_table4.
    STEP DISP     (Display values)
    **Then I need to gather all the results in my internal table it_itab and display
    in search help results for the value of FIELD1 entered by the user in the search help.
        CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
          EXPORTING
            parameter   = 'FIELD1'
            fieldname   = 'FIELD1'                          
          TABLES
            shlp_tab    = shlp_tab                                   
            record_tab  = record_tab
            source_tab  = it_itab
          CHANGING
            shlp        = shlp
            callcontrol = callcontrol.
    I am not getting all the data in my internal table and wanted to know if there is anyting wrong in my select statement.
    Any guidance will be appreciated and awarded appropriate points.
    Thanks.

    the webdynpro fieldname and the search help input parameter name were made same.

  • Set a parameter value using Search help exit

    Hi All,
    I want a search help such as If I enter a warehouse number on my screen then search help for storage bins should have that warehouse number populated in selection dialog.
    I guess i have to write some code in search help exit if CALLCONTROL-STEP = 'PRESEL'.
    But I am not able to set the warehouse value to parameter.
    Does any one have done something like this?
    Thanks in Advance,
    Shailly

    Hi Shailly,
    I don#t know if that will be the best option for you, but you can make use of the abap program event at value request for your parameter_id.
    What you need is to insert a similar code like the one below:
    at selection-screen on value-request for p_param
      select fielda fieldb from storage bin table into gi_warehouse_bin
                 where  warehouse = warehouse parameter.
      delete adjacent duplicates from gi_zzdez comparing all fields.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
         retfield               = space
         dynpprog               = 'REPORT_NAME'
         dynpnr                 = '1000'
         dynprofield            = 'P_BIN'
         window_title           = 'Text'
         value_org              = 'S'
        tables
          value_tab              = gi_warehouse_bin
       exceptions
         parameter_error        = 1
         no_values_found        = 2
         others                 = 3
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Cheers,
    Florin

  • Using SEARCH HELP exit in dependency of other parameters from my dynpro.

    Hello experts,
    how can I access the values of input fields (parameters or select-options) from my dynpro?
    I need to build a F4-help in dependencie of another field on the screen with help of the F4 - exit. I think this should be possible.
    If I do test the search help with SE11 it works fine. All parameters from screen are given in SHLP_TAB[1]-INTERFACE (the parameter of my f4-help-exit)
    The short example explains the problem more detailed.
    REPORT  test_dynpro_events_ck.
    PARAMETERS ea1 TYPE my_char_10_ck DEFAULT 'here I push F4' MATCHCODE OBJECT MY_F4_HELP_CK.
    PARAMETERS ea2 TYPE my_char_10_ck DEFAULT 'this is the value I need to generate the F4 help of field ea1'.
    MY_F4_HELP_CK:
    import: EA1 and EA2
    export EA1
    Many Thanks
    Christian

    Thank you so far.
    But how are these parameters passed to the search help without using global set/get parameters or DYNPRO_READ_VALUE? Why can I put these parameters to my search help as input parameters ... seems to be useless if I use search help on Selection-Dynpros?
    Is there not a better way to deal with search-helps which are dependent from other input fields? Btw. I need the value without passing PAI and PBO.
    In my Example:
    doing some text inputs in field EA2 -> hit search help on EA1 -> need a selection dialog in dependency of the input in EA2. This can not be that complicated?
    Many thanks
    Christian

  • Search Help exits using Web Dynpro abap

    Hi,
    Before returning the values selected by the user to the input field, i have to set a column of the F4 result list based on some computation. How can i do that?
    i.e to set a field value dynamically using search help exit
    plz reply.
    Thanks & Regards,
    Raji.

    Hi Raji,
    The blog mentioned by micheal is written by me.
    Go through the blog and let me know your queries.Lets see if i can help you

Maybe you are looking for

  • Logo image is not placed in the application

    dear sir, What I did I had gif image ias d:\image\raghu.gif I went to shared components where i find images. I browsed and located the the above image and clicked the upload button. I just ensured by doing second time and got message that i already h

  • Non facing pages with two masters

    My pre-press contact has advised me to create documents without facing pages checked. I'm not 100% sure why since I'll be exporting to .pdf anyway, allowing them to impose the pages.  She just said that facing pages "nearly always cause problems." Ho

  • I am not able to signin to itunes? it shows network error!

    hi there, can anyone help me how to reslove this issue. i am not able to login to itunes store, it says  unknow error occured(310) check network setting. hope to reslove this issue soon... Thnaks

  • HT201444 The iPhone could not be restored. An unknown error occurred (4013).

    Hi I am attempting to restore my Iphone 4 but keep getting the above message. I've deleted and re-installed Itunes but no go! Any assistance would be appreciated

  • AttachBitmap movie clip

    I have a local webcam stream appearing on the stage in a movieclip. When I click a "snapshot button", a still image from the webcam gets attached to a new movieclip on the stage with attachbitmap and then draw() The snapshot shows up in the movieclip