Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Text Repositories 

Messages

Messages are repository objects managed using the message editor tool in ABAP Workbench. Fundamentally, a message is a short text with its own ID that can be expanded using an optional long text. A message is available in its original language and in all languages into which it is translated.

The statement MESSAGE is used to implement a message in a ABAP program. When the statement MESSAGE is used to send a message, a message type must be specified. This type then defines the system behavior used when the message is sent.

  • In the basic form of the statement MESSAGE, the behavior of a message is determined by the context in which the message was sent
  • The variant MESSAGE ... INTO assigns the short text of the message to a field.

The system interfaces IF_T100_MESSAGE and IF_T100_DYN_MSG make it possible to associate objects with messages and display them using the statement MESSAGE. This is intended mainly for exception texts of exception classes.

Other versions: 7.31 | 7.40 | 7.54

Programming Guideline

Only use messages for error handling in classic dynpros and as exception texts

Continue

Storing Messages

Behavior of Messages

MESSAGE

System Interfaces for Messages