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 to select more than one column by row using set_table_for_first_display

former_member227595
Active Participant
0 Kudos

Hello everyone,

I am developing an application (ALV OO) to select more than 1 column by row ( one ). This is an a holiday application so the idea is:

-One column will be the day, and the row will be the user.

So I am trying to select more than one day by user (that would be the row).

I am using the method set_table_for_first_display but when it shows the alv, doesn't let me to select more than one column with a click of the mouse.

Does anybody know if I can do this (select more than one column, by row) in somehow?

Please let me know if you need more clarification about this.

Thanks in advance

Diego

2 REPLIES 2

Former Member
0 Kudos

Hi,

You need to use the CTRL button for this requirement "To select the multiple entries in an ALV grid".

Regards,

Srinivas

Clemenss
Active Contributor
0 Kudos

Hi Diego,

it's all in the documentation.

set different selection modes through the value of the field u201CSEL_MODEu201D in the layout structure.

SPACE

same as 'B'

see 'B'

Default setting

'A'

Column and row selection

Multiple columns

Multiple rows

The user selects the rows through pushbuttons at the left border of the grid control.

'B'

Simple selection, list box

Multiple columns

Multiple rows

'C'

Multiple selection, list box

Multiple columns

Multiple rows

'D'

Cell selection

Multiple columns

Multiple rows

Any cells

The user selects the rows through pushbuttons at the left border of the grid control

Beyond setting this option, you can set u201CNO_ROWMARKu201D option to hide the mark column which is normally visible when the selection mode allows multiple row selection.

One point to notice here is that if you set your ALV Grid as to be editable, it may override your selection mode regardless of your layout settings.

This is from SDN Community Contribution "An Easy Reference for ALV Grid Control" By: Serdar ŞİMŞEKLER

Sorry, no link,. it's on my disk.

Regards,

Clemens