Professional Documents
Culture Documents
Messages in ABAP: A Terminatio N Depending On The Program Context, An Error Dialog Appears or The
Messages in ABAP: A Terminatio N Depending On The Program Context, An Error Dialog Appears or The
Messages in ABAP: A Terminatio N Depending On The Program Context, An Error Dialog Appears or The
Messages are usually used to tell the user what is going on. The following types of messages are available in ABAP.
Terminatio
When the user has confirmed the message, control returns to the next-
Error
program terminates.
The message appears in a dialog box. Once the user has confirmed the
message, the program continues immediately after
Status
Error
Warning
program terminates.
No message is displayed, and the program terminates with a short
dump. Program terminations with a short dump normally only occur
Exit
We can issue a status message as follows. Status message will be displayed in the status bar. After the
message is displayed the program continues after the MESSAGE statement.
MESSAGE'Thisisastatusmessage'TYPE'S'.
Information message will be displayed in a dialog box. Once the user has confirmed the message, the
program continues immediately after the MESSAGE statement.
MESSAGE'Thisisaninformationmessage'TYPE'I'.
Error message in report programs will be displayed in the status bar and when the user press enter, the program
terminates.
MESSAGE'Thisisanerrormessage'TYPE'E'.
Termination 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.
MESSAGE'Thisisterminationmessage'TYPE'A'.
Instead of hardcode the message text in the program we can maintain the message text in text symbols. In order to
maintain text symbols use the menu path Goto->Text Elements->Text Symbols in ABAP editor.
In the text symbols screen we can maintain the messages with a 3 character identifier.