Ansicht
Dokumentation

ABENDDIC_REPLACEMENT_OBJECT_ABEXA - DDIC REPLACEMENT OBJECT ABEXA

ABENDDIC_REPLACEMENT_OBJECT_ABEXA - DDIC REPLACEMENT OBJECT ABEXA

rdisp/max_wprun_time - Maximum work process run time   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

- Replacement Object for Database Table

This example demonstrates a DDIC database table with a replacement object.

Source Code

Execute

Description

This program accesses two DDIC database tables, DEMO_SUMDIST_AGG and DEMO_SUMDIST. These tables are identical except for the fact that the CDS view DEMO_CDS_SUMDIST is defined as a replacement object for DEMO_SUMDIST.

The DDIC database table DEMO_SUMDIST_AGG is filled with aggregated data (done here in the static constructor of the class demo). When DEMO_SUMDIST is accessed, the replacement object performs exactly the same aggregation:

Similar access to the DDIC database tables produce similar results, which can be verified using the statement ASSERT.

A third SELECT statement accesses the CDS view DEMO_CDS_SUMDIST directly. To produce the same result set for the comparison with the other results as when accessing the DDIC database tables, the client column must be added, since the result set of a client-dependent CDS view does not contain a column of this type.

A DDIC database view DEMO_SUMDIST_OBS contains the DDIC database table DEMO_SUMDIST as a basis table. There is no redirect to the replacement object of DEMO_SUMDIST in a SELECT. A DDIC database view DEMO_SUMDISTVIEW that is otherwise similar has the following CDS view as a replacement object:

This view accesses the replacement object of the DDIC database table DEMO_SUMDIST. When DEMO_SUMDISTVIEW is accessed using SELECT, its replacement object is evaluated and the result again matches the preceding result.






rdisp/max_wprun_time - Maximum work process run time   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2745 Date: 20240426 Time: 235300     sap01-206 ( 41 ms )