Some useful ABAP Debugging tricks.
Check this out:
May 8, 2026
ABAP Debugging Tips
Sep 19, 2012
Debug the POPUP in SAP
[FUNCTION] Command=/H Title=Debugger Type=SystemCommand
Oct 8, 2011
How to Debug Popup Screen in ABAP
Debugging in ABAP for ABAP developers is a vital requirement during building application in SAP systems. There are numerous ways to debug ABAP code or debug SAP screens for ABAP developers. But many ABAP programmers who are new to ABAP development may not know how to debug popup screen in SAP platform. In this short ABAP tutorial, I'll try to share you ABAP trick to debug SAP popup screens.
Please note that, this tutorial does not cover debugging using "/H" option or using break points in ABAP code. I want to concentrate on developers requirement to debug an unknown ABAP code block which they want to discover.
First step is open your Notepad application and type or copy-paste the following commands in a new blank text file.
[FUNCTION]
Command=/H
Title=Debugger
Type=SystemCommand
Then save the above text file as a batch file. You can name it as debug.bat for example.
Now ABAP developers are ready to debug a modal popup SAP screen. Let's assume that you want to debug output processing log screen for an invoice output
Now drag and drop debug.bat batch file from your Windows desktop onto the modal popup SAP screen.
Then the SAP GUI will inform you about the debugging status with message "Debugging switched on"
Now ABAP developers can easily activate debugging screen in ABAP on the modal popup SAP screen.
How to debug Smartforms
Debugging SmartForms using Function Module
If you want to debug Smartform document in non-modifiable client, then you can try debugging Smartforms Function Module using soft break point.
First you need to find the function module name of the target SmartForm for debugging.
If you do not know how to get the function module name of the SAP Smart Form, please read the Smart Form tutorial titled How to Find SAP SmartForms Function Module Name.
Without knowing the function module name, we can not debug SmartForms in non-modifiable clients.
After you find the function module name, we can now display the ABAP source codes of the SSF FM (Function Module) using the SAP Transaction SE37.
Within the ABAP codes of Smartform FM you can put a soft break-point any where suitable for your debugging Smartforms purposes.
It is better to copy the node name or some parts of the ABAP code in the SAP Smartform and search the text within the SE37 displayed source code of the Smartforms function module (FM).
You can place a soft break point in the source code using Ctrl+Shift+12 key combination or using the Stop icon .
Let's assume that you want to debug Smartforms codes within program lines named '%CODE10' as seen in the followin Smartform screenshot,
First click on the Search button , and not use the Ctrl+F since searc button has far more powerful functionalities than ordinary Ctrl+F search.
Enter the text you are searching in the Find text area.
You can search for the node name '%CODE10' as well as for a part of your SmartForm code.
What is important here in this Search is be sure that you selected the option "In main program".
Otherwise your search will take place only for a limited part of the Smartform function module codes.
Aug 23, 2011
Debugging workflows and generating sub-workflows
- Switch the event trace ON (Tcode SWELS), carry out your transaction and view the event log (Tcode SWEL).
- If there is a standard event then the trace will tell you the name of the object and the event raised.
- Otherwise create your own object and events and trigger it (them) using FM "SWE_EVENT_CREATE".
Nov 10, 2010
How to Debug Pop-up window
In common dialogs, the okcode field is available:
But it is not available in modal windows (we see it but we can't enter anything in it):
The solution is to create on the frontend a SAPGUI shortcut (file with extension .SAP), of type System Command and command /H, and drag and drop it from Windows desktop to the SAP modal window. The creation of SAPGUI shortcuts is explained here: SAPGUI shortcuts.