cancel
Showing results for 
Search instead for 
Did you mean: 

Message class

Former Member

Hi All,

I am new to SAP. Can u please tell me about Messages and message class.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Different types of messages are :

A : abnormal end u2013 terminates the program and displays text message on screen.

E : error u2013 interrupts flow of control in PAI , enables user to enter new data , PAI is processed again.

W : warning u2013 same as error message.

I : information u2013 no interrupt in flow control

S : success u2013 same as informational but message displayed on next screen

How to define Messages in program:

Prefix of the message specifies the message type eg. E for error message.

Using u2018&u2019 we can include a max. of 4 variables in message text.

message i001 with var1 var2.

Message-id can be specified at

1. program xxxx message-id yyy.

2. message e001(yyy).

Transaction to create message class is SE91.

Thanks.

Revert back if any queries.

Do reward points if helpful

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

1) in sap for every action that happens the system has maintained messages,

2) for eg. u might have seen some message displayed in statusbar wen u perform some action in sap.

3) al msg are maintained in sap standard system.

4) msg class is used to group number of related messages in the system.

eg. msg class : m5

this class m5 can have number of related messages. each msg is identified with a number.

5) u can also create ur own msg. goto se91. enter ur message class, and create number of messge for that class.

6) now in ur report program u can use those maintained message for various porposes..

different msg type like s-success, e- error, w-warning

reward if helpful

regards

mano

Former Member
0 Kudos

Hi,

Welcome To SDN!!.

Just go to SE91 -> Give message class name and create new messages in that class.

Well do lik ethis ,its better way.no need to create any msg class,its an alternate ways.

MESSAGE e001(01) WITH 'Purchase Requistion no. does not Exist!'

MESSAGE e002(01) WITH 'Purchase Order no. does not Exist!'

MESSAGE i003(01) WITH 'Plant No. does not Exist!'.

Regards

Kiran Sure

Former Member
0 Kudos

Hi,

1.U can create Your own message class in SE91 tcode.

2.There are different types of messages like S,I,E,W and A.

Messages Locate the document in its SAP Library structure

You send messages in the logon language of the current user using the ABAP statement MESSAGE. The statement specifies the message class, number, and type of the message.

The message class and number are used to identify the message in table T100. The message type is one of A, E, I, S, W, or X, and defines how the ABAP runtime should process the message.

Messages can either be displayed in modal dialog boxes, or in the status bar of the screen. How a message is processed depends on its type and on the context in which the message is sent.

A-->Termination Message

The message appears in a dialog box, and the program terminates. When the user has confirmed the message, control returns to the next-highest area menu.

E-->Error Message

Depending on the program context, an error dialog appears or the program terminates.

I-->Information

The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after the MESSAGE statement.

S-->Status Message

The program continues normally after the MESSAGE statement, and the message is displayed in the status bar of the next screen.

W-->Warning

Depending on the program context, an error dialog appears or the program terminates.

X-->Exit

No message is displayed, and the program terminates with a short dump. Program terminations with a short dump normally only occur when a runtime error occurs. Message type X allows you to force a program termination. The short dump contains the message ID.

Regards,

Shiva Kumar