We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
... ${ $[UNIQUE $| NON-UNIQUE$]
${ ${KEY $[primary_key $[ALIAS alias_name$] COMPONENTS$] comp1 comp2 ...$}
$| ${DEFAULT KEY$} $} $}
$| ${ EMPTY KEY $} ...
1. ... $[UNIQUE$|NON-UNIQUE$] ${KEY ...$}$|${DEFAULT KEY$}
2. ... EMPTY KEY
... $[UNIQUE$|NON-UNIQUE$] ${KEY ...$}$|${DEFAULT KEY$}
Definition of the primary table key of an internal table by specifying components or defines it as a standard key. The syntax and semantics of the additions are the same as for the statement TYPES for standalone table types, except that the primary key of a bound table type must always be fully 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 a standard key, 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 obsolete addition
WITH HEADER LINE can no longer be specified, even outside the classes.
The declaration of the primary table key as a standard
key can be critical for various reasons. It is best to specify key fields explicitly instead. In
particular, it must be ensured that the declaration of the standard key is not added by mistake because the key was not specified explicitly.
Definition of a sorted table with a primary key without an explicit name specification.
Definition of a sorted table with a primary key and an explicit name specification.
Definition of a sorted table with a primary key for which an alias name is defined.
... EMPTY KEY
Definition of an empty primary key for an internal table. This variant is possible for standard tables only. The syntax and semantics are the same as for the statement TYPES.
Declaration of a table with an empty primary key. Using the SORT statement without specifying a sort criterion would have no effect for this table.
Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki