Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Differents types of messages?

Former Member
0 Kudos

Hi All,

What are the diff types of messages available?

Regards,

Kiran

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Kiran,

There are 6 types of normal messages they are

<b>TYPE->DESCRIPTION->DILOG BEHAVIOUR->MESSAGE APPEARS IN</b>

1. i ->Info Message->Program continues after Interruption->Model Dilog Box

2. s->Set Message->Program continues without Interruption->Status bar of next screen

3. w->Warning->Context Dependent->Status bar or model dilog box

4. e->Error->Context Dependent->Status bar or model dilog box

5. a->Abort->Program Cancelled->Model dilog box

6. x->Exit->Runtime error MESSAGE_TYPE_X triggered->Short dump

You use the MESSAGE statement to send dialog messages to the users of your

program. When you do this, you must specify the three digit message number

and the message class.

Message number and message class clearly identify the message to be displayed.

You use the message type to specify where the message is to be displayed. You

can test the display behavior for using the different message types by means of the

DEMO_MESSAGES demo program that is shipped in the SAP standard.

If the specified message contains placeholders, you can supply them with values

from your program by using the WITH addition. Instead of the placeholders, the

transferred values then appear in the displayed message text.

For further information on the syntactical alternatives to the MESSAGE statement,

refer to the keyword documentation.

Regards,

Chandru

3 REPLIES 3

Former Member
0 Kudos

Hi Kiran,

I am not sure abt which messaes u r asking abt if it is normal messags then there are 6 types og messages they are error, abort, warning, information, sucess, exit..

if abt ale messages then again those are differet.....

regards,

sana..

Former Member
0 Kudos

Hi Kiran,

There are 6 types of normal messages they are

<b>TYPE->DESCRIPTION->DILOG BEHAVIOUR->MESSAGE APPEARS IN</b>

1. i ->Info Message->Program continues after Interruption->Model Dilog Box

2. s->Set Message->Program continues without Interruption->Status bar of next screen

3. w->Warning->Context Dependent->Status bar or model dilog box

4. e->Error->Context Dependent->Status bar or model dilog box

5. a->Abort->Program Cancelled->Model dilog box

6. x->Exit->Runtime error MESSAGE_TYPE_X triggered->Short dump

You use the MESSAGE statement to send dialog messages to the users of your

program. When you do this, you must specify the three digit message number

and the message class.

Message number and message class clearly identify the message to be displayed.

You use the message type to specify where the message is to be displayed. You

can test the display behavior for using the different message types by means of the

DEMO_MESSAGES demo program that is shipped in the SAP standard.

If the specified message contains placeholders, you can supply them with values

from your program by using the WITH addition. Instead of the placeholders, the

transferred values then appear in the displayed message text.

For further information on the syntactical alternatives to the MESSAGE statement,

refer to the keyword documentation.

Regards,

Chandru

Former Member
0 Kudos

hi kiran,

there are generally 6 types of messages,described as below.

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 and Sucess 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.