Ansicht
Dokumentation

ABENRAISE_MESSAGE_ABEXA - RAISE MESSAGE ABEXA

ABENRAISE_MESSAGE_ABEXA - RAISE MESSAGE ABEXA

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

- IF_T100_DYN_MSG in a Local Exception Class

This example demonstrates how a local exception class is linked with a message

Source Code

Execute

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.






BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 1341 Date: 20240418 Time: 075804     sap01-206 ( 25 ms )