Debugging in SAP ABAP
* Debugging is a process to understand program behavior in runtime.
OR
* Debugging is a technique by which we can find the error, correct the error, detect the error.
* There are two types of breakpoints
> Static - User dependent break point
> Dynamic Break points - User Independent break point
Syntax - BREAK <USERNAME>
OR
Function keys
> F5 - Step by step execution.
> F6 - Line by line execution.
> F7 - Return.
> F8 - Append row.
* When you are using reusable components (function modules, sub routines) - F5, F6 are different.
* When you have no reusable components - F5, F6 are same.
* Two ways of debugging
> Put breakpoint on executable statement.
> /h - transaction {execute /h debugging is on}
System Variables
* SY-SUBRC
SY-SUBRC = 0 Successful.
SY-SUBRC < > Unsuccessful.
* SY-TABIX - Returns current line index inside loop.
* SY-DATUM - Returns current date (default -yyyymmdd).
* SY-UNAME - Returns the username.
* SY-UZEIT - Returns the system time un format ( HH:MM:SS).
* SY-UCOMM - User command.
* Path to move to a selected line: Debugger- go to statement.
* Put the breakpoints on keywords in debugging mode (Ex: select call function, message).
* Deleting breakpoints - permanently deleting the breakpoints.
* Deactivating the breakpoints - temporary deactivate the breakpoint.
* Watch point - To monitor the values of variables and internal tables, work area.
Breakpoint limit - 30.
Watchpoint limit - 10.
********************************Thank You*****************************
Comments
Post a Comment