Tips and Tricks for the SAP Transaction Field

Matthew Tice
3 min readJul 12, 2018
The SAP Transaction field
Above: The SAP Transaction field is circled in yellow.

Introduction

In this article we’ll discuss the SAP transaction field and how you can leverage more functionality out of it. After reading this article, you’ll be an expert in the ways you can use the transaction field.

Overview

Here is an overview of the possible commands you can use in the transaction field:

  • /o — Launches a popup with the list of your current sessions:
slash-o results
The number seen on the left in the above screenshot is the session number.
  • /o<tcode> — Starts the specified transaction (denoted by <tcode>) in a new session. Example usage: /oSE16N.
  • /n — Ends the current transaction and returns the user to the SAP main menu. This does not prompt before ending the current transaction.
  • /n<tcode> — Ends the current transaction and begins the specified transaction (denoted by <tcode>) in its place.
  • /i — Closes the current session. /i<#> closes the specified session (denoted by <#>). SAP does not prompt the user before closing the session.
  • /nend — Closes all sessions, prompting the user before actually closing the sessions.
  • /nex — Closes all sessions without prompting you
  • /h — Triggers the launch of a debugger session after your next interaction with the screen.
slash-h results
  • /ha — Triggers the launch of a debugger session with System Debugging switched on.
System program example
  • /hs — Triggers the launch of the debugger with special configuration to skip screen debugging.
slash-h-s debugger results

There is more to the transaction field than the possible entries detailed above. You can also drag-and-drop SAP GUI shortcuts into the transaction field to launch transactions or turn on the debugger.

First, create a new SAP GUI shortcut anywhere on your desktop (or desired folder):

Create a new SAP shortcut

Next, right click on the shortcut and click Edit. From here you can modify the shortcut and set it up for drag-and-drop debugging.

GUI shortcut title and type

You can set the title to whatever you prefer. Under the Type drop down, select System Command.

The Report: field label will switch to Command:. Type in any of the commands listed above (I’ve used /H). Note that you’ll need to specify a Client before you can save your changes.

GUI shortcut full setup

Hit OK to save your changes. Now you can use this GUI shortcut to enter the debugger whenever you like. This is useful even if you don’t have access to the SAP Transaction field. You can use these shortcuts to debug SAP popup windows as well:

drag and drop debug

Conclusion

In this article we’ve covered the many ways you can use both the SAP transaction field and SAP GUI shortcuts. In particular, GUI shortcuts are a great way to enter the debugger from a GUI popup window. Thank you for reading this article — I hope you’ve enjoyed it and taken something new for your repertoire.

Have a great week!

Originally published at ABAP Coder.

--

--

Matthew Tice

Matthew is a senior ABAP developer with more than 13 years’ experience writing ABAP for multinational companies. He is devoted to building better ABAPers.