‎2007 Feb 09 12:52 PM
friends , i want to know more about watchpoint and F6 , F7 for debug,
and how to debug sapscript and smartform.
‎2007 Feb 09 12:59 PM
Hi,
When you are doing debugging a loop statement which is having 500 entries, and you want to see a 200th entry or you want to see ITAB-FIELD1 equals xx, then you need to create a watch point for that value and press F8, when that field will satisfy with that value then there the debug will be stopped, and you can see that row.
F6 is, when debuggin a perform statment or a Call function statment occurs, and you do not want to debug that then press F6 then it wil bypass that one.
F7, if you are debbugin a Perform statment or a Function module then you do not want to contine debuggng and come out from that one then press F7.
For SAP SCRIPT Debugging ..
/people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
For smartforms, you can put thebreak point in the Generated Function module and do the debugging, or you can put the break point in the Program lines of the smartform do the Debug
Regards
Sudheer
Message was edited by:
Sudheer Junnuthula
‎2007 Feb 09 1:00 PM
For script debugging refer this blog:
/people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
For smartform debugging, you need to go to the smartform. Then create a program lines element, in the place where you want to debug.
write the statement
break-point.
REgards,
<Sorry ..repost..>
Message was edited by:
Ravi Kanth Talagana
‎2007 Feb 09 1:08 PM
Watchpoints allow you the option of monitoring the content of individual variables.
The Debugger stops as soon as the value of the monitored variable changes.
In addition, conditions can be specified. The Debugger also checks whether such a condition is fulfilled.
http://help.sap.com/saphelp_46c/helpdata/es/c6/617cdce68c11d2b2ab080009b43351/content.htm
Debug SAPscripts
When we want to debug the SAPSCRIPT, we need to first activate the debugger, we have 2 ways to activate the Debugger.
1) Execute the program RSTXDBUG
2) Go to SE71, from the initial screen enter the form name and press Utilities --> Activate Debugger
When we are in the Debug screen,
3.1) F5 will be debug filed by field, that means if a single line is having 5 fields, if we press the F5 this will do field by field,
3.2) F6 will be line by line, that means when we press the F6, it will debug the line and it will go to the next line. F7 also do the same way
3.3) F8 will be very useful when we have any include statement in the SCRIPT, if any include is there and we press the F5 or F6 then this will go that Include (normally SO10 or any transaction text), then if we want line by line debugging then we can press the F5 or F6, or if you want to execute that in a single shot then press the F8, then the debugger will be executed that include and come back to the Script debugging.
Some times in the script, we may right lengthy lines, if we want to debug that whole line, we have an option called Left/Right, this we will find the Debug screen of the script, there is a Push button, we can make use this button to debug.
We can put the breakpoints in the SCRIPT DEBUGGER also, just press the BREAKPOINT Pushbutton from the debugging screen or press EDIT --> Breakpoint
If we want to debug the print program from the SCRIPT DEBUGGER, just press SHIFT+F7 or EDIT --> ABAP Debugging
If we want to see the Windows which are defined in the forms, just press the Go to --> Form --> Windows .if we want to see the pages go to --> Form --> pages. Here we have an option to see the page wise window also go to --> Form --> page Windows
If we want to see the paragraphs which are defined in that script, press go to --> Styles --> paragraphs.
If we want to see the Character formats which are defined in that script, press go to --> Styles --> Character Strings.
If we want to see the Page formats which are defined in that script, press go to --> OTF --> Page.
If we want to see the Elements which are used in the Script, then press go to --> Text Elements --> Form Elements.
If we want to see the commands which are used in the script, press go to --> Commands --> List
Finally, if we want to exit from the SCRIPT DEBUGING, simply press Debugger --> Exit
‎2007 Feb 14 1:22 PM