Standard Keys in Internal Tables
C
, STRING
, D
,
T, N
, X
, XSTRING
). In particular, components with a
numeric type and table components in general do not belong to the standard key.
The linearization is explained in the following example:
TYPES: BEGIN OF PERSONNEL_DATES,
NAME TYPE STRING,
BIRTHDAY TYPE D,
WEIGHT TYPE F,
END OF PERSONNEL_DATES,
BEGIN OF ADDRESS,
STREET TYPE STRING,
CITY(30) TYPE C,
END OF ADDRESS,
BEGIN OF PERSON_RECORD,
NUMBER(10) TYPE P,
DATES TYPE PERSONNEL_DATES,
ADR TYPE ADDRESS,
END OF PERSON_RECORD.
DATA: ITAB TYPE PERSON_RECORD OCCURS 100.
ITAB
is composed of the fields
ITAB-DATES-NAME, ITAB-DATES-BIRTHDAY
, ITAB-ADR-STREET
,
and ITAB-ADR-CITY
. The fields ITAB-NUMBER
and ITAB-DATES-WEIGHT
do not belong to the standard key.
C
,
I
, P
, REF TO
etc.), the whole line is used as a standard key. In contrast, for tables over tables, the standard key is empty.
Other versions:
7.31 | 7.40 | 7.54