Skip to Content
avatar image
Former Member

Drop down list

When i use input boxes in my form and I pull data from a table declared and used in my program, in this case, SFLIGHT, I donot get a drop down list box with the available values in the list. What should I do to get the drop down list?

p.s I used the "get from Program" option to get the field from the SFLIGHT table.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Aug 17, 2007 at 12:13 PM

    sorry suresh...as i said before..i dont think its got something to do with code..please check my second post for a more detailed exp of my problem.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 11:11 AM

    Hi Vijaynidhi,

    Welcome to SDN....

    Are you populating values through the VRM_SET_VALUES function module??

    Check these demo programs

    DEMO_DROPDOWN_LIST_BOX

    RSDEMO_DROPDOWN_LISTBOX

    Thanks,

    Vinay

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 17, 2007 at 11:12 AM

    wat do u mean by form here...r u creating ur own screen?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 11:30 AM

    please check this

    REPORT Zdrop_down .

    type-pools:vrm.

    PARAMETER : p_int AS LISTBOX VISIBLE LENGTH 30.

    DATA : name TYPE vrm_id,

    list TYPE vrm_values,

    value LIKE LINE OF list.

    AT SELECTION-SCREEN OUTPUT.

    name = 'P_INT'.

    value-key = '1'.

    value-text = 'raj'.

    APPEND value TO list.

    value-key = '2'.

    value-text = 'Prabhu'.

    APPEND value TO list.

    CALL FUNCTION 'VRM_SET_VALUES'

    EXPORTING

    id = name

    values = list.

    CLEAR list.

    regards,

    Prabhu

    reward if it helpful

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 11:57 AM

    Sorry guys but I do not understand wat you just said. My problem is simple. Please provide a simpler answer. 😊 ...

    This is wat i did.

    1. I created a dialog program using the object navigator and declared SFLIGHT table in the top area.

    2. I created a screen 100 with PAI and PBO logic.

    3. For the screen 100, I went to the screen painter and added 3 I/O fields. All of which I pulled from the program using the "Pull from program/dictionary option" and selected 3 fields from SFLIGHT.

    4.Now when I run the program, I should typicallly get a button near the 3 i/o fields which when click will display all the available entries for that field.

    but I do not get it. Please advice me on how to get it displayed?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 12:10 PM

    hi,

    check for any data object which has list box and declare parameter similar to that

    or write some code as

    type-pools:vrm.

    PARAMETER : p_int AS LISTBOX VISIBLE LENGTH 30.

    DATA : name TYPE vrm_id,

    list TYPE vrm_values,

    value LIKE LINE OF list.

    AT SELECTION-SCREEN OUTPUT.

    name = 'P_INT'.

    value-key = '9'.

    value-text = 'suresh'.

    APPEND value TO list.

    value-key = '99'.

    value-text = 'aluri'.

    APPEND value TO list.

    CALL FUNCTION 'VRM_SET_VALUES'

    EXPORTING

    id = name

    values = list.

    CLEAR list.

    if helpful reward some points.

    with regards,

    Suresh Aluri.

    Add comment
    10|10000 characters needed characters exceeded