Friday 27 May 2016

Types of messages

Types of messages

  • There are 5 types of messages. 
  1. Information message.
  2. Status message.
  3. Warning message.
  4. Error message.
  5. 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 ).

  1. Message will be displayed in pop-up box.
  2. Allows to re-enter the input.

Input

Enter input as 'I'.




Output

2.Status message ( S ).

  1. Status message are used to display successful operation of previous statements.
  2. Status message shows successful  in green - color   at status bar.

Input




Output






3.Error Message ( E )


  1. Used to display error messages.
  2. It shows error messages in red-color at status bar.
  3. It doesn't allow you re-enter the input value.
  4. Further Execution of program will stop.

Input 




Output




4.Warning message ( W ).

  1. It is used to display warning messages.
  2. It shows warning-message in yellow-color at status bar.
  3. Further execution of program will continue .

Input



5.Abort message ( A )

  1. It shows abort message in pop-up dialog box with Exit button option.
  2. Once you clicked on Exit button , it closes the current transaction.
  3. Operation will be terminated.


Input



Output


No comments:

Post a Comment