‎2007 Jun 15 12:37 PM
What is debugging, Y it is usefull. Y we use it in Smartforms. How we do it in smartforms.?
thanks.
Khan
‎2007 Jun 15 12:45 PM
Hi Khan,
Debugging is the process of finding the faults in the program i.e to check where the data is not getting entered to the fields etc.
Normally we Debug using breakpoint or by using tcode /h during executing the program.
Place /h in the tcode and execute the program F8. You will enter into debug mode. There you can debug fields and also tables accordingly to the options. You can also check what values are populated into the Internal table using TABLES option in the mode. use F5 to run the mode in single step. F6 to come out of a loop. F7 to come out of a FM and F8 to come out of debugging mode.
One way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards
rewards points if helpful
regards
reena
‎2007 Jun 15 12:39 PM
‎2007 Jun 15 12:42 PM
The ABAP Debugger is an integrated test tool within the ABAP Workbench. You use it to check the program logic and to find errors in the source code of an ABAP program. In the Debugger, you can step through the source code of a program. The running program is interrupted after each step, allowing you to check its processing logic and the results of individual statements.
As of Release 6.10, you can also run Business Server Pages (BSP) in the debugging mode. You can also display and set breakpoints here. Business Server Pages can be displayed in the Object Navigator when you select an appropriate application under BSP Application.
Features
The Debugger provides an efficient means of identifying errors in ABAP programs. It contains the following functions:
Ways of starting the Debugger
Choosing different views
Choosing different execution options in the Debugger
Displaying source code in the Debugger
Setting and deleting breakpoints
Setting and deleting watchpoints
Stopping a program at a particular statement or event
Displaying and changing field contents at runtime
Displaying ABAP Objects and references
Displaying and positioning strings
Setting and deleting database locks
Opening the ABAP Editor, or Object Navigator
System settings and runtime warnings
‎2007 Jun 15 12:43 PM
only option is to type BREAK-POINT in smartform programming lines.
regards
prabhu
‎2007 Jun 15 12:43 PM
Create a Program Line and put a break-point in that to debug.
Regards,
Anish Thomas
‎2007 Jun 15 12:45 PM
Hi Khan,
Debugging is the process of finding the faults in the program i.e to check where the data is not getting entered to the fields etc.
Normally we Debug using breakpoint or by using tcode /h during executing the program.
Place /h in the tcode and execute the program F8. You will enter into debug mode. There you can debug fields and also tables accordingly to the options. You can also check what values are populated into the Internal table using TABLES option in the mode. use F5 to run the mode in single step. F6 to come out of a loop. F7 to come out of a FM and F8 to come out of debugging mode.
One way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards
rewards points if helpful
regards
reena
‎2007 Jun 15 1:06 PM
hi,
The ABAP Debugger is an integrated test tool within the ABAP Workbench. You use it to check the program logic and to find errors in the source code of an ABAP program. In the Debugger, you can step through the source code of a program. The running program is interrupted after each step, allowing you to check its processing logic and the results of individual statements.
As of Release 6.10, you can also run Business Server Pages (BSP) in the debugging mode. You can also display and set breakpoints here. Business Server Pages can be displayed in the Object Navigator when you select an appropriate application under BSP Application.
Features
The Debugger provides an efficient means of identifying errors in ABAP programs. It contains the following functions:
Ways of starting the Debugger
Choosing different views
Choosing different execution options in the Debugger
Displaying source code in the Debugger
Setting and deleting breakpoints
Setting and deleting watchpoints
Stopping a program at a particular statement or event
Displaying and changing field contents at runtime
Displaying ABAP Objects and references
Displaying and positioning strings
Setting and deleting database locks
Opening the ABAP Editor, or Object Navigator
System settings and runtime warnings
for normal debugging of a report program u can use /h in command box or funcction keys as
F5 -> line by line debugging.
F6 -> similar to F5 but executes sub routine as a single line.
F7 -> break point to break point debugging.
F8 -> executes entire program at a single time.
for debugging smart forms u have to use BREAK-POINT keyword in smart form.
if helpfulreward some points.
with regards,
suresh.