Ansicht
Dokumentation

ABAPDERIVED_TYPES_MSG - DERIVED TYPES MSG

ABAPDERIVED_TYPES_MSG - DERIVED TYPES MSG

CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

%msg

%msg is a component of BDEF derived types. It is used as a component of the reported response parameter.

%msg provides an instance of the message interface IF_ABAP_BEHV_MESSAGE. If no self-implementation of the interface is needed, the inherited methods new_message( ) or new_message_with_text( ) can be used to get a standard implementation.

Type

The component has the following type: TYPE REF TO IF_ABAP_BEHV_MESSAGE (contains IF_T100_DYN_MSG)

  • REPORTED [EARLY$|LATE]

See more details on message handling in the Development Guide for the ABAP RESTful Application Programming Model, section Messages.

Example

The following source code section taken from the BP_DEMO_MANAGED_ROOT_REPORTED=CCIMP of the global class of the behavior pool BP_DEMO_MANAGED_ROOT_REPORTED demonstrates the component %msg in the context of a method implementation for a validation that checks field values of RAP BO instances before saving. See the executable program for this example further down.

The example Example for Message-Related BDEF Derived Type Components demonstrates the use of various BDEF derived type components including %msg with a managed RAP BO.






Addresses (Business Address Services)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2206 Date: 20240329 Time: 143751     sap01-206 ( 34 ms )