Ansicht
Dokumentation
ABENMESSAGE_INTERFACE_REUSE_ABEXA - MESSAGE INTERFACE REUSE ABEXA
BAL_S_LOG - Application Log: Log header data rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
- IF_T100_MESSAGE for Exception with Message
This example demonstrates the MESSAGE addition when an exception is raised using IF_T100_MESSAGE.
Source Code
Description
This example demonstrates the transformation of a non-class-based exception raised in a method using MESSAGE RAISING and, when the method is called, handled using the addition EXCEPTIONS to a class-based exception. It uses the exception class CX_DEMO_T100 from the executable example for the system interface IF_T100_MESSAGE in a global exception class, which includes only the interface IF_T100_MESSAGE and not IF_T100_DYN_MSG.
The properties of the message sent using MESSAGE RAISING are available in the system fields sy-msgty, sy-msgid, sy-msgno, and sy-msgv1 to sy-msgv4 after the exception has been caught.
- sy-msgid and sy-msgno are used after the addition MESSAGE of the statement RAISE EXCEPTION to associate the exception object with the message.
- sy-msgv1 to sy-msgv4 are assigned to the input parameters of the instance constructor and these are automatically assigned to the identically named attributes.
- sy-msgty cannot be passed in this case.
The executable example for the system interface IF_T100_DYN_MSG in a global exception demonstrates how all properties of the message can be specified after the addition MESSAGE.
ROGBILLS - Synchronize billing plans Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 2470 Date: 20240425 Time: 173740 sap01-206 ( 65 ms )