Messages are short texts which are displayed by an ABAP program in a dialog box or in the status bar of the current SAP GUI window. They are called by means of the MESSAGE statement. You can use messages to inform the user about the program flow, handle errors inside a self-defined input check-up, or terminate the program.
The system displays the messages in the logon language of the user.
Assigning Messages
To send messages from a program, you must link it to a message class. Each message class has an ID and contains a whole set of messages. Each message has a single line of text and can contain placeholders for variables. Once you have created a message, you can use it in the MESSAGE statement in a program. All messages are stored in table T100. Database table T100 has the following columns:
The message class assigns messages to a specific area, such as an application area or a packet.
The range between 900 and 999 is reserved for customers.
You must create an explanatory long text when you maintain the message if the short text itself is not sufficiently explanatory.
Within short and long texts, you can use placeholders which can be replaced with the content of data objects using the MESSAGE statement.
Starting the Message Maintenance Transaction
To reach the Message Maintenance screen, use one of the following paths:
The Maintain Messages screen appears. By default, the system displays the message class linked to the current program.
If you choose Goto → Messages in the ABAP Editor and your program does not have a defined message class, the system assumes you want to browse an existing class and prompts you to enter a message class ID.
For more information about messages, see messages .
To create a new message class, you can also use the following path:
A dialog box appears.
The Message Maintenance screen (transaction SE91) appears.
See also