Custom search help exit through stand search help SD_MAT1

Dear Experts,
How to prepare custom search help through stand search help(SD_MAT1).
My requirement: In VA01 transaction, material(matnr) search help, adding custom search help.
Regards,
Abbas.

Dear Abijith,
How to write custom search help(FM) code with parameters and how match with search help parameters in search help exit.  Please give some sudo code.
Regards,
Abbas.

Similar Messages

  • Steps for creation of search help exit for a search help

    Hi,
    I have created a search help. I need to create a search help exit for this search help.
    Please let me know how to create a search help exit as well as how to link it to my search help.

    1)Copy the FM F4IF_SHLP_EXIT_EXAMPLE to write your own FM. (check the documentation and coding of FM F4IF_SHLP_EXIT_EXAMPLE).
    2)write your code depending upon the functionality you want.
    3)attach the FM in search help through SE11 in "search help exit" field.
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    For more detailed information please refer to the documentation describing the concept of the search help exit.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.

  • How to add the custom help exit to search help in SE11

    Hi All,
    I am trying to add the ZF4IF_SHLP_EXIT_EXAMPLE to search help exit in SE11 for search help LART . But system is asking for the access key.
    Is there any way we can achieve this with out using access key?
    Please suggest me.
    Regards
    Subhaskar

    Hi,
         To add a Search help exit goto SE11 -> in Search help option enter 'LART' -> click on display.
    once you have entered in you will have to click on change button. This will give on information message first, then it will ask if you have to maintain in the original language itself(only if you have logged in with any language other than DE). You can select your option in that then you will be able to view the same in EDIT mode. now you can go ahead and add your search help exit.
    Hope it helps.
    Thanks & Regards,
    Praveenkumar T.

  • 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.

  • Search Help Exit - Dependent Search Help

    Hello All
    My question is related to Sarch Help in SE11.
    I have created a Search Help and implemented a Search help Exit.In My search help i have PLANT  and LGORT(storage loc.).
    and i have taken the Search help of PLANT and LGORT from T001L table( H_T001W and H_T001L).
    Now on the SELECTION SCREEN of SEARCH HELP ,based on PLANT selected, the Storage Location should come with filtered records based PLANT.
    A kind of Dependent Seach help.
    I have Checked that in TABLE T001L, when i do F4 on PLANT and then if i do F4 on LGORT it comes with the filtered records.
    Kindly Help.
    Points will be Awarded.

    *Below is the Code:-
    IF callcontrol-step <> gc_selone AND  "SELONE
         callcontrol-step <> gc_select AND  "SELECT
         callcontrol-step <> gc_disp   AND  "DISP
         callcontrol-step <> gc_presel.    "PRESEL
        EXIT.
      ENDIF.
      "Checking Call Control Step is "PRESEL" For doing Validation and
      "changing the field Label before displaying the Scren.
      IF callcontrol-step = gc_presel."'PRESEL'.
        ASSIGN shlp TO <fs_shlp1>  .
        READ TABLE <fs_shlp1>-interface ASSIGNING <fs_shlp2> WITH KEY f4field = gc_x."X
        IF sy-subrc = 0.
          <fs_shlp2>-f4field = gc_space."' '.
        ENDIF.
    *Renaming Internal Characteristic to Characteristics Name
        LOOP AT <fs_shlp1>-fielddescr ASSIGNING <fs_shlp3>.
          IF <fs_shlp3>-fieldname = gc_flag."Renaming "FLAG" to "NO ZERO STOCK BATCH"
            <fs_shlp3>-fieldtext =  text-001.
            <fs_shlp3>-reptext   =  text-001.
            <fs_shlp3>-scrtext_s =  text-002.
            <fs_shlp3>-scrtext_m =  text-001.
            <fs_shlp3>-scrtext_l =  text-001.
          ELSEIF <fs_shlp3>-fieldname = gc_lgort."Renaming "STORAGE LOCATION".
            <fs_shlp3>-fieldtext =  text-005.
            <fs_shlp3>-reptext   =  text-005.
            <fs_shlp3>-scrtext_s =  text-006.
            <fs_shlp3>-scrtext_m =  text-005.
            <fs_shlp3>-scrtext_l =  text-005.
          ENDIF.
        ENDLOOP.*Validation for PLANT
        CALL FUNCTION 'F4UT_PARAMETER_REQUIRED'
          EXPORTING
            parameter_required = gc_werks "Field to be mandatory('WERKS')
          TABLES
            shlp_tab           = shlp_tab
            record_tab         = record_tab
          CHANGING
            shlp               = shlp
            callcontrol        = callcontrol.
      ENDIF.
      IF callcontrol-step = gc_select.   "SELECT*Reading all the Values given at screen.
        PERFORM read_shlp USING shlp.
        IF ( r_atwrt  IS NOT INITIAL  OR r_atinn IS NOT INITIAL ).*If user has only given CHARACTERISTICS and VALUE as selection criteria.
          PERFORM char_value_fetch.
        ELSEIF r_matnr IS NOT INITIAL OR r_werks IS NOT INITIAL OR r_lgort IS NOT INITIAL.*If user has only given any value other than CHARACTERISTICS and VALUE as selection criteria.
          PERFORM fetch_other_details.
          IF gv_flag = gc_x. "'X'
            DELETE gt_final WHERE clabs = gc_labst.
            DELETE gt_final WHERE cinsm = gc_labst.
          ENDIF.
          EXIT. "Don't process STEP DISP additionally in this call.
        ENDIF.*Prepare Final Table
      ENDIF.
      IF callcontrol-step = gc_disp. "DISP*Refreshing the RECORD_TAB and Populating it with values of GT_FINAL
        REFRESH:record_tab.
        callcontrol-maxexceed = gc_x. "X*This Method Fills the RECORD_TAB from GT_FINAL to display.
        CALL FUNCTION 'F4UT_RESULTS_MAP'
          TABLES
            shlp_tab          = shlp_tab
            record_tab        = record_tab
            source_tab        = gt_final
          CHANGING
            shlp              = shlp
            callcontrol       = callcontrol
          EXCEPTIONS
            illegal_structure = 1
            OTHERS            = 2.
        IF sy-subrc <> 0.* Implement suitable error handling here
        ENDIF.*Refreshing GT_FINAL
        REFRESH: gt_final,r_matnr,r_atwrt,r_atinn,r_klart,r_werks,r_lgort,shlp_tab,gt_mchb,gt_mara,gt_makt,gt_ausp,gt_mcha.
        CLEAR:gv_flag.
      ENDIF.

  • Urgent-SEARCH HELP EXIT ISSUE

    Hi All,
    I have developed a search help exit for the search help-H_T604, for field STAWN-commodity code.
    When I logon with the my user id, and press F4 for this field, the search screen appears. However, when I use any other login, I do not get this search option and nor are the value options displayed. Please note that this happens only for the material master(MM03). When we are in transaction ME23N, when we press F4 for the same field(STAWN), irrespective of the user login id, we get the search option.
    Please Help.
    Thanks and Regards
    Veena

    Hello Veena,
    hav u checked onething. Any of the exit in MM03 does they checked Sy-UNAME. Please check it.
    Vasanth

  • 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

  • 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.

  • Is SAP MDM master data search possible through Enterprise Search?

    Hi Everyone
    I was looking at finding if the SAP MDM master data search is possible through Enterprise Search?
    Is so, Please provide a bit of technical guide on the same.
    Regards
    Navneet

    Hi Navneet,
    first releases of SAP NetWeaver Enterprise Search featured a preliminary connector to federate SAP MDM's search functionality. However, as no object level access authorization control could be implemented on the current MDM APIs, we have discontinued to deliver that prototype connector. We will be back with access-authorization-controlled connectivity in one of the future releases.
    Best, Karsten

  • Customer field account assignment - F4 - search help exit

    Hi all,
    I have a question with regard to a F4 search help exit I'm try to build for a new CUF in the account assignment (include INCL_EEW_PD_ACC_CSF).
    I've successfully created everything (search help + F4 search exit (read R/3 table)), but when I want to include restricted the search with certain filter values entered on the screen I'm stuck.
    I tried to achieve this by passing the parameters entered on the search screen to the RFC read table function, but in fact I'm not able to read the <b>screen values</b> (using 'DYNP_VALUES_READ'):
    CALL FUNCTION 'DYNP_VALUES_READ'
            EXPORTING
              dyname               = lc_dyname_1
              dynumb               = lc_dynumb_1
              translate_to_upper   = 'X'
            TABLES
              dynpfields           = li_fields_filter
    I'm always getting an invalid dynpro error (I've tried passing SAPLBBP_PDH_ACC, SAPLBBP_SC_UI_ITS, SAPLBBP_CUF,...).
    Does anybody know how I can include de filter values of my search screen in my search ?
    Thanks in advance,
    Kristof

    Hi
    Which SRM version are you using ? What's your detailed requirement ?
    <b>You need to call these function modules inside your search help exit to fetch the user-entered value and then process it accordingly as per your requirements.</b>
    <u>Please go through these function modules.</u>
    *--- Get the user-entered fieldname
    <u>    CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'</u>
    *--- Map the Results
    <u>    CALL FUNCTION 'F4UT_RESULTS_MAP'</u>
    <b>Other related links -></b>
    Re: Search helps - CASE sensitive
    Re: Search Help - format problem
    Hope this will help.
    Regards
    - Atul

  • Issue Search Help Exit for Material Group

    Dear Expertsl,
    I developed a search help exit for material group for the search helps both H_T023 and H_2023_MEPO to restrict certain material groups from the actual display as follows
    1)  I developed custom table to hold the Invalid material groups
    2) Developed search help as same as in the bellow link
    link:[https://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterial+Group]
    3) Before the statement
        SELECT matkl wgbez wgbez60 FROM t023t INTO s_t023t
          WHERE matkl IN t_matkl
    i selected the Invalid materials from the custom table into an internal table
    4)    i am restricting the entries with the following code.
    LOOP AT a_tab.
    only move values that meet the requirements
    after you convert to upper case.
         MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
         TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
            MOVE      a_tab-wgbez        TO a_tab-wgbez_test.
            TRANSLATE a_tab-WGBEZ_test   TO UPPER CASE.
            MOVE      a_tab-wgbez60      TO a_tab-wgbez60_test.
            TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
          IF a_tab-wgbez60_test IN i_wgbez60 AND
             a_tab-wgbez_test   IN i_wgbez   AND   
             a_tab-matkl        IN i_matkl.
            ADD 1 TO findex.
            MOVE a_tab-matkl   TO temp_tab-matkl.
            MOVE a_tab-WGBEZ   TO temp_tab-WGBEZ.   
            MOVE a_tab-wgbez60 TO temp_tab-wgbez60.
            IF findex > callcontrol-maxrecords.
              MOVE 'X' TO callcontrol-maxexceed.
              EXIT.
            ENDIF.
            READ TABLE i_invalid INTO w_invalid
            WITH KEY matkl = a_tab-matkl.
            IF sy-subrc NE 0.
              APPEND temp_tab.
            ENDIF.
            CLEAR temp_tab.
          ENDIF.
        ENDLOOP.
    This is working fine when we press F4 in ME21N Transaction and give some description and then press enter the popup screen.
    But my requirement is user will enter some description in ME21N material group field and press enter ( Not pressing the F4 here) at this moment this is not going through the search help exit and displaying all the entries including the Invalid materials.
    Note: We can delete the Invalid material groups but the documents which are having the invalid material already will have an issue and need to be corrected all the documents. But our requirement is only to use the correct materials  groups from now onwards.
    I would appropriate if any one can helping this regard.
    Thanks in advance.,
    Regards,
    Venkat

    Hi Venkat,
    You can call your ZSEARCH_HELP from the PAI , on the event SY-UCOMM = Enter using the function module F4IF_FIELD_VALUE_REQUEST.
    For example, your screen field is MARA-ZXXXX, screen 0100 and search help :  ZSEARCH_HELP
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname                   = 'MARA'
          fieldname                  = 'ZXXXX'
          searchhelp               = 'ZSEARCH_HELP '
          dynpnr                      = '0100'
          dynprofield                =  'MARA-ZXXXX'
    TABLES
       return_tab                = lt_returntab.
    This F4IF_FIELD_VALUE_REQUEST will call your custom search help exit.
    Regards
    Deepa.

  • SY-TABIX within a search help exit...

    Hallo all,
    I tried to find an answer in earlier postst, but did not succeed, therefore this message.
    I have built a customtabel with several columns. For one of the columns I have built a custom search help, including some coding in the search help exit. In this coding I want to do a different selection based on the value in another column (BUKRS) of the same table. Do you understand what I mean?
    The trick is to retrieve the right value of in the column BUKRS in the same line of the table, at the moment I am pushing F4 for another column.
    And I dont know how to do this. I dont have the right SY-TABIX value, so this is not helping.
    Does anybody have an idea as how to tackle this?
    Kind regards,
    Erik

    Hello Francois & Holger,
    Thanks for the reply, but Iu2019m calling this searh help from the transaction SE16 itself, so I donu2019t have my own table control. I am also using the search help in another situation (from a custom-made screen) and here I can pass on the value via a parameter, but this is not working in the case I described.
    So the SY-STEPL is not working too....
    Kind regards,
    Erik

  • Getting values from screen to search help exit

    Hi Experts,
    I have created a search help in which I am not using selection method but search help exit. Dialog type is 'Dialog with value restriction'. My requirement is to get the values entered in restriction screen into search help exit. Please suggest a parameter which will hold this value in search help exit function module.

    Hi M,
    As you know there are 5 steps in search help exit. For each step, the values in parameter of your search help exit is different.
    For your requirement, you need process in step 'DISP', and get the selection value from 'SHLP-SELOPT'.
    Example:
    *Build range for customer number 
    LOOP AT shlp-selopt INTO ls_selopt WHERE shlpfield = 'KUNNR'.   
      lr_kunnr-sign = ls_selopt-sign.   
      lr_kunnr-option = ls_selopt-option.   
      lr_kunnr-low = ls_selopt-low.   
      lr_kunnr-high = ls_selopt-high.   
    APPEND lr_kunnr.   
    CLEAR: lr_kunnr. 
    ENDLOOP.
    Then using the lr_kunnr range in your select statement.
    regards,
    Archer

  • 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.

  • How to create Search help exit, and then assign it to a collective search

    hi gurus,
    i have an intersting question for you, well my scenario is like i have to create a search help exit using some function module cause i didt found table for my search help but i can find the value through FM, i know we can create a search help exit and then assign it to collective search help,
      my problem is what are the parameters i need to pass to this search help exit FM, and in the function module i want to use the value entered on the f4 selection screen to extract data through FM. i need to give a solution  asap.
    any reply will be highly appreciated
    n rewards points for sure.
    thanks mandy

    Hi mandy,
    Have a look at this code,
    FUNCTION SHLP_SHOW_LIST.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(PLANT) TYPE  WERKS_D OPTIONAL
    *"     VALUE(DISPLAY_ONLY) TYPE  FLAG OPTIONAL
    *"  EXPORTING
    *"     REFERENCE(ITEM_SELECTED) TYPE  CHAR20
    *"  EXCEPTIONS
    *"      POPUP_CANCELED
    TYPE-POOLS SHLP .
    CONSTANTS:
            co_shlpname            TYPE shlpname   VALUE 'SHLP_CONTAINER',
            co_shlpfield_itemalias TYPE ddshlpsfld VALUE 'CONTAINER'.
      DATA: l_shlp         TYPE shlp_descr_t,
            l_subrc        TYPE sysubrc,
            l_return_tab   TYPE STANDARD TABLE OF ddshretval,
            l_return_wa    TYPE ddshretval,
            l_interface_wa TYPE ddshiface.
    Get details for search help
      CLEAR l_shlp.
      l_shlp-shlpname  = co_shlpname.
      l_shlp-shlptype  = 'SH'.
      CALL FUNCTION 'DD_SHLP_GET_HELPMETHOD'
           CHANGING
                shlp = l_shlp.
    Assign virtual screen field
      READ TABLE l_shlp-interface INTO l_interface_wa
      WITH KEY shlpfield = co_shlpfield_itemalias.
      l_interface_wa-value      = space.
      l_interface_wa-valtabname = 'X2'.    "virtuel screen field
      l_interface_wa-valfield   = 'Y2'.    "virtuel screen field
      MODIFY l_shlp-interface FROM l_interface_wa INDEX sy-tabix.
    Call F4 popup
      CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
           EXPORTING
                shlp          = l_shlp
                disponly      = display_only
           IMPORTING
                rc            = l_subrc
           TABLES
                return_values = l_return_tab
           EXCEPTIONS
                OTHERS        = 0.
      IF sy-subrc = 0 AND l_subrc = 0.
      Value selected
        READ TABLE l_return_tab INDEX 1 INTO l_return_wa.
        item_selected = l_return_wa-fieldval.
      ELSE.
      Popup canceled / no value selected
        RAISE popup_canceled.
      ENDIF.
    ENDFUNCTION.
    make sure to call these FMs and populate accordingly...
    Thanks
    Madhu

Maybe you are looking for