MESSAGE

Short Reference

Syntax

MESSAGE { msg | txt } [message_options].

Effect

This statement interrupts the program flow and either displays the short text of a message specified in msg in the logon language of the current user, or any text from txt as a message. The exact behavior of the MESSAGE statement - that is, how the text is displayed and how the program flow is continued after the MESSAGE statement - is context-dependent and is determined by a message type specified in msg or txt. This behavior can be changed using the message_options additions and the placeholders can be replaced in messages.

System fields/>

Name Relevance
sy-msgid Contains the message-class after sending a message, and the value "00" after sending any text.
sy-msgno Contains the message number after sending a message, and the value "001" after sending any text.
sy-msgty Contains the identifier of the message type with which the message resp. the text was sent.
sy-msgv1 to sy-msgv4 Contain the content of the data objects specified after the addition WITH after sending a message. After sending any text, they contain the first 200 characters of the data object text.

Notes

Exceptions

Non-Catchable Exceptions