SAP FIELD-GROUPS ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID FIELD-GROUPS
• FIELD-GROUPS ABAP Statement
• header FIELD-GROUPS

FIELD-GROUPS
Short Reference

ABAP_SYNTAX_OBS
FIELD-GROUPS ${ header $| field_group $}.

What does it do?
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. Any number of field groups 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 form 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, a function pool, a module pool, or a subroutine pool, as well as in the subroutines and function modules. Field groups that are declared in procedures are only visible there.



Latest 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.
ABAP_HINT_END



Example ABAP Coding

See INSERT.
ABAP_EXAMPLE_END

Return to menu