ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Internal Tables →  Internal Tables - Overview →  Table Keys →  Primary Table Key → 

Standard Key

The standard key is a special primary table key in an internal table.

Key Fields of the Standard Key

The key fields of the standard key are defined as follows:

Empty standard keys are not possible for sorted tables and hashed tables, and an error occurs if an attempt is made to create a key like this.

Notes

Declaration of the Standard Key

The standard key can be declared as follows:

Notes on Use

Using standard keys is critical for various reasons:

For this reason, declare the primary key by listing the components explicitly, if possible. In particular, you must make sure that the primary key is not set as the standard key by mistake, that you do not forget to specify the key in declarations of standard tables with DATA, and that you do not use a generic table type without realizing it.