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 box

Former Member
0 Likes
845

Hi,

I am creating a dropdown box for Program names,but its giving me the runtime error because there are much more enteries for the program names then the size of the dropdownbox.Please suggest me some solution.

Thanks in advance

Regards,

Asha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
816

Hi Asha,

Look at the demo program <b>DEMO_DYNPRO_DROPDOWN_LISTBOX</b>

Regards

Sudheer

7 REPLIES 7
Read only

Former Member
0 Likes
817

Hi Asha,

Look at the demo program <b>DEMO_DYNPRO_DROPDOWN_LISTBOX</b>

Regards

Sudheer

Read only

0 Likes
816

This Demo program is actually helpful, and i really feel that this is the forum where compared to questions you get to see least number of stars...don't know why people hesitate in giving points when they get their answers.

Read only

0 Likes
816

ive used the function vrm_set_values also,but still i get the the runtime error.

the problem is that i need around 2000 entries in my list,for which it gives low memory error.

I used select .. up to 50 rows for which the output was fine,but how to display all the 2000 entries at one go?

Read only

0 Likes
816

Hi asha

check this link it will solve ur problem

as i said earlier u can get easier through screen painter

http://www.sapdesignguild.org/community/design/combo.asp

Reward all helpfull answers

Regards

Pavan

Read only

Former Member
0 Likes
816

Hi

REPORT zwa_test2.

TYPE-POOLS : vrm.

tables: bkpf.

DATA : values TYPE vrm_values.

DATA : wa LIKE LINE OF values.

PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.

PARAMETERS: dd type bkpf-BSTAT user-command abc.

select-options: a for bkpf-bukrs MODIF ID buk.

select-options: b for bkpf-belnr MODIF ID SEL.

at selection-screen output.

If list_box = 2.

loop at screen.

if screen-group1 = 'SEL'.

screen-input = 0.

modify screen.

endif.

endloop.

endif.

INITIALIZATION.

wa-key = '1'.

wa-text = 'Orange'.

APPEND wa TO values.

wa-key = '2'.

wa-text = 'Red'.

APPEND wa TO values.

wa-key = '3'.

wa-text = 'Blue'.

APPEND wa TO values.

wa-key = '4'.

wa-text = 'Gray'.

APPEND wa TO values.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'LIST_BOX'

values = values

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

Ref Program: DEMO_DROPDOWN_LIST_BOX

Link:

Reward points for useful Answers

Regards

Anji

Read only

Former Member
Read only

Former Member
0 Likes
816

Hi Asha

This is the syntax

Parameters: p_listb as listbox length 10.

or 
use this 
parameters: p_bname type usr01-bname as listbox <b>visible length 80.</b>

populate the values from field1 of table1..

select field1 into table itab from table 1.

then

populate the values from field2 of table2..

select field2 into itab from table 2.

append itab.

endselect.

Use this internal table to poulate the dropdown box..

eg:

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = itab.

Or u can use Se51 to create manually drop down list

Reward if helpfull

Regards

Pavan