Table Function in CDS
A table function can be created with syntax- DEFINE TABLE FUNCTION [table func name ] and set of input parameters and return fields can be mentioned with data types and a class >method name must be maintained which is responsible for the actual implementation.
The table function implementation class method.
The method declaration must specify – [ for table function NAME] and the sample method implementation .
Once the table function and the implemented method is activated, a direct select query can be made on the table function.