SAP / SAP Beginner (0 to 2 yrs) Interview questions
How do you set a breakpoint in ABAP?
A breakpoint marks a specific line where program execution should pause automatically once reached, letting you inspect the program's state at exactly that point rather than stepping through every single line from the beginning.
REPORT z_demo. DATA: lv_total TYPE i. BREAK-POINT. " execution pauses here whenever this program runs lv_total = 10 + 20.
The BREAK-POINT statement is a static breakpoint written directly into the source code
— it pauses execution for anyone running that program, every time that line is reached, until it's
removed from the code. Breakpoints can also be set externally, without modifying source code, by clicking a
line number in the ABAP editor or debugger and toggling a breakpoint there instead.
More Related questions...