Ansicht
Dokumentation

ABENDERIVED_TYPES_KEY_ABEXA - DERIVED TYPES KEY ABEXA

ABENDERIVED_TYPES_KEY_ABEXA - DERIVED TYPES KEY ABEXA

RFUMSV00 - Advance Return for Tax on Sales/Purchases   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Using %key

This example demonstrates the use of %key with a managed RAP BO in the RAP interaction phase.

Data model

The CDS data model consists of the root entity DEMO_MANAGED_ROOT_4 and its child entity DEMO_MANAGED_CHILD_4. The child entity is not used in the example.

Root entity:

Behavior definition

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

Behavior implementation

For the above CDS behavior definition, one ABP is created. The global class of the behavior pool is BP_DEMO_MANAGED_ROOT_4. The actual behavior implementation takes place in local classes that are defined and implemented in the BP_DEMO_MANAGED_ROOT_4========CCIMP of the behavior pool. In this case, the behavior pool does not include any implementations that are relevant for the example.

Source Code

Execute

Description

Access with ABAP using EML

There is one modify request that covers a RAP create and update operation. In both create and update operation, %key is specified in different ways just to demonstrate the variety of specification options of this component group. See more information on this in the topic Use of keys and RAP BO instance identifiers in a nutshell.

With a COMMIT ENTITIES statement, the instances are saved to the database. The output shows the database table entries as well as the mapped and failed responses for the root entity.






Fill RESBD Structure from EBP Component Structure   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2812 Date: 20240512 Time: 064039     sap01-206 ( 36 ms )