SAP IF - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for IF

IF

ABAP Reference
ABAP Code Snippet


ABAP Syntax IF log_exp1.

[statement_block1]
[ELSEIF log_exp2.
[statement_block2]]
...
[ELSE.
[statement_blockn]]
ENDIF.
ABAP Code Snippet

What does it do? Defines a control structure with several statement blocks statement_block1, ... statement_blockn. The statement block after the first true logical expression log_exp1, log_exp2, ... is executed. If no logical expression is true, the statement block after ELSE is executed.

Return to menu