16.6.11

SAP Note 26171 - Possible entry values for command field ("OK-code")

Symptom:

Which entry options do I have in the command field (sometimes also called "OK code")?

Reason and Prerequisites

Documentation on this is scattered.

Solution

The design of the R/3 system is such that all programs can be called using menu options. In addition to ergonomic advantages (no need to learn transaction codes), this procedure offers greater security, as the menu path informs the user of the work area to which a program belongs.

Use of the command field should therefore be limited to exceptions. In particular, there is no guarantee that the function of the command field is fully supported.

Entry options are listed below. These are only meant for experts (system administrators). Some of them (for example, "/nex") may also be dangerous since they override safety measures.
"Normal" users should avoid using the command field at all. It is often easier to call a known transaction with "/nxxxx", but this can be achieved just as simply using a user menu.

Direct call of 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:

The following commands can be entered in correction mode ("Process in foreground" or "Display errors only") when processing a background input session:

  • /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:

WARNING: Resetting buffers can significantly impact on the performance of the entire system for a long time. It should therefore be executed only in well-founded cases. As of Release 3.0B, system administator authorization is required (authorization object S_ADMI_FCD). The action is noted in the system log.

  • /$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...) )

No comments:

Post a Comment