ELSEIF (ABAP Keyword) introduction & syntax details
ELSEIF
Basic
form
ELSEIF logexp.
Effect
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.
Between the
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.
Example
DATA
RESULT TYPE I.
...
IF RESULT < 0.
WRITE / 'Result less than
zero'.
ELSEIF RESULT = 0.
WRITE / 'Result equal zero'.
ELSE.
WRITE /
'Result greater than zero'.
ENDIF.
Depending on the value of
RESULT , the three different texts are output.
Related IF ,
ELSE
,
CASE
Related 10 ABAP Syntax Tutorials
Most readed SAP Tutorials
- WRITE - Output to a list ( SAP ABAP Keyword)
WRITE ( Output to a list ) is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - List of SAP HR TABLES and Infotypes tables
Detailed full list of tables and infotypes used in SAP HR module. - List of SAP MM Transaction codes
This documentation covers the details of SAP MM Transaction codes - SELECT-OPTIONS ( SAP ABAP Keyword)
SELECT-OPTIONS is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - FI Accounts Receivable and Accounts Payable | SAP FI PDF manual
The following topics are an introduction to the Accounts Receivable and Accounts Payable application components. - SELECT clause ( SAP ABAP Keyword)
SELECT clause is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - SAP MM Process Flow
The typical procurement cycle for a service or material consists of the following phases:
Latest Added SAP documents
- 9KE9 Transaction code
Details about SAP transaction code 9KE9 - 9KE8 Transaction code
Details about SAP transaction code 9KE8 - 9KE7 Transaction code
Details about SAP transaction code 9KE7 - 9KE6 Transaction code
Details about SAP transaction code 9KE6 - 9KE5 Transaction code
Details about SAP transaction code 9KE5 - 9KE4 Transaction code
Details about SAP transaction code 9KE4 - 9KE3 Transaction code
Details about SAP transaction code 9KE3 - 9KE2 Transaction code
Details about SAP transaction code 9KE2 - 9KE1 Transaction code
Details about SAP transaction code 9KE1 - 9KE0 Transaction code
Details about SAP transaction code 9KE0