Get Example source ABAP code based on a different SAP table
ABAP_AMDP in ABAP Release 7.61 ITOC
ABAP_MODIFICATION_NN AMDP Table Functions>
Alongside the existing AMDP procedures> , the AMDP> framework now also supports AMDP table functions> in the form of table functions> in the SAP HANA database>. AMDP table functions now have the new addition BY DATABASE FUNCTION>> of the statement METHOD> in implementations of AMDP methods> in AMDP classes>. These methods are known as AMDP function implementations> to distinguish them from the existing AMDP procedure implementations>. Unlike AMDP procedure implementations, AMDP function implementations have a tabular return value, but cannot be called like regular functional methods> in ABAP.
ABAP_MODIFICATION_NN AMDP Table Functions for AMDP Methods>
In other AMDP methods> and using the associated SQL syntax, it is possible to access the AMDP table function> of an AMDP function implementation> with an explicitly defined parameter interface
ABAP_MODIFICATION_NN AMDP Table Functions for CDS Table Functions >
An AMDP function implementation> in whose declaration the addition FOR TABLE FUNCTION>> is specified implements a CDS table function> from ABAP CDS>. The parameter interface of an AMDP function implementation of this type is specified by the definition of the CDS table function. The associated AMDP> function is executed as a data source of an Open AB-SQL read statement when accessing the CDS table function directly or indirectly.