Get Example source ABAP code based on a different SAP table
VERSION 5 OUT • CL_ABAP_DBFEATURES ABAP_CLASS
CL_ABAP_DBFEATURES>, Database Features The method USE_FEATURES> of the class CL_ABAP_DBFEATURES>> can be used to determine whether the current database or a database specified using a database connection> supports particular features and whether these can be used at runtime in ABAP. One or more features can be queried by passing them to the method in an internal table. The possible line content of the internal table is determined by constants of the class CL_ABAP_DBFEATURES>. Other values raise an exception of the class CX_ABAP_INVALID_PARAM_VALUE >. The following tables list these constants, the respective database features and how they can be used in ABAP.
Use in AB_SQL Constant>Database Feature>Use in ABAP> AMDP_TABLE_FUNCTION>Table Functions>Access to CDS table functions> in AB_SQL . CTE_IN_CORRELATED_SUBQUERIES> Common table expressions (CTE) >Access to common table expression in correlated subqueries> in AB_SQL . EXTERNAL_VIEWS>SAP HANA views> Access to DDIC external views> in AB_SQL . GROUPING_SETS>Grouping setsUse of grouping sets> in the GROUP BY>> clause in AB_SQL . HIERARCHIES>Hierarchy DataUse of hierarchy data> as a data source of queries> in AB_SQL . INDICATORS>Null indicator> Use of addition INDICATORS>> in a SELECT> statement> in AB_SQL . ITABS_IN_FROM_CLAUSE>Local temporary tablesUse of internal tables> as a data source of queries> in AB_SQL , if these are evaluated by the database. LIMIT_IN_SUBSELECT_OR_CTE>Sorts or delimiters in subqueriesUse of the ORDER BY>> clause or the additions UP TO>> and OFFSET>> in subqueries> in AB_SQL . MODIFY_FROM_SELECT>Subquery in UPSERT>Use of a subquery> as a data source> of the statement MODIFY>> in AB_SQL . ORDER_BY_NULLS_FIRST_LAST>Addition to the ORDER BY> clause Sort a result set after ORDER BY>> by determining the positions of potential null values in AB_SQL . WINDOWING>Window expressions >Use of window expressions> in a SELECT> list> in AB_SQL . Caution> Up to now, many features have been introduced in and are supported by AB_SQL that work on SAP HANA> only. Most of these features are not governed by CL_ABAP_DBFEATURES> any more. Note that there is no syntax warning any more if such HANA-only features are used. Exceptions are raised if a statement using such features is sent to a non-HANA database using secondary connections>.