We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
This statement adds one or more lines line_spec at a position itab_position in an internal table. The position can be specified using the primary table key or a table index. result can be used when appending a single line to set a reference to the appended line in the form of a field symbol or a data reference.
When the line is inserted, all existing unique table keys are checked. These can be a unique primary table key and multiple unique secondary table keys. The system handles any duplicates of the different keys according to the following hierarchy:
|0||One or more lines were inserted.|
|4||No line was inserted because either a line with the same unique key already existed when inserting single lines using the primary key or the specified index was greater than the current number of lines plus 1 when inserting the lines using the table index.|
The system field sy-tabix is not set.
Insertion of single lines into a standard table int_tab using the table index and insertion of references to these lines in a
ref_tab using the table key. The output in the LOOP
loops produces the numbers 10 to 1 for int_tab and the numbers 1 to 10 for ref_tab.