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

dropdown list from db table

Former Member
0 Likes
758

Hi gurus,

i want to display a drop down list which is a table containing single field. is it possible. pls guide me to complete my task.

Thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
641

yes its possible.

PARAMETERS: name1 AS LISTBOX visible  length  45  .

   data :
         ITAB TYPE VRM_VALUES,
         WTAB TYPE VRM_VALUE.

AT SELECTION-SCREEN OUTPUT.

loop at int_urtab into wa_urtab. int_urtab = which contains data of single field.

   WTAB-TEXT = wa_urtab-fieldname.
    APPEND WTAB TO ITAB.

endloop.

call function 'VRM_SET_VALUES'
exporting
ID = 'NAME1'
VALUES = ITAB.

It will work.

Read only

Former Member
0 Likes
641

Hi,

Check this program,

  demo_dropdown_list_box

Regards,

Suman

Read only

Former Member
0 Likes
641

Hello, Enoch,

  where you want your drop down list?? tarak has given a solution on selection screen parameter....

but where you want???

Thanks

Sabyasachi

Read only

0 Likes
641

on the modulepool screen sir