What does it do? Defines the elements of a CDS table function>. The elements are specified in a semicolon-separated list element1>; element2>; ...;> in curly brackets { }>. The final element must also be followed by a semicolon. These elements have the following meaning:
They determine the components of the structured data types represented by a CDS table function with respect to ABAP.
This structured data type is the row type of the tabular return value result> of the AMDP function implementation> amdp_function> specified after IMPLEMENTED BY METHOD>>. The ABAP data types of the components of the structured data type are derived from the dictionary types of the elements in accordance with the associated mapping rules>. In a client-dependent> CDS table function, the first element must be typed with the built-in dictionary type CLNT>. This element is the client field of the CDS table function. It is a column of the tabular return value of the associated AMDP function implementation and is not a component of the structured data type represented by the table function.
Latest notes: In a client-dependent> CDS table function, the structured data type of the table function and the row type of the return value of the AMDP function implementation are not compatible. The AMDP function implementation cannot> be called as a regular function method in ABAP anyway, which means that no correspondingly structured target variable needs to be declared. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 The class CL_DEMO_AMDP_FUNCTION_TYPE> > uses RTTI> to show the following for various CDS table functions:
The components of the structured data type
The parameters of the associated AMDP function implementation
The row type of the return value of the associated AMDP function implementation For client-dependent table functions, a client field is defined after RETURNS>. This field is a column of the return value of the AMDP function implementation and is not part of the structured data type. ABAP_EXAMPLE_END