Professional Documents
Culture Documents
CDS TABLE Function
CDS TABLE Function
ABAP CDS Table Function defines table function which are native to the database.
->The CDS table function has a set of input parameters and a set of return parameters . The
result is is a TABULAR format with return fields.
->Activate it.
PUBLIC SECTION.
INTERFACES: if_amdp_marker_hdb.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
fi
fl
fi
fl
fl
CLASS zcl_demo_ ight_calculation IMPLEMENTATION.
ENDMETHOD.
ENDCLASS.
##db_feature_mode[amdp_table_function]
SELECT *
FROM zdemo_ ight_cds_tf( iv_carrid = 'LH' )
INTO TABLE @DATA(lt_ ight)
##db_feature_mode[amdp_table_function].
Output:
fl
fl
fl
fl
fl
fl