Show TOC

Message ProcessingLocate this document in the navigation structure

Use

Message processing depends on the message type specified in the MESSAGE statement and the program context in which the statement occurs.

Message Types

A

Termination message

The message appears in a dialog box, and the program terminates. When the user has confirmed the message, control returns to the next-highest area menu.

E

Error message

Depending on the program context , an error dialog appears or the program terminates.

I

Information

The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after the MESSAGE statement.

S

Status notification

The program continues normally after the MESSAGE statement, and the message is displayed in the status bar of the next screen.

W

Warning

Depending on the program context , an error dialog appears or the program terminates.

X

Exit

No message is displayed, and the program terminates with a short dump. Program terminations with a short dump normally only occur when a runtime error occurs. Message type X allows you to force a program termination. The short dump contains the message ID.

Contexts

Messages, especially those with type E or W, are processed according to the context in which they occur. The following sections summarize the most important context rules:

Messages Without Screens

Messages on Screens

Messages on Selection Screens

Messages in Lists

Messages in Function Modules and Methods

The program DEMO_MESSAGES demonstrates how the different message types are processed in different contexts.