SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → User Dialogs → Messages →Syntax
MESSAGE { msg | text }
[message_options].
Effect
This statement interrupts the program flow and either displays the short text of a
message specified in msg from the table
T100 in the logon language
of the current user, or any text from text 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 text. This behavior can be changed using the message_options additions and the placeholders can be replaced in messages.
System Fields
Name | Meaning |
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 or 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 (in order). After sending any text, they contain the first 200 characters of the data object text. |
Notes
Non-Catchable Exceptions