I made an drop down list, but now I want to select a special item automaticly.
data: dataref2 type ref to data,
titel type SHSVALTAB.
get reference of zTSAD3T-TITLE into dataref2.
CALL METHOD runtime->ddic_utils->get_simple_helpvalues
data_object_ref = dataref2
helpvalue_tab = titel.
and in the BSP-page:
<htmlb:dropdownListBox id = "anrede"
nameOfKeyColumn = "key"
nameOfValueColumn = "VALUE"
selection = "<%= anrede %>"
table = "<%= titel %>" />
It works, but now there is a field, "anrede", which has the value "Herr" and this value must be the selected item in the dropdownlist, when it is been shown the first time.
Had anyone an idea?