Skip to Content
0
Former Member
Mar 02, 2006 at 02:57 PM

How to take value from html Dropdown menu?

72 Views

Hi to all,

I have a HTML based dropdown menu, it takes the values from R/3 and show the values in the list. But I cannot use this choosen value in my program.

<b>code of layout</b>

<%@page language="ABAP"%>

<%

data: med type table of T502T.

field-symbols: <med> like line of med.

select * from T502T into table med where SPRSL = 'T'.

%>

<b><select size="1" style="font-family: Verdana; font-size: 8pt; name="famst" >

<%

loop at med assigning <med>.

%>

<option value="<%=<med>-FAMST%>"

<%if FAMST = <med>-FAMST.%> selected<%endif.%> >

<%= <med>-ftext%>

</option>

<%

endloop.

%>

</select></b>

<b>In the event_handler part</b>

I try to assign the choosen value

wa1-famst = FAMST.

There is no problem with text-input fields.

Any idea?

regards,

Hasan