11-06-2007 11:42 AM
Hi guys,
I have a requirement that a user should have a option to select multiple values in a list box.I know we can select only a single value in a list but how can i select multiple values in the list box?Can anyone please suggest me a solution.
Thanks,
dp.
11-06-2007 11:46 AM
Hi
1. There are two important things :
a)PARAMETERS : a(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
b) Fm VRM_SET_VALUES
2. just copy paste
3.
REPORT abc.
TYPE-POOLS : vrm.
DATA : v TYPE vrm_values.
DATA : vw LIKE LINE OF v.
PARAMETERS : a(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
INITIALIZATION.
vw-key = '1'.
vw-text = 'Jan'.
APPEND vw TO v.
vw-key = '2'.
vw-text = 'Feb'.
APPEND vw TO v.
vw-key = '3'.
vw-text = 'Mar'.
APPEND vw TO v.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'A'
values = v
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
Check the link -
<b>reward if usefull</b>
11-06-2007 12:23 PM
Hi Naresh,
Thanks for the reply.I did as u said but still i m able to select only one value from the list.My requirement is I want to select multiple values from the list.For example if u created the list with values 1,2 and 3, then in the selection screen the user should be able to select either 1 or 2 or 3 or (1 and 2).hope u understand my requirement.
Thanks,
dp.
01-29-2008 9:51 AM
Hi DP,
I too got same problem, can u help me to solve this?
thnx sravanthi