Application Development and Automation 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: 
Read only

ALV grid row mark

Former Member
0 Likes
2,737

How can I create an alv without creating it with edit mode? I only want to have the columns to mark the rows but without editing function.

I don't find it in structure LVC_S_LAYO. At the moment I take

gs_layout-edit = 'X'.

but then I can edit all data, I only want to select with the row column, is that possible?

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
1,160

Use:

LVC_S_LAYO-SEL_MODE = 'A',

You have to switch editing off, otherwise it may overwrite this setting.

Then, to get what is selected use one of the methods:

GET_SELECTED_CELLS

GET_SELECTED_CELLS_ID

GET_SELECTED_ROWS

GET_SELECTED_COLUMNS

Regards

Marcin

How can I create an alv without creating it with edit mode? I only want to have the columns to mark the rows but without editing function.

I don't find it in structure LVC_S_LAYO. At the moment I take

gs_layout-edit = 'X'.

but then I can edit all data, I only want to select with the row column, is that possible?

2 REPLIES 2
Read only

MarcinPciak
Active Contributor
0 Likes
1,161

Use:

LVC_S_LAYO-SEL_MODE = 'A',

You have to switch editing off, otherwise it may overwrite this setting.

Then, to get what is selected use one of the methods:

GET_SELECTED_CELLS

GET_SELECTED_CELLS_ID

GET_SELECTED_ROWS

GET_SELECTED_COLUMNS

Regards

Marcin

Read only

Former Member
0 Likes
1,160

You can use field SEL_MODE of the same structure.

Marcin already posted the correct answer.

Regards,

John.

Edited by: John Heutmekers on Dec 22, 2008 3:13 PM