Show TOC

 Function TypesLocate this document in the navigation structure

Use

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 has chosen.

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 Description

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 must 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).