Code: Alles auswählen.
DATA: wa_layout TYPE lvc_s_layo.
.
.
.
* Einstellungen für ALV-GRID setzen
wa_layout-sel_mode = 'A'. " allow to select multiple lines
.
.
.
* ALV-TREE anzeigen
CALL METHOD g_ref_alv->set_table_for_first_display
EXPORTING
is_layout = wa_layout
Code: Alles auswählen.
DATA: it_sel_rows TYPE lvc_t_row.
FIELD-SYMBOLS: <sel_rows> TYPE lvc_s_row,
CALL METHOD g_ref_alv->get_selected_rows
IMPORTING
et_index_rows = it_sel_rows.
IF NOT it_sel_rows IS INITIAL.
LOOP AT it_sel_rows ASSIGNING <sel_rows>.
READ TABLE g_it_out ASSIGNING <out>
INDEX <sel_rows>-index.
.
.
.
.
ENDLOOP.
ENDIF.