How to use Table Expressions to modify internal table

              It is much similar to the READ TABLE technique. The table expressions can be used from ABAP 7.40 SP02 version. Particular data record is assigned to the field symbol. The pointers refers to the respective line of record in the internal table.

DATA lt_internal_table TYPE TABLE OF ztt_db_table2.

FIELD-SYMBOLS <ls_record> TYPE ztt_db_table2.

SELECT *FROM ztt_db_table2 INTO TABLE lt_internal_table.

ASSIGN lt_internal_table[2] TO <ls_record>.

<ls_record>-contact_address = ‘Street 44’.

The Data record at the second position of the internal table is modified.

‘Inline declaration’ can also be used during this modification.

ASSIGN lt_internal_table[2] TO FIELD-SYMBOL(<ls_rec>).