Skip to Content
author's profile photo Former Member
Former Member

list box with search help

hi,

can anybody tell me what is the function module for displaying the list with search help.

thanks.

Edited by: priya patil on Jul 24, 2008 10:19 AM

Edited by: priya patil on Jul 24, 2008 10:19 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 08:38 AM

    TYPE-POOLS : vrm.

    DATA : int_list TYPE vrm_values.

    DATA : int_values LIKE LINE OF int_list.

    DATA : wf_vrm_id TYPE vrm_id.

    PARAMETER : p_dtype(13) TYPE c AS LISTBOX VISIBLE LENGTH 15.

    hello,

    hope this helps u

    AT SELECTION-SCREEN OUTPUT.

    • To fill the list to be passed to the FM

    wf_vrm_id = 'P_DTYPE'.

    int_values-key = text-007.

    int_values-text = text-007.

    append int_values to int_list.

    clear int_values.

    int_values-key = text-008.

    int_values-text = text-008.

    append int_values to int_list.

    clear int_values.

    • FM to populate the drop down box.

    call function 'VRM_SET_VALUES'

    exporting

    id = wf_vrm_id

    values = int_list.

    Mark the post answered once ur problem is solved .... 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 09:27 AM

    hi

    SEARCH_HELP_EFFECTIVITY

    SEARCH_HELP_TECS

    try these FM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2008 at 09:27 AM

    Hi,

    for more info,

    list-box

    Regards

    Adil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 09:29 AM

    Hi,

    Refer to this link:

    http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm

    Also try using this FM F4IF_INT_TABLE_VALUE_REQUEST.

    Regards,

    Shailaja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 10:14 AM

    hello,

    TABLES : zark_alv_test.

    DATA : BEGIN OF int_tab_id OCCURS 0,

    name TYPE char20,

    END OF int_tab_id.

    PARAMETER : p_name(20) TYPE c.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name .

    int_tab_id-name = 'tina'.

    APPEND int_tab_id.

    int_tab_id-name = 'mina'.

    APPEND int_tab_id.

    int_tab_id-name = 'hina'.

    APPEND int_tab_id.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    retfield = 'NAME'

    dynpnr = sy-dynnr

    dynpprog = 'ZARK_TRIAL'

    dynprofield = 'P_NAME'

    value_org = 'S'

    TABLES

    value_tab = int_tab_id.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 06:01 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 09:10 AM

    hi tell me first whether you want to display the listbox help should be the from the standard table then check this....

    report .

    TYPE-POOLS : vrm.

    TABLES:vbak,vbap.

    DATA : v(80) TYPE c.

    DATA: wa_vbak TYPE vbak,

    it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,

    wa_vbap TYPE vbap,

    it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.

    DATA: l_name TYPE vrm_id,

    li_list TYPE vrm_values ,

    v_count TYPE i,

    l_value LIKE LINE OF li_list.

    PARAMETERS: p_test(20) AS LISTBOX VISIBLE LENGTH 60 MODIF ID DAT.

    INITIALIZATION.

    AT SELECTION-SCREEN OUTPUT.

    PERFORM get_data.

    LOOP AT it_vbak.

    l_value-key = it_vbak-vbeln .

    l_value-text = it_vbak-vbeln .

    APPEND l_value TO li_list.

    ENDLOOP.

    CALL FUNCTION 'VRM_SET_VALUES'

    EXPORTING

    id = 'P_TEST'

    values = li_list

    EXCEPTIONS

    id_illegal_name = 1

    OTHERS = 2.

    AT SELECTION-SCREEN ON P_TEST.

    clear : li_list , li_list[].

    SELECT vbeln

    matnr

    meins

    FROM vbap

    INTO CORRESPONDING FIELDS OF TABLE it_vbap

    WHERE vbeln = p_test.

    START-OF-SELECTION.

    SELECT vbeln

    matnr

    meins

    FROM vbap

    INTO CORRESPONDING FIELDS OF TABLE it_vbap

    WHERE vbeln = p_test.

    LOOP AT it_vbap.

    WRITE :/ it_vbap-vbeln, it_vbap-matnr,it_vbap-meins.

    ENDLOOP.

    &----


    *& Form get_Data

    &----


    • text

    ----


    • --> p1 text

    • <-- p2 text

    ----


    FORM get_data .

    SELECT vbeln

    FROM vbak

    INTO CORRESPONDING FIELDS OF TABLE it_vbak.

    ENDFORM. " get_Data

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.