ELSEIF (ABAP Keyword) introduction & syntax details
Within a processing block enclosed by ”
IF … ENDIF “, this statement indicates the processing to be executed if the
logical expressions specified by IF and the preceding ELSEIF s are false, but
the logical expression in this ELSEIF processing block is true.
IF and ENDIF statements, there may be any number of ELSEIF s. These may be
followed, optionally, by an ELSE statement, but this is executed only if none of
the logical expressions under IF or ELSEIF is true.
RESULT TYPE I.
IF RESULT < 0.
WRITE / ‘Result less than
ELSEIF RESULT = 0.
WRITE / ‘Result equal zero’.
‘Result greater than zero’.
Depending on the value of
RESULT , the three different texts are output.
Related IF ,