SAP RAISE ERROR MESSAGE SHRT ABEXA



Get Example source ABAP code based on a different SAP table
  



Converting the Exception error_message 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_ERROR_MSG_SHRT

ABAP_DESCRIPTION
The example has exactly the same functionality as the executable example IF_T100_DYN_MSG for the exception error_message. 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.