Sub topic 12
Creating desktop shortcuts to transactions
This chapter assumes you can start a transaction from the command field, you know what /n and /o do, and you have SAP GUI for Windows installed. Desktop shortcuts are a Windows feature of SAP GUI. They don't exist in the browser-based clients.
What a desktop shortcut does
A desktop shortcut is a small file on your Windows desktop. Double-click it and SAP GUI connects to a system, logs you on, and starts one transaction. You skip the logon pad, the Easy Access menu, and the command field.
The shortcut stores the target system, the client, your user name, the language, and the transaction code. It can't store your password. You type the password each time, unless your company uses single sign-on, in which case the logon may finish without a prompt.
Creating a shortcut
- Log on and open the transaction you want, or stay in the Easy Access menu and select the entry.
- Open the Customize Local Layout menu (the icon at the right end of the toolbar, or Alt+F12) and choose Create Shortcut. In some SAP GUI versions this entry is under the System menu instead.
- In the dialog, check the fields:
- Type: Transaction.
- Title: the name shown under the desktop icon.
- Command: the transaction code, for example
SU3. - System description, Client, User, Language: fill these in so the logon is predictable.
- Directory: normally your desktop.
- Confirm. The icon appears on the desktop.
The command and the prefixes
Chapter 4 covered /n and /o for use inside a running session. A shortcut starts from a fresh logon, so there is no current transaction to end and no session to leave open. Enter the plain code, such as SU3, in the Command field. Don't type /nSU3.
The dialog saves the code in the shortcut file with a leading *. That marks the command as a transaction to start right after logon. You don't type the * yourself.
What is inside the shortcut file
A shortcut is a plain text file with the extension .sap. You can open it in a text editor. This is an example for transaction SU3:
[System]
Name=DEV
Client=100
[User]
Name=JSMITH
Language=EN
[Function]
Title=My user settings
Command=*SU3
Type=Transaction
[Configuration]
GuiSize=Maximized
[Options]
Reuse=1Name is the system ID from your SAP Logon list. The shortcut finds the system through that entry, so the entry must exist on the machine where you use the shortcut. Reuse=1 lets SAP GUI use a connection that is already open, if your setup allows it.
Common errors
| Symptom | Likely cause |
|---|---|
| The shortcut opens the logon pad but no system | The system name doesn't match an entry in SAP Logon on this PC |
| Logon works but the Easy Access menu appears | The command is empty or the type isn't Transaction |
| A message says you have no authorization | Your user lacks authorization for that transaction. See the next chapter |
| The shortcut stopped working after a system change | The client or system ID changed. Recreate the shortcut |
When to use shortcuts or Favourites
Use a Favourite when you are already logged on and want a quick way to a transaction. Use a desktop shortcut when you want to go from the desktop to one transaction in a single step, such as a time-recording transaction you open first thing each day.
Exercise
You created a shortcut with the Command field set to /nSE16 and it opens the logon but then shows an error or the wrong screen. What should you change, and why?
Show answer
Change the command to the plain transaction code, SE16. The /n prefix ends the current transaction in a running session, but a shortcut starts a fresh logon with no transaction to end. The dialog adds the leading * itself when it saves the file.