IF statement is a simple control statement that are used to verify one or more logical expressions/conditions. IF statement consists of a one or more logical expressions/Conditions followed by one or more statements.
Category Archives: SAP Tutorial
IF statement consists of a one or more logical expressions/Conditions followed by one or more statements. IF statement followed by ELSE contains another set of statements.
IF statement within another IF statement is called as Nested IF statement.
Similarly IF ELSE statement within another IF ELSE statement is Nested IF ELSE statement.
Multiple levels of validations are performed in Nested IF/IF ELSE Statement.
CASE statement used to validate one operand value with multiple values at a time. Each comparision value has its own set of statements to execute.
In some cases, a block of statements needs to be executed repeatedly. Looping statements(While, Do loop, Nested Do/While loop) are used to support the above scenario.
DO loop executes the block of statements until the specified number of times. DO loop is an unconditional looping statement.
Internal tables used for processing the data dynamically during the program execution.
So, populating data to the internal table can be done during the program execution.
The populating data can be done in three ways by using the below statements –
A loop in the another loop is called as nested Loop. These loops can contains same loops as nested or different loops as nested together.
In some scenarios, specific iteration execution needs to be skipped, bypassed or interrupted. Loop control statements used to support to skip the execution of statements block when specific conditions met.
CONTINUE statement skips the current iteration and control passes to the next iteration. CONTINUE statement can be used as conditional or unconditional based on the requirement/usage. Generally CONTINUE statement comes up along with a condition.
