Application Development 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: 

how to select multiple values in a list box in a selection screen?

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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>

0 Kudos

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.

Former Member
0 Kudos

Hi DP,

I too got same problem, can u help me to solve this?

thnx sravanthi