Code: Alles auswählen.
DATA: h_tabix LIKE sy-tabix.
.
.
.
* get data from flat to it_flat
* get data from sap to it_sap
.
.
.
SORT it_flat.
LOOP AT it_sap assigning <sap>.
* hold sy-tabix from LOOP, because he is overwrite by READ
h_tabix = sy-tabix.
READ TABLE it_flat TRANSPORTING NO FIELDS
WITH KEY data = <sap>-data
BINARY SEARCH.
IF sy-subrc <> 0.
DELETE it_sap INDEX h_tabix.
ENDIF.
ENDLOOP.
* now in it_sap only data which not in it_flat