Get Example source ABAP code based on a different SAP table
ABAP_MSG - IF_T100_DYN_MSG> in a Local Exception Class This example demonstrates how a local exception class is linked with a message
ABAP_SOURCE_CODE DEMO CL_DEMO_RAISE_MSG
ABAP_DESCRIPTION This example applies the executable example> for the interface IF_T100_MESSAGE> directly to the interface IF_T100_DYN_MSG>. The local class cx_dyn_t100 > implements the interface IF_T100_DYN_MSG> > and the addition MESSAGE>> of the statement RAISE EXCEPTION> > is used to raise the exception in the method meth>. Unlike when using IF_T100_MESSAGE>> , no separate attributes for the placeholders of the message and no implementation of the instance constructor are required in cx_dyn_t100>. Furthermore, the message type is passed in an attribute of the exception object when IF_T100_DYN_MSG> is used. An alias name is introduced for this attribute here.