Show Multiple Message with FM C14Z_MESSAGES_SHOW_AS_POPUP

If you want to show more than one message as pop up,  C14Z_MESSAGES_SHOW_AS_POPUP  FM is a good option.

 

 

 

Example Program:

REPORT  ZMULTIPLE_MESSAGE.

TYPE-POOLS: esp1.

DATA: lt_messages TYPE esp1_message_tab_type.
DATA: ls_messages TYPE esp1_message_wa_type.

ls_messages-msgid  = 'E4'.
ls_messages-msgno  = '000'.

ls_messages-lineno = 1.
ls_messages-msgty  = 'E'.
ls_messages-msgv1  = 'Error!!!!'.

APPEND ls_messages TO lt_messages.

ls_messages-lineno = 2.
ls_messages-msgty  = 'W'.
ls_messages-msgv1  = 'Warning!!!!'.
APPEND ls_messages TO lt_messages.

ls_messages-lineno = 3.
ls_messages-msgty  = 'S'.
ls_messages-msgv1  = 'Success:))'.
APPEND ls_messages TO lt_messages.

CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
  TABLES
    i_message_tab = lt_messages.

 

 

Leave a comment

Your email address will not be published. Required fields are marked *