ABAP Keyword Documentation → ABAP - Reference → Declarative statemnts → Classes and Interfaces → ABAP Objects - Overview → Objects
Object References in Internal Tables
If the line type of an internal table contains object reference variables in the form of the component
comp
, the attributes attr
of the object (to which
each reference of the line points), can be used as key values for reading, sorting, and changing lines in tables. This option can be used in the following statements:
LOOP AT itab ... WHERE comp->attr ...
READ TABLE itab ... WITH [TABLE] KEY comp->attr = ...
SORT itab BY comp->attr ...
DELETE itab WHERE comp->attr ...
MODIFY itab ... TRANSPORTING ... WHERE comp->attr ...
If a table contains unstructured lines with the type of a object reference variable, the attributes of the object, to which a line points, can be addressed using table_line->attr
.