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: 

How many types of messages are there what are they?

Former Member
0 Kudos

How many types of messages are there? what are they?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

A

Termination

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

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

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,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

4 REPLIES 4

Former Member
0 Kudos

Hi,

5 types;

ABEND, ERROR, WARNING, INFORMATION AND CONFIRMATION.

Regards,

Anji

Former Member
0 Kudos

There are six kinds of message type:

A (Abend) - Termination

E (Error) - Error

I (Info) - Information

S (Status) - Status message

W (Warning) - Warning

X (Exit) - Termination with short dump

Regards,

Renata

Former Member
0 Kudos

Hi,

A

Termination

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

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

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,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

Former Member
0 Kudos

Hi,

Refer the Demo program this iwll help

<b>DEMO_MESSAGES</b>


1. MESSAGE xnnn. 
2. MESSAGE ID id TYPE mtype NUMBER n. 
3. MESSAGE xnnn(mid).

Effect

Sends a message. Messages are stored in table T100, and can be maintained using Transaction SE91. They are fully integrated in the forward navigation of the ABAP Workbench.

The ABAP runtime environment handles messages according to the message type specified in the MESSAGE statement and the context in which the message is sent. There are six kinds of message type:



A (Abend) 
Termination 
E (Error) 
Error 
I (Info) 
Information 
S (Status) 
Status message 
W (Warning) 
Warning 
X (Exit) 
Termination with short dump

Messages are used primarily to handle user input on screens. The following table shows how each message type behaves in different contexts. The numbers are explained at the end of the table.

A E I S W X

-


PAI module 1 2 3 4 5 6

PAI module at POH 1 7 3 4 7 6

PAI module at POV 1 7 3 4 7 6

-


AT SELECTION-SCREEN ... 1 8 3 4 9 6

AT SELECTION-SCREEN at POH 1 7 3 4 7 6

AT SELECTION-SCREEN at POV 1 7 3 4 7 6

AT SELECTION-SCREEN ON EXIT 1 7 3 4 7 6

-


AT LINE-SELECTION 1 10 3 4 10 6

AT PFn 1 10 3 4 10 6

AT USER-COMMAND 1 10 3 4 10 6

-


INITIALIZATION 1 11 3 4 11 6

START-OF-SELECTION 1 11 3 4 11 6

GET 1 11 3 4 11 6

END-OF-SELECTION 1 11 3 4 11 6

-


TOP-OF-PAGE 1 11 3 4 11 6

END-OF-PAGE 1 11 3 4 11 6

TOP-OF-PAGE DURING ... 1 10 3 4 10 6

-


LOAD-OF-PROGRAM 1 1 4 4 4 6

-


PBO module 1 1 4 4 4 6

AT SELECTION-SCREEN OUTPUT 1 1 4 4 4 6

reward if this helps.