ABAP Message Classes/MESSAGE keyword Dynamic Messaging


Example

DATA: msgid TYPE sy-msgid VALUE 'SABAPDEMOS', 
      msgty TYPE sy-msgty VALUE 'I', 
      msgno TYPE sy-msgno VALUE '050'. 

MESSAGE ID mid TYPE mtype NUMBER num. 

The MESSAGE call above is synonymous to the call MESSAGE i050(sapdemos)..