Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Drop down list

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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

former_member188827
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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?

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.