This blog contains experience gained over the years of implementing (and de-implementing) large scale IT applications/software.

SAP Command Field Codes

Extracted from SAP Note 26171 – “Possible entry values for command field (“OK-code”)”

Calling transactions & Session Handling:

/nxxxx
    This terminates the current transaction, and call transaction “xxxx”, for example, “sa38” for reporting.

/n
    This terminates the transaction. This generally corresponds to going back with F15.

/nend
    This terminates all separate sessions and logs off (corresponds to “System -> Log off”).

/nex
    This terminates all separate sessions and logs off immediately (without any warning).

/oxxxx
    This opens a new session and starts transaction xxxx in this session.

/o
    This lists existing sessions and allows deletion or opening of a new session.

/i
    This terminates the current session (corresponds to “System -> End session”).

/i1 , /i2 ,…
    This terminates the session with the specified number.

.xyzw
    “Fast path”: “xyzw” refers to the underlined letters in the menus. This type of navigation is uncommon and is provided more for emergencies (such as a defective mouse)

Background Input:

/n
    This terminates the current background input transaction and characterizes it as “Failed”.

/bdel
    This deletes the current background input transaction.

/bend
    This terminates background input processing and sets the session to “Failed”.

/bda
    This switches from “Display errors only” to “Process in foreground”.

/bde
    This switches from “Process in foreground” to “Display errors only”.

ABAP/4 debugging:

/h
    This switches into debugging mode.

/hs
    This switches into debugging mode and activates the debugging of system functions.

Buffer commands:

/$SYNC
    This resets all buffers of the application server.

/$CUA
    This resets the CUA buffers of the application server.

/$TAB
    This resets the table buffers of the application server.

/$NAM
    This resets the nametab buffers of the application server.

/$DYN
    This resets the screen buffers of the application server.

Out-of-date commands:

Pxxx
    From the menu system:
Calls transaction Pxxx.

If an ABAP list is displayed:
Send command Pxxx to the list processor (for example, P+, P–, PRI, and so on)
From a transaction screen:
Send command Pxxx to this transaction

xyyy (where x is not ‘P’, ‘/’, ‘=’ or ‘.’) )
    From the menu system:

Calls transaction xyyy
Within a transaction:
Send command xyyy to this transaction

/*xxxx
   Calls transaction xxxx and branches to the next screen. So, it has the same effect as /nxxxx followed by ENTER.

=xxxx
   This entry is still possible for compatibility reasons, but is no longer supported.

%sc
    Searches for a string in lists (like “System -> List -> Find String”)

%pc
    Downloads lists

%pri
    Prints lists

?STAT
    Displays the status dialog (such as “System -> Status…) )