06 - ABAP Basics - Others
06 - ABAP Basics - Others
Others
1
Messages
Types of Messages
Message Class
Authority Checks
2
Overview
3
Messages
MESSAGE statement used to display/inform message to with specific severity.
Message Types:
S – Success Message
I – Information Message
W – Warning Message
E – Error Message
A – Abend Message
X – Terminate Message
Syntax:
MESSAGE <Text> TYPE <Message Type> [ DISPLAY LIKE < Other Message Type> ]
4
essages Type Behavior
S – Success Message
Display message in Status bar with Green color. Program execution still continue after executing the message statement
I – Information Message
Display message in the pop up. Program execution will be continued once click on enter on the popup
W – Warning Message
Display message in the Status bar with Yellow Color. Program execution will be continued once click on enter button
5
essages Type Behavior
E – Error Message
Display message in the Status Bar with Red Color. Program execution will be suspended until error corrected
A – Abend Message
Display message in the popup with error message. Upon clicking on the enter button, program will be abended.
X – Terminate Message
Program execution will be terminated with Runtime error
6
Message Class
Messages are repository objects. Message is a short text with its own ID that can be expanded using an optional long
text. Logically related Messages will be grouped in Message class. Message classes/ID created in the Message Editor.
Messages in one language can be translated to other languages
Syntax:
MESSAGE <Message Type><Message Number>(<Message ID>) [ WITH <place holders> ].
7
Translations