Ansicht
Dokumentation

ABENEML_RESPONSES_ABEXA - EML RESPONSES ABEXA

ABENEML_RESPONSES_ABEXA - EML RESPONSES ABEXA

rdisp/max_wprun_time - Maximum work process run time   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

- Responses

This example demonstrates the response parameters that follow the ABAP words FAILED, MAPPED and REPORTED in a managed RAP BO. The scenario provokes errors while trying to modify RAP BO instances using the MODIFY statement. The output results are displayed for showcasing purposes.

Data model

The CDS data model consists of the root entity DEMO_MANAGED_ROOT_CUSTOM and its child entity DEMO_MANAGED_CHILD_CUSTOM. Furthermore, it contains an association to an entity (DEMO_MANAGED_ASSOC_CUSTOM) that is not part of the composition tree.

Root entity:

Child entity:

Behavior definition

The CDS behavior definition DEMO_MANAGED_ROOT_CUSTOM is defined in CDS BDL as follows:

Behavior implementation

For the above CDS behavior definition, there is an ABAP behavior pool (ABP) available. The global class of the behavior pool is BP_DEMO_MANAGED_ROOT_CUSTOM. This global class implements the local handler class LHC_DEMO_MANAGED_ROOT_CUSTOM. The actual implementation takes place in the BP_DEMO_MANAGED_ROOT_CUSTOM===CCIMP. The details of the behavior implementation are not relevant for this example since no custom operations are used.

Source Code

Execute

Description

The above source code uses EML to access the RAP business object from an ABAP program.

The example covers multiple modify requests. Some of them are successful. For both, root and child entity, there are data sets defined that will cause an error.

As a consequence, apart from the mapping information, the responses for FAILED and REPORTED that are displayed in the output cover the information of the affected data sets for which errors occurred. Furthermore, tables display the data sets for which the create, update and delete operations were successful for both, root and child entity.






BAL Application Log Documentation   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3132 Date: 20240419 Time: 035231     sap01-206 ( 38 ms )