ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Processing of Internal Data → Obsolete Extracts
FIELD-GROUPS
Other versions: 7.31 | 7.40 | 7.54
Obsolete Syntax
FIELD-GROUPS { header | field_group }.
Effect
Declares a field group for the
extract dataset of the program. Each field group represents the name of a row structure of the extract
dataset. As many field groups as required can be created in a program. The actual components of a field
group are defined using the statement INSERT
.
The name of a field group is either the predefined name header
or any name
field_group
. If a field group header
is declared,
it automatically becomes the initial part of all remaining field groups of the program and its components
constitute the standard sort key of the extract dataset for the statement SORT
.
The statement FIELD-GROUPS
is possible in the global declaration part of
an executable program, of a function group, of a module pool, or of a subroutine pool, as well as in the subroutines and function modules. Field groups that are declared in
procedures are visible only there.
Notes
-
Since global data objects can only be defined as components of field groups using the statement
INSERT
, it is best to declare field groups only in the global declaration part of a program. -
The
FIELD-GROUPS
statement is forbidden in class pools or interface pools and in the methods of local classes of other programs.
Example
See INSERT
.