[ABAP] ALV-Grid: Zugriff auf geänderte Tabellenzeilen

CLASS lcl_events DEFINITION.
  PUBLIC SECTION.
    METHODS:
      on_data_changed FOR EVENT data_changed OF cl_gui_alv_grid
        IMPORTING
            er_data_changed
            sender.
ENDCLASS.

CLASS lcl_events IMPLEMENTATION.
  METHOD on_data_changed.

    FIELD-SYMBOLS: <fs_tab> TYPE table.
    FIELD-SYMBOLS: <fs_row> TYPE spfli.

* Datenreferenz auf Feldsymbol übergeben
    ASSIGN er_data_changed->mp_mod_rows->* TO <fs_tab>.

* geänderte Zeilen durchloopen
    LOOP AT <fs_tab> ASSIGNING <fs_row>.
      ...
    ENDLOOP.

  ENDMETHOD.
ENDCLASS.