Abend ( A ) : To terminate the report program after displaying a customized message but the processing cannot be resumed in this case.
Example case : If incorrect password is entered 3 times.
MESSAGE 'This is an Abend message' TYPE 'A'.
Example case : If incorrect password is entered 3 times.
MESSAGE 'This is an Abend message' TYPE 'A'.
Error ( E ) : Displays an error message and the system interrupts the current processing so that the errors can be corrected. Only then can processing continue.
When used in selection screen events ,displays an error message and the input fields are refreshed for the user to enter new values .
Example case : Characters entered instead of numbers
MESSAGE 'This is an error message' TYPE 'E' .
When used in selection screen events ,displays an error message and the input fields are refreshed for the user to enter new values .
Example case : Characters entered instead of numbers
MESSAGE 'This is an error message' TYPE 'E' .
Information ( I ) : To display some information in a dialog box which user should know before proceeding.
It can be safely ignored without any consequences,program execution starts from the statement next to the message statement.
Example : MESSAGE 'This is information message' TYPE 'I'.
It can be safely ignored without any consequences,program execution starts from the statement next to the message statement.
Example : MESSAGE 'This is information message' TYPE 'I'.
Status ( S ) : To display message on the status bar of the next screen as a Success message.
Example : MESSAGE 'This is a Status message' TYPE 'S'.
Example : MESSAGE 'This is a Status message' TYPE 'S'.
Warning ( W ) : To display a warning message.These messages cannot be ignored but the user can choose whether or not to make a correction or bypass the message.When used in selection screen events,unlike error message, after a warning message user input fields are not reset in this case,the user can correct the input .
Example : MESSAGE 'This is a Warning message' TYPE 'W' DISPLAY LIKE 'W'.
Without [DISPLAY LIKE 'W'] addition,it will be displayed like an error message.
Example : MESSAGE 'This is a Warning message' TYPE 'W' DISPLAY LIKE 'W'.
Without [DISPLAY LIKE 'W'] addition,it will be displayed like an error message.
Exit ( X ) : To handle a run-time error . The program terminates with a short dump(which can also be viewed in ST22 transaction).
Example : MESSAGE 'This is an Exit message' TYPE 'X'.
Example : MESSAGE 'This is an Exit message' TYPE 'X'.