ABAP Keyword Documentation → ABAP - Reference → Obsolete Language Elements → Obsolete Processing of External Data → Obsolete Contexts
CONTEXTS
Other versions: 7.31 | 7.40 | 7.54
Obsolete Syntax
CONTEXTS con.
Effect
This statement can be specified in the global declaration section of a program or in the local declaration section 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
, you can specify the name of a context defined in the current
AS ABAP. The name of the
data type created is made up of the prefix context_
and the name con
of the specified context.
If you use the data type context_con
, created using CONTEXTS
,
after the TYPE
addition to
the DATA
statement, this creates
an instance of the context con
to which the declared data object points.
The data object cannot be declared as a component of a structure. The content of the created data object
is interpreted as a reference. After value 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.