cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown list

Former Member
0 Kudos

Hi experts

I am new to WD ABAP.

I want to know about the feasibility of multiple slection in a dropdown.Is it possible ??

If yes how can we achieve that.

Thanks

Monika

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Multiple Selection is not possible in Dropdown

Abhi

Answers (1)

Answers (1)

Former Member
0 Kudos

multiple selection is not possible in drop down

Former Member
0 Kudos

Hi Abhimanyu & Shiva

Thanks for the replies.

Is there no way to achieve multiple selection.

Monika

abhimanyu_lagishetti7
Active Contributor
0 Kudos

you can make use of table control with single column

Abhi

Former Member
0 Kudos

Hi Monika,

If your requirement is that you want some values in list and want to have multiple selection in those values then go for

ui elemnt ITEMLISTBOX there you can display as well as select the multiple values .

And its very easy to use that element since multiple selection option is ther in properties itself.

Please refer following code which will give you the selected data from the itemlistbox.

data lt_elements type wdr_context_element_set.

data lr_node type REF TO if_wd_context_node.

data node_element type ref to IF_WD_CONTEXT_ELEMENT.

data it_type type wd_this->elements_ZPROMOTIONS.

data wa_type type wd_this->element_ZPROMOTIONS.

lr_node = wd_context->get_child_node( 'ZPROMOTIONS' ).

lt_elements = lr_node->get_selected_elements( ).

loop at lt_elements into node_element.

node_element->get_static_attributes( importing static_attributes = wa_type ).

append wa_type to it_type.

endloop.

where ZPROMOTIONS is the node with which datasource property of itemlistbox is bound.

Hope this will solve your problem.

regards

PG

Edited by: PG on Aug 20, 2008 2:40 PM