6 Columns with Active Background
6 Columns with Active Background
Active List Item Background

24REPORT1308 – What is Message and its Types

What is Message in ABAP?

Message: Message class in SAP ABAP are used to notify users about program status, problems, warnings and other needful information.

Types of Message:

  1. A: Abort -> It terminate the program and display the message.
  2. E: Error-> It displays an error message and prompts the user to enter correct input.
  3. I: Information-> It displays an informational message.
  4. S: Success-> It displays a success message.
  5. W: Warning-> It displays a warning message and allows the user to continue.
  6. X: Exit-> It terminates the program and generates a short dump.

 

Steps to create Message Class:

  • Go to command bar and enter tcode ‘SE91’ and press enter.

 

  • Enter name of Message class and click on create.
  • Click on Message tab and save the message class where you want to save it (Transport request or local object).
  • Keep the necessary message texts and message numbers. After that, save the entries and assign them to the appropriate transport request and development class. We can use the saved message class in our ABAP programs.
  • This is how messages can be display.

         MESSAGE i000(ZNEW_MSG).

  • The MESSAGE statement in the code above specifies the message number, message class, and message type. Additionally, the message class can be specified in the REPORT.At last, the customized message appeared with the runtime and dynamic text “informational.” This is an informational message that is output to a separate informational dialog box.

Author : Aniket Pawar, 9373518385                                                                             

24REPORT1308 – What is Message and its Types

What is Message in ABAP?

Message: Message class in SAP ABAP are used to notify users about program status, problems, warnings and other needful information.

Types of Message:

  1. A: Abort -> It terminate the program and display the message.
  2. E: Error-> It displays an error message and prompts the user to enter correct input.
  3. I: Information-> It displays an informational message.
  4. S: Success-> It displays a success message.
  5. W: Warning-> It displays a warning message and allows the user to continue.
  6. X: Exit-> It terminates the program and generates a short dump.

 

Steps to create Message Class:

  • Go to command bar and enter tcode ‘SE91’ and press enter.

 

  • Enter name of Message class and click on create.
  • Click on Message tab and save the message class where you want to save it (Transport request or local object).
  • Keep the necessary message texts and message numbers. After that, save the entries and assign them to the appropriate transport request and development class. We can use the saved message class in our ABAP programs.
  • This is how messages can be display.

         MESSAGE i000(ZNEW_MSG).

  • The MESSAGE statement in the code above specifies the message number, message class, and message type. Additionally, the message class can be specified in the REPORT.At last, the customized message appeared with the runtime and dynamic text “informational.” This is an informational message that is output to a separate informational dialog box.

Author : Aniket Pawar, 9373518385