SAP

Debugging a dialog window

If you have been working with SAP for a while debugging programs, you’ll most probably know the “/h” command, that activates the debugger from any SAP transaction.

Maybe then you have stumbled upon a program/transaction which does not have the command box enabled, so it would seem is not debuggable. An example of these transactions is CG3Y, which main window is a dialog, which locks the focus and does not allow the execution of commands in the command box at the top left corner.

In case we need it, how do we debug this transaction then? One of the solutions is having in hand an SAP command file. Open a notepad, paste the following code and save it with any name:

[Function]
Title=Debug
Command=/h
Type=SystemCommand

 You can also download the command in a file from here 😉

Once you have the file, it is as simple as dragging the file and dropping it over the dialog window you want to debug, and the debugger will activate.

Once you perform an action (like hitting enter or pressing a dialog button), the execution will pause and the debug window will pop up:

Don’t you find this useful? See you in the next post!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Esta web utiliza cookies propias y de terceros para su correcto funcionamiento y para fines analíticos. Al hacer clic en el botón Aceptar, acepta el uso de estas tecnologías y el procesamiento de tus datos para estos propósitos. Ver
Privacidad