Get Example source ABAP code based on a different SAP table
ABAP_CDS in ABAP Release 7.61 ITOC
ABAP_MODIFICATION_NN CDS Table Functions>
The new CDS DDL statement DEFINE TABLE FUNCTION>> can be used to define CDS table functions> as a new category of CDS entities>. In platform-dependent SQL, a CDS table function is implemented in an associated AMDP function implementation>.
ABAP_MODIFICATION_NN Annotation for Input Parameters>
An input parameter> of a CDS view> or a CDS table function> can now be annotated with an annotation @Environment.systemField>>. The potential values of the annotation assign ABAP system fields to the input parameters. If a CDS entity> of this type is used a data source> in AB_SQL , the assigned values can be passed implicitly. In particular, the value #CLIENT>> enables the client ID of the current client to be passed implicitly, which provides support for client handling in platform-dependent SQL of the implementation of a CDS table function.