While debugging in the ABAP debugger if you want to skip some lines of code to test some functionality, just use the Goto statement.
In the below program, once the control reaches “LEAVE PROGRAM” statement it exits out of the program.
WRITE:/ 'Start of Program'. LEAVE PROGRAM. WRITE:/ 'End of Program'.
Let us bypass the “LEAVE PROGRAM” statement in the debugger.
In debugger just click on the second WRITE statement and use the menu path Debugging –> Goto Statement as shown below, so that the “LEAVE PROGRAM” statement will be skipped by the debugger.
SHIFT + F12 is the shortcut for Goto Statement in ABAP new debugger.