‎2007 Jun 13 10:51 AM
Hi friends,I am not getting when should we do system debugging and database debugging and also i dont know how to do it,please help me put.
Points will be awarded for helpful answer.
Thanks
‎2007 Jun 13 10:53 AM
Hi Soni,
3 types update,normal and system debugging
check this for update debugging
If you set "Update Debbugging" you can debug the codes which works in update tusk.
SAP std often runs the routine (function or form) to update the database in update tusk mode, these routine start as soon as a commit work is done.
The commit is called at the end of the program, so you can't debug them by "normal debbugging" because it ends as soon as the program ends
or----
All the database updates are performed by the update work processes by calling the functions/subroutines in update tasks.
These tasks are executed after a commit work is reached in the application. By default you cannot debug these functions.
TO debug these u need to explicitly activate update debugging.
for system debugging check the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/5f0640555ae369e10000000a155106/content.htm
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm
For debugging tutorial:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
http://www.sapdevelopment.co.uk/tips/debug/debughome.htm
http://www.sap-basis-abap.com/sapab002.htm
System Debugging
If you set this option, the Debugger is also activated for system programs (programs with status S in their program attributes). When you save breakpoints, the System Debugging setting is also saved.
Update Debugging
Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger. These function modules are therefore not included in debugging. Only if you select the Update Debugging option can you display and debug them after the COMMIT WORK.
Normal Debugging
Normal debugging is the one we do it by the normal dynamic break points or by /H or by using stattic break points.
You can switch to diffferent debuggin modes while processing.
BREAKPOINT
In the source code we set the Break-point there by clicking the stop button, the system will stop there when you execute the program.
Watchpoint
For watchpoints, we need to give some condition and when this condition is satisfied, program will stop
example : if you want to debug only
for matnr value 100 than set watch point
matnr = 100. when value reaches 100 than
program stops at that point.
more at
http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm
Thanks,
Reward If Helpful.
Message was edited by:
Viji
‎2007 Jun 13 10:53 AM
Hi Soni,
3 types update,normal and system debugging
check this for update debugging
If you set "Update Debbugging" you can debug the codes which works in update tusk.
SAP std often runs the routine (function or form) to update the database in update tusk mode, these routine start as soon as a commit work is done.
The commit is called at the end of the program, so you can't debug them by "normal debbugging" because it ends as soon as the program ends
or----
All the database updates are performed by the update work processes by calling the functions/subroutines in update tasks.
These tasks are executed after a commit work is reached in the application. By default you cannot debug these functions.
TO debug these u need to explicitly activate update debugging.
for system debugging check the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/5f0640555ae369e10000000a155106/content.htm
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm
For debugging tutorial:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
http://www.sapdevelopment.co.uk/tips/debug/debughome.htm
http://www.sap-basis-abap.com/sapab002.htm
System Debugging
If you set this option, the Debugger is also activated for system programs (programs with status S in their program attributes). When you save breakpoints, the System Debugging setting is also saved.
Update Debugging
Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger. These function modules are therefore not included in debugging. Only if you select the Update Debugging option can you display and debug them after the COMMIT WORK.
Normal Debugging
Normal debugging is the one we do it by the normal dynamic break points or by /H or by using stattic break points.
You can switch to diffferent debuggin modes while processing.
BREAKPOINT
In the source code we set the Break-point there by clicking the stop button, the system will stop there when you execute the program.
Watchpoint
For watchpoints, we need to give some condition and when this condition is satisfied, program will stop
example : if you want to debug only
for matnr value 100 than set watch point
matnr = 100. when value reaches 100 than
program stops at that point.
more at
http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm
Thanks,
Reward If Helpful.
Message was edited by:
Viji
‎2007 Jun 13 11:00 AM
Hi Viji,
I already have this definations and links, wat i am not gettin is how to do it, i ean wat command i have to give or wat menu i have to select to do this debugging.
‎2007 Jun 13 11:02 AM
Hi Soni,
1. Open Tour program in SE38.
2. Enter "/H' in Command field and press enter.
3. Then Execute your program.
4. Now you will enter in the Debugging Screen.
5. Press F5 key. The Screen shows tour program Flow.
Thanks.
‎2007 Jun 13 11:04 AM
HI Soni,
The Other way is,
1. type the Statement "Break-point" In SE38.
Now Execute the program.
Thanks.
‎2007 Jun 13 11:05 AM
Hi Brijesh
Let me explain in simple
In report
choose the place where u want to debug and on the menu bar u can see an RED color button written <b>STOP</b> click on that
In smartform
u have to write a statement
break-point.in script
U have to go to se71 and write the script name and on the menubar
Utilities--> Activate debugger
/hIt is the universal application at any time any place u can use on the status bar and then press enter and then execute it will directly take you to the place where u have to debug
reward all helpfull answers
Regards
Pavan
‎2007 Jun 13 11:05 AM
Hi VIJI,
what u just told is normal debugging, i wan to know how to do system and update debugging.
Message was edited by:
Brijesh Soni
‎2007 Jun 13 11:09 AM
Hi,
For Debugging u have to set BreakPoint in ur Codings.In ur Abap Report Screen there is one icon with Red color Octagon symbol with 'STOP' inside it.That is Set/Delete Breakpoint Button.U have to select the Line in which u have to start the Debugging Process & Press that red color button.
While Executing it will automatically goes to Debugging Screen.
Otherwise,u have to give Transaction '/h' for Debugging.
You have to use F5, F6, F7 and F8 keys while debugging.
F5 executes the current statement enters the procedures and routines,
F6 executes the current statement and does not enter procedure but completes it in one step.
F7 helpsyou to come out of a procedure.
F8 executes the program completly unless there is any break point set.
Regards,
Padmam.
‎2007 Jun 13 11:10 AM
Hi Brijesh
In total ABAP by using /h u can debug any way
here is the data u want
<b>System Debugging</b>
If you set this option, the Debugger is also activated for system programs (programs with status S in their program attributes). When you save breakpoints, the System Debugging setting is also saved.
<b>Update Debugging</b>
Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger. These function modules are therefore not included in debugging. Only if you select the Update Debugging option can you display and debug them after the COMMIT WORK.
check this link
http://www.sappro.com/downloads/Settings&SystemAreas.pdf
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+debugger&;
Reward all helpfull answers
Regards
Pavan
‎2007 Jun 13 11:17 AM
Thanks to all u guys..............got the concept of debugging
‎2007 Jun 13 10:56 AM
Hi,
Debugging is the process where you will find the program is doing correct or not.
we can debugg the program for confirming that the writen logic is right or not and also we can see the values in the internal table and variables too.this is like F7 in C language, we can see the flow of work done in the program.
All that we have to do is execute the program first and then by giving the Tcode "/h" which will start the debugging mode and then again execute the program then you will be seeing the program in Debugging mode then start debugging, you will findeverything there.
Is this ok for you, if you are satisfied award points.
For System Debugging check the below link,
http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/5f0640555ae369e10000000a155106/content.htm
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm
Go Thru the Following Threads,U'll get an idea about Debugging.
Regards,
Padmam.