08-17-2007 12:06 PM
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.
08-17-2007 12:11 PM
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
08-17-2007 12:12 PM
08-17-2007 12:30 PM
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
08-17-2007 12:57 PM
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?
08-17-2007 1: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.
08-17-2007 1: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.