Ads

How to create SAP ABAP Error Message Class

How to create SAP ABAP Error Message Class


SAP ABAP Error Messages are very important for each ABAP program to know what is happening in that Program. Creating an error message class is very easy and we can create message classes using SE91 and SE38 Transaction codes.

Every Message has the message class and its ID and its Type.

Message Class in SAP ABAP


MESSAGE E001(MCLASS).


MESSAGE-Keyword
E-Message Type
001-Message Id
Mclass-Message class Name

Message Class TCode


SE91 and SE38 are message classTransaction codes.

Creating Message Class in SAP ABAP

First of all, Go to SE91 Tcode and Give the Message Class Name ZDEMO_MESSAGE and click on create
How to create SAP ABAP Error Message Class
In the Messages Tab, choose id and enter Message Description.
How to create SAP ABAP Error Message Class
Message Class has been created successfully. Now how to use created message class in the ABAP program.


MESSAGE I000(ZDEMO_MESSAGE).


Types of Messages in SAP ABAP

I - Information messages 
Information messages are displayed in a popup window and only pause processing until you have clicked through the message. 

E - Error message 
An error message will be displayed in red along the footer of the SAP screen and stops processing going any further. 

W - Warning message 
A warning message behaves similar to an error message and is displayed along the footer of the SAP screen.
S - Success/Status message 
A Success message is also displayed along the footer of the SAP screen but does not stop processing going any further and is simply displayed at the end in green. 

A - Termination/Abend 
A termination message stops processing and causes a run time error and short dump.

X - Exit 
An exit message stops processing and displays an exit button which exits session processing. 

How many ways can we display the messages in the SAP ABAP Program

a). MESSAGE 'abs' type 'I'.

b). MESSAGE I003 (<Message Class>)
            
c). REPORT <Program Name> MESSAGE-ID <Message Class>.
        MESSAGE I006.

          
d). MESSAGE text-001 type 'I'.
                      
e). MESSAGE i009 WITH 'create the correct sales order number'(003).
       
f). MESSAGE ID '<Message Class>' type 'I' NUMBER 002.

g). MESSAGE i007 (<Message Class>) WITH '<Some text message> '.

h). MESSAGE i004 WITH text-003.
              

i). MESSAGE i002 (<Message Class>) WITH text-003.
                       
j). MESSAGE i002 (<Message Class>) with p_user.




message class in sap abap
how to create message class in sap abap
message class tcode
message class
how to use message class in sap abap
create message class in sap abap
sap message class
message class in sap
sap message class tcode
tcode for message class
message class tcode in sap
tcode for message class in sap
message class tcode in sap abap
sap tcode message class
abap message class tcode
abap message class
sap create message class
message class in abap
tcode message class
how to create a message class in sap abap
message class in sap abap tcode
tcode for message class in sap abap
sap transaction message class
message class abap
abap create message class
abap message
sap tcode for message class
standard message class in sap abap
transaction for message class in sap
message class sap
sap abap message class
message class transaction sap
message class tcode sap
message class sap tcode
sap message class table
message abap
abap error message
abap message example
sap message class transaction
message class table in sap
how to write error message in sap abap
abap message id
se91 in sap
error message in sap abap
error message abap
sap abap message
message to class
sap message id tcode
se91 tcode in sap
sap abap error message
display error message in sap abap
sap change error message to warning
abap message types
sap abap message types
how to check message class in sap
how to display error message in sap abap
types of messages in sap abap
se91 sap
message types in sap abap
sap display message class
sap standard message class with
error message syntax in sap abap
sap abap message example
how to display multiple error messages in sap abap
message in sap abap
warning message in sap abap
abap text-001
messages in abap
abap class tcode
message with abap
se91
how to find message class in sap
sap se91

Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced