ABAP Keyword Documentation → ABAP - Reference → Obsolete Language Elements → Obsolete Program Flow → Obsolete Control Structures
CASE, WHEN - obsolete
Other versions: 7.31 | 7.40 | 7.54
Obsolete Syntax
CASE ...
statements
WHEN ...
...
ENDCASE.
Effect
Statements between CASE
and the first WHEN statement take
effect if they are specified directly before CASE. This construct is not
allowed in classes, and results in a syntax warning outside of classes. The statements must be positioned before CASE.