ABAP Keyword Documentation → ABAP - Release-Specific Changes → Changes in Releases 7.5x → Changes in Release 7.52
AMDP in Release 7.52
1. Reference to ABAP types
2. AMDP options
3. Logical HDI schemas
Other versions:
7.31 | 7.40 | 7.54
Modification 1
Reference to ABAP Types
When an AMDP method is implemented in an AMDP class with SQLScript, the following new AMDP macro
"$ABAP.type( [name =] abap_type )"
can be used to reference ABAP types. The ABAP runtime environment replaces these schemas on the database with the associated database types.
Modification 2
AMDP Options
The new addition AMDP OPTIONS
for METHODS
and CLASS-METHODS
statements can be used to define attributes of
AMDP methods in their declaration:
-
The
READ-ONLY
option only allows reads in the implementation of the AMDP methods. -
The
CDS SESSION CLIENT
option sets the session variable of the database that can be addressed under the name$session.client in the CDS DDL of the ABAP CDS to a particular value when the method is called from ABAP. It avoids the warning from the syntax check and the exception CX_AMDP_CDS_CLIENT_MISMATCH when an AMDP method accesses the CDS database view of a CDS view whose client handling is determined by the annotation @ClientHandling.algorithm: #SESSION_VARIABLE.
Modification 3
Logical HDI Schemas
Alongside the existing logical database schemas, logical HDI containers can now be used as further logical schemas in the AMDP macro $ABAP.schema. The mapping of a physical database schema to a logical HDI container is made in the definition of an ABAP-managed HDI container, which itself links HDI objects to the Change and Transport System (CTS).