Ansicht
Dokumentation

ABENRAISE_MESSAGE_GLOBAL_ABEXA - RAISE MESSAGE GLOBAL ABEXA

ABENRAISE_MESSAGE_GLOBAL_ABEXA - RAISE MESSAGE GLOBAL ABEXA

BAL Application Log Documentation   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

- IF_T100_DYN_MSG in a Global Exception Class

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

Source Code

Execute

Description

This example demonstrates the transformation of a non-class-based exception raised in a method using the statement MESSAGE RAISING and, when the method is called, handled using the addition EXCEPTIONS, to a class-based exception. This example works in the same way as the executable example for the system interface IF_T100_MESSAGE, but uses the class CX_DEMO_DYN_T100, which implements the system interface IF_T100_DYN_MSG.

  • In both cases, sy-msgid and sy-msgno can be used after the addition MESSAGE of the statement RAISE EXCEPTION to associate the exception object with the message.
  • sy-msgv1 to sy-msgv4 can be specified after WITH and are automatically assigned to the interface attributes MSGV1 to MSGV4 here.
  • sy-msgty can also be passed here using MESSAGE.

Note

See also the executable example for using a short form of statement RAISE EXCEPTION MESSAGE.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2219 Date: 20240420 Time: 143827     sap01-206 ( 32 ms )