Application Development and Automation 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: 
Read only

Regarding ListBox

Former Member
0 Likes
329

How to add values that are selected from database into the listbox dynamically.

2 REPLIES 2
Read only

Former Member
0 Likes
304

Use FM <b>VRM_SET_VALUES</b>

ALSO Check <b>DEMO_DYNPRO_DROPDOWN_LISTBOX </b>

Check these out

Regards,

Santosh

Read only

Former Member
0 Likes
304

Magesh,

type-pools: vrm.

parameters: p_bname type usr01-bname as listbox visible length 20.

initialization.

perform build_user_drop_down_list.

start-of-selection.

write:/ p_bname.

************************************************************************

  • build user_drop_down_list

************************************************************************

form build_user_drop_down_list.

data: name type vrm_id,

list type vrm_values,

value like line of list.

data: iusr01 type usr01 occurs 0 with header line.

clear list. refresh list.

name = 'P_BNAME'.

select * into corresponding fields of table iusr01

from usr01.

sort iusr01 ascending by bname.

loop at iusr01.

clear value.

value-key = iusr01-bname.

value-text = iusr01-bname.

append value to list.

endloop.

  • Set the values

call function 'VRM_SET_VALUES'

exporting

id = name

values = list.

endform.

pls. reward if useful