abap debugging day-5
TRANSCRIPT
-
7/29/2019 ABAP Debugging Day-5
1/9
SITA CORP
ABAP/4 Training Material
SAP-ABAP/4Programming
-
7/29/2019 ABAP Debugging Day-5
2/9
2008 Intelligroup Inc. Confidential and proprietary
Debugging
ABAP / 4 - Debugger is the developmentworkbench tool which allows you to stop a
program during its execution when a particularcondition is met
When the program is stopped , you can usethe debugger to display the contents of the
table and variable being used by the program .
-
7/29/2019 ABAP Debugging Day-5
3/9
2008 Intelligroup Inc. Confidential and proprietary
Starting the ABAP / 4 Debugger inDifferent Ways
Method 1 : By Clicking the Execute button and enter/H in command box.
Method 2 : In ABAP / 4 editor, by executing a program
Choosing Program-->Execute -->Debugging
from the Menu.
Method 3 : Setting Breakpoint in the Program.
-
7/29/2019 ABAP Debugging Day-5
4/9
2008 Intelligroup Inc. Confidential and proprietary
Database transaction or LUW
In ABAP debugger we can view and change data.
It also allow you to execute our program line by line.
-
7/29/2019 ABAP Debugging Day-5
5/9
2008 Intelligroup Inc. Confidential and proprietary
Functions of the Debugger screen
Single step(F5) - Use this option to step through theprogram statement by statement. This allows you to branchinto subroutines and function modules, and to execute theseroutines step by step as well. Once a subroutine or function
module has been processed, control returns to thestatement following the CALL FUNCTION or PERFORMstatement.
Execute(F6)- Use this option to process a program line byline. All of the statements on the current line are processedin a single step. If you are positioned on a line that calls asubroutine and you choose Execute, the Debuggerprocesses the whole subroutine and then moves on to theline following the subroutine call. This allows you to jump
through the statements within the subroutine.
-
7/29/2019 ABAP Debugging Day-5
6/9
2008 Intelligroup Inc. Confidential and proprietary
Functions of the Debugger screen
Return(F7) - The Debugger returns from a routine tothe point at which control returns to the main program.Use this option to return from a subroutine, function
module, or called program to the calling program. Continue(F8)- Use this option to process the program
up to the next dynamic or static breakpoint or up to thecursor position. If there are no more breakpoints in the
program and no cursor has been set, the system exitsdebugging mode and executes the rest of the programnormally.
-
7/29/2019 ABAP Debugging Day-5
7/9
2008 Intelligroup Inc. Confidential and proprietary
Watch Points
In SAP ABAP a WatchPoint can be set to break theprogram at the point when the value of a filed in the
program changes. In SAP ABAP a maximum of 10WathPoints can be set in a session. This is a veryhandy tool if you want to break and debug the programonly from the point when a field under consideration
has the desired value.
1. Choose BreakpointCreate watchpointor thecorresponding pushbutton. The Create Watchpointdialog box appears:
Decide whether you want to set a local or global
-
7/29/2019 ABAP Debugging Day-5
8/9
2008 Intelligroup Inc. Confidential and proprietary
Watch Points
If you want your watchpoint to be activated each timethe contents of the field change, the definition is nowcomplete, and you can return to the Debugger bypressing ENTER .
To create a conditional watchpoint, that is onlyactivated when a particular situation arises, choose oneof the following relational operators
Operator Meaning< Less than
= Greater than or equal
> Greater than
-
7/29/2019 ABAP Debugging Day-5
9/9
2008 Intelligroup Inc. Confidential and proprietary
Watch Points