Escolar Documentos
Profissional Documentos
Cultura Documentos
Definitions
Messages are objects of type if_t100_message. You can reuse any existing t100 message.
Messages are collected by message handlers which implement the interface if_sadl_message_handler
(used by consumers) and the additional methods in class cl_sadl_frwk_message_handler (used by
frameworks implementing the transactional SADL interfaces).
Each message has an associated severity level, which takes one of the values defined in
if_sadl_message_handler=>co_severity.
CONSTANTS:
BEGIN OF co_severity,
error TYPE ty_severity VALUE if_sadl_types=>co_sadl_error_severity-error,
warning TYPE ty_severity VALUE if_sadl_types=>co_sadl_error_severity-warning,
information TYPE ty_severity VALUE if_sadl_types=>co_sadl_error_severity-information,
END OF co_severity .
Each SADL Runtime (instance) has an own message handler. This message handler is initialized when
needed. You can retrieve the message handler corresponding to a runtime with the method
if_sadl_entity_transactional~get_message_handler.
Evaluate Messages
Consumers use the if_sadl_message_handler interface, which has the methods:
"! Informs whether there are any messages with the severity of type error
METHODS has_errors RETURNING VALUE(rv_has_errors) TYPE abap_bool.
The message handler collects all messages added, until it is explicitly cleared using the method
if_sadl_message_handler~clear.
Generate Messages
Frameworks use the cl_sadl_frwk_message_handler casting for the message handler. This class
implements the if_sadl_message_handler interface, and in addition provides the methods for adding
messages:
Provided they inherit their implementation from the cl_sadl_entity_transactional class, they can reuse
the message handler instance created in the super class.
They can also replace the message handler by their own message handler, which needs to implement the
if_sadl_message_handler interface.
Technical errors result in “failed” tabix entries. In addition, the frameworks may and should generate a
message. Messages can also be added for information and warnings.
The SADL-level runtime aggregates the messages from the frameworks runtimes corresponding to the
entities participating in the SADL.