SAP ITAB KEY SECONDARY DUPLICATES
Get Example source ABAP code based on a different SAP table
ABAP_ITAB - Duplicate Non-Unique Keys
Non-unique table keys can produce duplicate lines with respect to these keys. This section describes the order of these duplicates when inserting into tables with non-unique sorted table keys. This order is ignored with respect to non-unique primary keys in standard tables.
ITOC
Single Record Operations
When individual lines are inserted where the insert position is determined using a table key, that is, in the case of
the order of the duplicates with respect to the table key of the target table is determined in accordance with the insertion order of the individual lines. The duplicate line that was last inserted into the table is sorted before all other duplicates.
Block Operations
For block operations such as an
Special Features
Some operations have the characteristics of block operations but are executed internally as sequences of single record operations. In this case, the original order of duplicates with respect to a sorted key in the target table is not retained. This is the case for the following operations:
BEGIN_SECTION VERSION 5 OUT
END_SECTION VERSION 5 OUT
ABAP_EXAMPLE_VX5
The result of the following insertion is
b z
b y
b x
b b>
ABEXA 01062
ABAP_EXAMPLE_END