Sub topic 4
Switching and opening transactions with /n and /o
This chapter assumes you have a working SAP GUI logon, know that a transaction code starts a screen or program, and can type into the command field at the top left of the window. Here you will learn the prefixes that control where a transaction opens.
Why prefixes exist
Typing a bare transaction code works from the SAP Easy Access menu. From inside another transaction, it often does nothing useful or produces an error, because the current screen is still active. A prefix tells SAP GUI what to do with the current screen before starting the new transaction.
| Entry | Effect |
|---|---|
| `SU3` | Starts the transaction, usually only from the Easy Access screen |
| `/nSE16` | Ends the current transaction and starts SE16 in the same session |
| `/oSE16` | Opens a new session and starts SE16 there |
| `/n` | Ends the current transaction and returns to the Easy Access menu |
| `/nex` | Closes all sessions and logs off immediately |
The plain form
Type the code in the command field and press Enter.
SU3This opens your own user data and defaults. It is reliable when you are on the Easy Access screen. Inside another transaction, use one of the prefixed forms.
Switching with /n
The /n prefix ends the current transaction in this session and starts the one you name.
/nSE16This works from inside any transaction, so it is the form to use by default. If the current screen has unsaved changes, SAP GUI usually shows a prompt asking whether to save or discard them. Answer it before the new transaction starts.
Entering /n alone leaves the current transaction and returns you to the Easy Access menu.
/nOpening a new session with /o
The /o prefix opens a second session and starts the transaction there. Your first session stays exactly where it was.
/oSE16This is useful when you are halfway through a task and need to look something up. You do not lose your place or risk unsaved input.
Logging off with /nex
The /nex command closes every session of the logon and logs you off immediately.
/nexThere is no save prompt. Anything unsaved in any session is lost. Use it only when everything is saved.
Common errors
- Forgetting the prefix. Typing
SE16inside another transaction may be ignored or rejected. Add/nor/o. - Typing a space after the slash.
/n SE16is not the same as/nSE16. Write the prefix and code together. - Using
/nwith unsaved data. The prompt that appears is easy to dismiss by reflex. Read it first. - Opening too many sessions. A logon allows a limited number of sessions, commonly six by default, though the limit is set by your administrator. When it is reached,
/oshows a message and does not open a new one. - Confusing
/nand/o. If your old screen vanished, you used/n. If you got an extra window, you used/o.
Quick practice path
- From the Easy Access menu, enter
SU3. - Enter
/nSE16and notice that the SU3 screen is replaced. - Enter
/oSU3and notice that a second window opens while SE16 stays in the first. - Close the second window, then enter
/nto return to the menu.
Exercise
You are editing data in one transaction and have not saved. You need to look at table contents in SE16 without losing your place. Which entry do you use, and why not /nSE16?
Show answer
Use /oSE16. It opens SE16 in a new session and leaves the first session untouched. /nSE16 would end the transaction in the current session, so you would have to save or discard your unsaved changes first.
Exercise
What is the difference between entering /n on its own and entering /nex?
Show answer
/n ends the current transaction and returns you to the SAP Easy Access menu, and you stay logged on. /nex closes all sessions and logs you off at once, with no save prompt, so unsaved work is lost.