ABAP Keyword Documentation →  ABAP − Reference →  Obsolete Language Elements →  Obsolete Program Flow →  Obsolete Control Structures → 

CASE, WHEN - obsolete

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.