Adding Messages 

Prerequisites

You must already have specified a valid message class in your ABAP program.

Procedure

To add new messages to a message class from the ABAP Editor:

  1. Choose Goto ® Messages.
    A list of all messages in the relevant message class appears.
  2. Select the next free message number.
  3. Choose Individual maint..
    You can now enter a text in the corresponding line.
  4. Enter the message text.

  5. If the message text is self-explanatory, set the corresponding flag next to the text field.
    Remember that you cannot maintain long texts for self-explanatory message texts. See also
    Creating a Message Long Text.
  6. Choose Save.

You can also create new messages using forward navigation. In the MESSAGE statement, enter a new message number and then double-click it. You should preferably enter the next free number in the message class. However, if you do not know it, you can enter any number and subsequently correct it.

Result

You can now use the message that you have defined in the MESSAGE statement in your program.