2008 Dec 22 1:17 PM
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?
2008 Dec 22 2:09 PM
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
2008 Dec 22 2:09 PM
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
2008 Dec 22 2:12 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |