SAP ABAP MESSAGES



Get Example source ABAP code based on a different SAP table
  



ABAP_MSG
Messages are repository objects that are managed using a message maintenance tool. Fundamentally, a message is a short text that can be expanded using an optional long text. A message is identified with the following key:
A 20-character message class
A 3-digit message number
A message is created with an original language and can be translated to other languages.
The statement MESSAGE is the basic statement for working with messages in an ABAP program. When the statement MESSAGE is used to send a message, the message key and a message type must be specified. Optionally, placeholders in the message text can be filled with values.
BEGIN_SECTION VERSION 5 OUT
The message type defines the system behavior when the message is sent.
END_SECTION VERSION 5 OUT
BEGIN_SECTION VERSION 5 OUT
In the basic form of the statement MESSAGE, the behavior of a message depends on the context in which the message was sent
The variant MESSAGE ... RAISING raises a non-class-based exception and uses the message as its exception text.
END_SECTION VERSION 5 OUT
The variant MESSAGE ... INTO assigns the short text of the message to a field.