SAP RAISE MESSAGE GLBL SHRT ABEXA



Get Example source ABAP code based on a different SAP table
  


VX_EXA_ONLY

Converting a Classic Exception to a Class-Based Exception
The example demonstrates the short form of the statement RAISE EXCEPTION with the addition MESSAGE.

ABAP_SOURCE_CODE
DEMO CL_DEMO_RAISE_MSG_GLOBAL_SHRT

ABAP_DESCRIPTION
The example has exactly the same functionality as the executable example IF_T100_DYN_MSG in a global exception. Here, the addition USING MESSAGE is used, which explicitly passes the system fields sy-msgty, sy-msgid, sy-msgno, and sy-msgv1 to sy-msgv4 to the corresponding additions of the statement RAISE EXCEPTION.