F Message class creation in SAP ABAP | CodeTheta

Message class creation in SAP ABAP

October 25, 2019

1. To create Message class in SAP go to Transaction Code SE91.

2. Put the Message class name with Z (like ZVP_MSG_CLASS) and click Create button.

3. Put the Message Short Text with respect to Message Number (like 000,001,002).


4. Save the Message text and Activate the Message class.

5. After that go to SE38 and give a program name starting with Z, in my case i am giving ZVP_MSG_CLASS_CALL.

6. Source code is below.

REPORT ZVP_MSG_CLASS_CALL.
message i002(zvp_msg_class).

7. Here 'i' information, you can use e, s which is error error and success. Activate the program and run it.

Output :

IDE Used To Test This Code : ABAP Editor.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.

Post a Comment