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: 

ALV line selection

Vinod_Chandran
Active Contributor
0 Kudos

Hi,

ALV line selection works like Excel. That is you can select multiple lines either by dragging or using the Shift or Control keys. But if the user clicks on another line all the current selected lines will be de-selected. Can the ALV behave such a way that a selected line is de-selected only when the user click on the line again?

Thanks

Vinod

2 REPLIES 2

Former Member
0 Kudos

The field 'sel_mode' of the structure LVC_S_LAYO will allow the user to select multiple cells at the same time.

To allow users to select multiple rows, you must set field sel_mode of the layout structure to 'A', 'C' or 'D'.

For more information on this options please check

[http://help.sap.com/saphelp_erp2004/helpdata/en/ef/a2e9eff88311d2b48d006094192fe3/content.htm|http://help.sap.com/saphelp_erp2004/helpdata/en/ef/a2e9eff88311d2b48d006094192fe3/content.htm]

Do remember to reward points

Regards

Kasee Palaniappan

[http://pl.kasee.googlepages.com|http://pl.kasee.googlepages.com]

0 Kudos

Hi,

Thanks for the reply.

The issue is not enabling ALV for multiple line selection but keeping the selection when the user clicks on another line.

You can select multiple lines by using the Control and Shift keys. But if another line is clicked, you loose the current selected lines. I want this to be avoided. If the user wants to de-select a selected line, he must click on it again. This is the way table control works.

Thanks

Vinod