Posts

Showing posts with the label System Variables

Mastering Debugging Techniques: From Breakpoints to Watchpoints

Image
  Debugging is a technique by which we can find the error, Correct the error and detect the error. Always prefer Desktop 3, as it provides more space to see the data more clearly. Ways of Debugging :- Put the breakpoint on any executable statement and program will automatically stop at that point. Any statement that perform some execution is term as executable statement. Note :- The program must be in active state to put a break point on it. We can debug the code with the help of transaction code /h. Execution keys in Debugging :- F5 - Step by Step Execution : Executes the program one line at a time, allowing you to step through each line of code, including stepping into function calls for detailed inspection. F6 - Line by Line Execution : Similar to F5 but skips over function calls, executing only the current line of code and moving to the next line. F7 - Return : Steps out of the current function, allowing you to quickly return to the calling function'

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