ABAPDATA_PRIMARY_KEY - DATA PRIMARY KEY
Addresses (Business Address Services) rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
DATA - key
Syntax
... [UNIQUE | NON-UNIQUE]
{ {KEY [primary_key [ALIAS key_name] COMPONENTS] comp1 comp2 ...}
| {DEFAULT KEY} } ... .
Effect
Defines the primary table key of an internal table. The syntax and semantics of the additions are thesame as for the TYPES statement for dedicated table types, with the difference that the primary key of abound table type must always be specified completely:
- For standardtables only the NON-UNIQUE KEY addition can be specified. If uniqueness is not specified, this is added implicitly. You cannot specify the addition UNIQUE KEY.
- For sortedtables, one of the two additions UNIQUE KEY or NON-UNIQUE KEY must be specified.
- For hashed tables, the UNIQUE KEY addition must be specified.
If no primary key is specified for DATA using WITH, the addition WITH NON-UNIQUE DEFAULT KEY is added implicitly for standard tables. This gives the table astandardkey, which can be empty. In sorted tables and hashed tables, the primary key must be specified explicitly and cannot be empty.
If the name of the primary key primary_key is specified explicitly, the WITHHEADER LINE addition can no longer be specified, even outside the classes.
Note
The declaration of the primary table key as a standardkey can be critical for various reasons. We recommend that you specify the key fields explicitlyinstead. In particular, make sure that the declaration of the standard key is not added by mistake because the key has not been specified explicitly.
RFUMSV00 - Advance Return for Tax on Sales/Purchases ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 3084 Date: 20120522 Time: 044105 triton ( 156 ms )






