Types of messages
- There are 5 types of messages.
- Information message.
- Status message.
- Warning message.
- Error message.
- Abort Message.
Source Code
PARAMETERS : MESS TYPE C.
CASE MESS.
WHEN 'E'.
MESSAGE 'THIS IS ERROR MESSAGE' TYPE 'E'.
WHEN 'W' .
MESSAGE 'THIS IS WARNING MESSAGE' TYPE 'W'.
WHEN 'I'.
MESSAGE 'THIS IS INFORMATION MESSAGE' TYPE 'I'.
WHEN 'S'.
MESSAGE 'THIS IS STATUS MESSAGE' TYPE 'S'.
WHEN 'A'.
MESSAGE 'THIS IS ABORT MESSAGE' TYPE 'A'.
ENDCASE.
or
PARAMETERS : MESS TYPE C.
CASE MESS.
WHEN 'I'.
MESSAGE I000(ZMESSTAB).
WHEN 'W'.
MESSAGE W001(ZMESSTAB).
WHEN 'S'.
MESSAGE S002(ZMESSTAB).
WHEN 'A'.
MESSAGE A003(ZMESSTAB).
WHEN 'E'.
MESSAGE E004(ZMESSTAB).
ENDCASE.
1. Information message ( I ).
- Message will be displayed in pop-up box.
- Allows to re-enter the input.
Input
Enter input as 'I'.
Output
2.Status message ( S ).
- Status message are used to display successful operation of previous statements.
- Status message shows successful in green - color at status bar.
Input
Output
3.Error Message ( E )
- Used to display error messages.
- It shows error messages in red-color at status bar.
- It doesn't allow you re-enter the input value.
- Further Execution of program will stop.
Input
Output
4.Warning message ( W ).
- It is used to display warning messages.
- It shows warning-message in yellow-color at status bar.
- Further execution of program will continue .
Input
5.Abort message ( A )
- It shows abort message in pop-up dialog box with Exit button option.
- Once you clicked on Exit button , it closes the current transaction.
- Operation will be terminated.
Comments
Post a Comment