Entering content frame

Procedure documentation Using Function Types Locate the document in its SAP Library structure

When you create functions, you define a function code and a name. When a user chooses a function, the system stores the function code in the SY-UCOMM field. The code tells the system which function a user chose.

You can also assign a type to your functions. Function types can, for example, tell the system when or how to carry out a function. The system uses the following function types:

Type

Meaning

 

Normal function code processing (for example, in a PAI module).

E

Triggers an "at exit-command" module in the Process After Input (PAI) processing block (MODULE <xxx> AT EXIT-COMMAND). When the user selects an E type function, the system enters the "at exit-command" module before carrying out any input checks.

T

Calls another transaction. Activating a T type function has the same effect as the LEAVE TO TRANSACTION statement. The user cannot return to the original transaction.

S

Triggers system functions used internally in SAP standard applications. You should not use type 'S' when creating your own functions.

P

Triggers a function defined locally at the GUI. This function is not passed back to the ABAP program (no SY-UCOMM or OK_CODE). Instead, it is processed at the presentation server. This type of function can only currently be used for tabstrip controls (Screen Painter).

Assigning Function Types

To assign function types:

  1. Double-click a function in the GUI status.
    The Function Attributes dialog box appears, which displays an overview of all of the function attributes.
  2. Choose a function type in the Function type field.
  3. Choose ENTER to continue.

 

Leaving content frame