Decision making structures have one or more conditions to be evaluated or tested by the program, along with a statement or statements that are to be executed, if the condition is determined to be true, and optionally, other statements to be executed, if the condition is determined to be false.
Following is the general form of a typical decision-making structure found in most of the programming languages −
ABAP programming language provides the following types of decision-making statements.
|S.No.||Statement & Description|
An IF statement consists of a logical expression followed by one or more statements.
|2||IF.. Else Statement|
An IF statement can be followed by an optional ELSE statement that executes when the expression is false.
|3||Nested IF Statement|
You may use one IF or ELSEIF statement inside another IF or ELSEIF statement.
|4||CASE Control Statement|
CASE statement is used when we need to compare two or more fields or variables.