... LINES OF jtab [FROM idx1] [TO idx2] [USING
KEY keyname]
What does it do? The rows of an internal table jtab are added as a
block. jtab is a functional
operand position . The row types of itab and jtab must
be compatible when inserting using the table key and must be convertible
when inserting using the index.
The inserted rows are sequentially taken from the table jtab .
The order in which the rows are taken is the same as for the statement
LOOP and can also be influenced by
specifying a table key keyname after
USING KEY . The additions FROM idx1 and TO idx2 have, in
relation to jtab , the same syntax and effect as for
LOOP .
When inserting rows as a block into an internal table with non-unique
table keys , the order of the duplicate rows in
relation to these keys is retained. If there is already a duplicate
entry in the target table, the duplicates of the source block are
inserted in their original order in front of the first duplicate in the
target table.
Latest notes: If there is a conflict with an existing unique table key, a
handleable exception is raised when inserting multiple rows from an inte
rnal table.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved