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: 

Select multiple lines on alv tree

Former Member
0 Kudos

I am working on alv tree using class cl_gui_alv_tree. I want to select multiple line on ctrl+click. how can i do that ?

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

When you create an object for the tree in your program, pass the node selection type to the parameter NODE_SELECTION_MODE of the consturctor method.


    CREATE OBJECT W_TREE
      EXPORTING
        PARENT              = W_TREE_CONT
        NODE_SELECTION_MODE = CL_GUI_LIST_TREE=>NODE_SEL_MODE_MULTIPLE

Regards,

Naimesh Patel

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

When you create an object for the tree in your program, pass the node selection type to the parameter NODE_SELECTION_MODE of the consturctor method.


    CREATE OBJECT W_TREE
      EXPORTING
        PARENT              = W_TREE_CONT
        NODE_SELECTION_MODE = CL_GUI_LIST_TREE=>NODE_SEL_MODE_MULTIPLE

Regards,

Naimesh Patel

Former Member
0 Kudos

hi,

Plz refer to this link.

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_rowsel.htm

You will find sample code here.

Regards

Sumit Agarwal