Ansicht
Dokumentation

ABAPDERIVED_TYPES_ELEMENT - DERIVED TYPES ELEMENT

ABAPDERIVED_TYPES_ELEMENT - DERIVED TYPES ELEMENT

Addresses (Business Address Services)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

%element

%element is a component group in BDEF derived types. It is used in the context of the reported response parameter.

%element is a structure containing all primary key and data fields plus the associations of a RAP BO entity a message relates to. By marking key and data fields as well as associations, you can assign messages to one or more target elements. In doing so, you can ensure a clear allocation, for example, of error messages if there are multiple error messages.

If an association is marked, the message references all subordinate instances of the association.

Type

The subcomponents of %element have the following type: ABP_BEHV_FLAG.

  • 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 %element in the context of a method implementation for a validation that is responsible for checking 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 %element with a managed RAP BO.






CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2424 Date: 20240623 Time: 184331     sap01-206 ( 42 ms )