ARTIClE
Internal Tables, Insert Rows
This example demonstrates how rows are inserted into internal tables.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
This example is made up of four parts, in which rows are inserted in
different ways. First, two internal tables, itab and jtab ,
are filled with squared and cubed numbers. These are also used to reset
the tables above to their initial values, using an assignment, between
the individual parts of the example.
In the first part, a new row is inserted before the second row and a row
with initial values is inserted before the first row.
Next, using a LOOP , a new row is inserted before each existing
row.
In the third part, the whole of the table itab1 is inserted
before the first row of jtab1 .
In the final part, the whole of the table itab2 is inserted into
the sorted table jtab2 .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved