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: 

ID of selected value from a Dropdown list

thillu
Explorer
0 Kudos

Hello, I made a drop down list to allow the user to choose a year. I can display my dropdown list, but how can I get the ID of the selected value ?

wa_current_year = wa_year_max.
WHILE wa_current_year >= wa_year_min.
wa_listbox-key = wa_current_year.
wa_listbox-text = wa_current_year.
append wa_listbox to it_listbox.
wa_current_year = wa_current_year - 1.
ENDWHILE.

ld_field = 'GV_COMBOBOX_YEAR'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = ld_field
values = it_listbox.

1 REPLY 1