First let me tell you there are basically three types of debugging in SAP:
1. System Debugging.
2. Update Debugging.
3. tRFC Debugging.
For more info regarding these types of debugging go through the links that I have mentioned in References.
Normally Debugger can be started in three ways:
1. By hard coding “Break-Point” statement in the program.
2. By setting Session Breakpoint at a particular LOC.
3. By setting External/User Breakpoint at a particular LOC.
The main difference between Session break point and External/User break point is that, In Session Break-point the breakpoints exist till the time the session is active whereas in External/User Break-point the breakpoints exist even if the session is terminated.
Now coming to Debugging a Screen/Pop-up, we just need to add four lines of code and to know how? Fallow the below steps:
1. Open the Notepad/Text File.
2. Add the following Code into it.
[FUNCTION]
Command=/H
Title=Debugger
Type=SystemCommand
3. Save the File as Batch File (Say Debug. Bat).
4. Drag and Drop the Bat file on the screen which you want to debug.
5. Finally you will see “Debugger Switched On” message in the status bar.
6. Then use the fallowing keys based on your need.
F5 - For Step By Step Debugging.
F6 - To Skip the Loops and Sub routines.
F7 - To Skip Loops/Sub routines and to return to last cursor position.
Shift+F12 (Debugger --> Goto Statement) - To go to the line of code where cursor is positioned.
F8 - Execute the program and Come out of the debugging mode.
If you think that the above steps are too many to fallow then let me tell you the alternative. There is a shortcut of creating a bat file for pop-up screen debugging and for that you just have to click on create shortcut button in SAP screen.
Now enter the Tile, Type as "System Command" and Command as "/h"
After that you just have to click on Next fallowed by Finish button. Once you are done with it you will see a shortcut on your desktop with the tittle you have given. Now you just have to drag and drop that shortcut on the pop-screen that you want to debug :-)
No comments:
Post a Comment