ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Processing of External Data → Contexts (Obsolete)
CONTEXTS
Other versions: 7.31 | 7.40 | 7.54
Obsolete Syntax
CONTEXTS con.
Effect
This statement can be specified in the global declaration part of a program or in the local declaration part of a
procedure. It creates a structured data type, local to the program, which can be used to create an instance of the
context con
. For con
, the name of a context defined in the current
AS ABAP can be specified.
The name of the new data type is made up of the prefix context_
and the name con
of the specified context.
If the data type context_con
(created using CONTEXTS
)
is used after the addition TYPE
of the statement DATA
, an instance
of the context con
is created to which the declared data object points. The
data object cannot be declared as a component of a structure. The content of the new data object is
interpreted as a reference. After an assignment to another data object of the same data type, this data object points to the same context instance.
In addition to the data type context_con
, another structured data type
context_t_con is created. For each field of the context, this data type contains an identically named component with its relevant data type.