Posts

Showing posts with the label Continue Statement

Navigating SAP ABAP Loops: Unraveling 'Continue' and 'Check' Statements, System Variables, and More! (Day 18)

Image
 Welcome back everyone to this Complete SAP ABAP Master Series. We were discussing about loops in our previous blogs, So we will continue it. Loop Statements :- Exit :- Exit is used to exit from the loop. Continue :- Continue is used to skip the current processing of the record and then process the next record in the loop statements. Check :- If the Check condition is not true, loop will skip the current loop pass and move to next loop pass. → We already have seen the practical implementation of exit statement in the previous blog, So let’s continue with Continue statement. Continue Statement :- Whenever continue statement will trigger, it will skip the current iteration and move to next iteration. let’s see the practical implementation. ************************************* **Using Continue statement in Do loop. DATA : lv_input(2) TYPE n VALUE 10. DO 10 TIMES. IF lv_input = 14. CONTINUE. ENDIF. WRITE :/ 'The output is ', lv_input. lv_input = lv_input