Get Example source ABAP code based on a different SAP table
ID MESSAGE-INTO • INTO MESSAGE
MESSAGE>, INTO> Short Reference >
ABAP_SYNTAX MESSAGE msg> $[WITH dobj1 ... dobj4$]> INTO text.>
What does it do? The statement MESSAGE>> with the addition INTO> assigns the short text of the message to the target field text>. The message type> is irrelevant. The program flow is not interrupted and no message processing> takes place. The following can be specified for text>:
An existing character-like variable.
An inline declaration DATA(var)>> or FINAL(var)>>, where a variable of type string> is declared. The addition INTO> cannot be specified when a text text>> is specified or when an object reference variable is specified in msg>>.
ABAP_EXAMPLE_VX5 The short text of a message sent in a function module is assigned to the data object mtext> declared inline when handling the exception error_message>> using the corresponding system fields. ABEXA 01732 ABAP_EXAMPLE_END