SAP NEWS-752-AMDP



Get Example source ABAP code based on a different SAP table
  



ABAP_AMDP in ABAP Release 7.52
ITOC

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN 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 managed DDIC view of a CDS view whose client handling is determined by the annotation @ClientHandling.algorithm: #SESSION_VARIABLE.

ABAP_MODIFICATION_NN Logical HDI Containers

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).