Get Example source ABAP code based on a different SAP table
ABAP_AMDP in ABAP Release 7.68 ITOC
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 ABAP_CDS_MNG_VIEW > of a CDS view> whose client handling> is determined by the annotation @ClientHandling.algorithm: #SESSION_VARIABLE>>.