SAP CASE - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for CASE

CASE

ABAP Reference
ABAP Code Snippet


ABAP Syntax CASE operand.

[WHEN operand1 [OR operand2 [OR operand3 [...]]].
[statement_block1]]
...
[WHEN OTHERS.
[statement_blockn]]
ENDCASE.
ABAP Code Snippet

What does it do? Defines a control structure with multiple statement blocks statement_block1, ..., statement_blockn. The first statement block, for which the content of the operand operand is identical to one of the operands operand1, operand2, ... in the WHEN statement, is executed first. If no matches are found, the statement block is executed after the statement WHEN OTHERS.

Return to menu