Code: Alles auswählen.
DATA:
go_alv_grid TYPE REF TO cl_gui_alv_grid, " Erste Tabelle
go_alv_grid2 TYPE REF TO cl_gui_alv_grid. " Zweite Tabelle
DATA:
ld_et_row_no TYPE lvc_t_roid, " Zuordnung Zeilennummer zu Zeilen-ID
ld_et_index_rows TYPE lvc_t_row. " ALV-Control: Tabellenzeilen
go_alv_grid->get_selected_rows(
IMPORTING
et_row_no = ld_et_row_no " ET_ROW_NO: Numeric IDs of Selected Rows TYPE LVC_T_ROID
et_index_rows = ld_et_index_rows " ET_INDEX_ROWS: Indexes of Selected Rows TYPE LVC_T_ROW
).
LOOP AT .
ENDLOOP.
Code: Alles auswählen.
LOOP AT ld_et_row_no ...
oder
LOOP AT ld_et_index_rows ...