Entering content frameProcedure documentationCreating Message Classes Locate the document in its SAP Library structure

Procedure

To create a new message class from the ABAP Editor:

  1. In the initial statement (for example, REPORT) or directly in the statement MESSAGE ID <id> enter a parameter value of up to 20 characters as a message ID, for example:
  2. REPORT <name> MESSAGE-ID <message class>.

    Messages are stored system-wide. The chosen message ID (message class) must not already exist in the system.

  3. Double-click the message ID.
  4. If you enter an ID that already exists in the system, the system calls up Message maintenance. In this case, enter a different ID. Once you have done this, the system asks you whether you want to create a new message class.

  5. Choose Yes.
  6. The system calls up Message maintenance.

  7. Enter a brief description of the class in Short text.
  8. Choose Save.

Result

You can add messages to your class by choosing the Messages tab. You can always return to the Message maintenance screen by double-clicking a message ID or a message number where it appears in your code.

See also Add message.

 

 

Leaving content frame