SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Declarations → Interface work areas →
DATA - COMMON PART
Obsolete Syntax
DATA BEGIN OF COMMON PART [name].
...
DATA ...
...
DATA END OF COMMON PART [name].
Effect
This variant of the statement DATA with the additions BEGIN OF COMMON PART and END OF COMMON PART defines a global interface work area, that can be used jointly by the programs of a program group. All data objects declared between these statements using DATA are part of this common area.
The COMMON PART addition can only be used in the global declaration section of an ABAP program. Multiple common data areas can be declared in a program, but they cannot be nested. Every common data area must be given a unique name using the name addition. You can only omit the name addition if there is just one common data area in a program.
In all programs of a program group that access the data of a common data area, this area must be declared
with the same name and exactly the same structure, otherwise there is no guarantee that it will work correctly and non-handleable exceptions can be raised.
Notes
Example
In this example, a common data area struc is declared in the include program part. By incorporating the include program, the three programs param, sum and dis have shared access to the data area struc if they are part of a program group. The latter is accomplished by loading the programs sum and disp into the program group of param using external subroutine calls. The subroutine display in the program disp outputs the input values to the program param and the result of the summation in the subroutine summing.