hash key
. The sorted key sort_key could also be defined as unique, but
this is not beneficial in the example shown here, since a customer ID
can appear more than once in the reservation table.
TYPES sbook_tab
TYPE STANDARD TABLE
OF sbook
WITH NON-UNIQUE KEY primary_key
COMPONENTS carrid connid fldate bookid
WITH UNIQUE HASHED KEY hash_key
COMPONENTS carrid connid fldate bookid
WITH NON-UNIQUE SORTED KEY sort_key
COMPONENTS customid.
Example ABAP Coding The DEMO_SECONDARY_KEYS
program demonstrates the declaration and use of a secondary table
key and the resulting performance gains.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved