Nach einer Umprogrammierung habe ich den Event jetzt implementiert, jetzt fehlt lediglich die Abarbeitung.Dort findest Du dann u.a. die Attribute MT_GOOD_CELLS, MT_MOD_CELLS, MT_INSERTED_ROWS, MT_DELETED_ROWS usw. in denen die Informationen über die Änderungen gespespeichert sind. Die Auswertung derselben ist jedoch etwas "tricky".
Code: Alles auswählen.
FORM data_changed USING p_er_data_changed
TYPE ref TO cl_alv_changed_data_protocol.
LOOP AT p_er_data_changed->mt_deleted_rows INTO ls_deleted_rows.
ENDLOOP.
LOOP AT p_er_data_changed->mt_inserted_rows INTO ls_inserted_rows.
ENDLOOP.
ENDFORM. " data_changed
Code: Alles auswählen.
FORM data_changed USING p_er_data_changed
TYPE ref TO cl_alv_changed_data_protocol.
DATA:
ls_deleted_rows LIKE LINE OF p_er_data_changed->mt_deleted_rows,
ls_inserted_rows LIKE LINE OF p_er_data_changed->mt_inserted_rows.
LOOP AT p_er_data_changed->mt_deleted_rows INTO ls_deleted_rows.
ENDLOOP.
LOOP AT p_er_data_changed->mt_inserted_rows INTO ls_inserted_rows.
ENDLOOP.
ENDFORM. " data_changed