Mentor SAP
 

It is recommended to type the field symbol and data reference with the line type of the internal table. Generic types are also possible within the dynamic programming framework. However, you cannot use the CASTING addition when accessing an internal table.

 

 

Referencing During Read and Loop Access to Internal Tables

When you read a table row using READ TABLE or a series of table rows using LOOP AT, you can assign the rows of the internal table to a field symbol by using the ASSIGNING <field_symbol> addition. The field symbol then points to the line that you assigned, allowing you to access the field content directly. Consequently, the system does not copy the entry from the internal table to a work area and back again.

 

These techniques are particularly useful for accessing multiple table lines or nested tables within a loop. The runtime requirement for copying values to and from a work area is particularly high in this kind of operation.