Types of messages in SAP ABAP Programming

Using messages in SAP ABAP programming, types of messages in SAP ABAP, display error, success and warning messages in SAP ABAP

+ -

Like all programing languages, we need to raise status, error, warning, information, abort etc messages in ABAP programs, in SAP we can raise the following messages.

I - information message

S - status message

E - error message

W - warning

A - termination message

X - exit message.

The below syntax is used to raise messages in SAP.

MESSAGE '' TYPE ''. "Message text = any string, message type = A, E, I, S, W, X

Types of messages available in SAP

Message Type Effect Description
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.

Learner Questions


No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question

    Was this lesson helpful to you? Yes No 62 People out of 68 think this lesson helpful


    Lesson Navigation

    ←Previous Chapter
    Next Chapter →