‎2007 Jun 07 8:05 AM
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.
‎2007 Jun 07 8:08 AM
Hi Asha,
Look at the demo program <b>DEMO_DYNPRO_DROPDOWN_LISTBOX</b>
Regards
Sudheer
‎2007 Jun 07 8:08 AM
Hi Asha,
Look at the demo program <b>DEMO_DYNPRO_DROPDOWN_LISTBOX</b>
Regards
Sudheer
‎2007 Jun 07 8:20 AM
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.
‎2007 Jun 08 7:15 AM
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?
‎2007 Jun 08 7:23 AM
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
‎2007 Jun 07 8:09 AM
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
Reward points for useful Answers
Regards
Anji
‎2007 Jun 07 8:13 AM
Hi,
Refer to this link
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm
Regards
Bala
‎2007 Jun 07 8:14 AM
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