Get Example source ABAP code based on a different SAP table
ID CONTEXTS • CONTEXTS ABAP Statement
CONTEXTS> Short Reference >
ABAP_SYNTAX_OBS CONTEXTS con.>
What does it do? 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 local data type, 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 consists 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 data type.
Latest notes: Data objects declared with the data type context_con> should only be used in the statements SUPPLY>> and DEMAND>>. ABAP_HINT_END