ABAP - Keyword Documentation →  ABAP - ABAP Release News →  News for ABAP Release 7.5x →  News for ABAP Release 7.50 → 
Mail Feedback

ABAP SQL in ABAP Release 7.50


1. Arrangement of SELECT Clauses andFROM Clauses

2. Unions

3. Host Expressions

4. SQL Expressions

5. SQL Functions

6. Result Type of COUNT

7. ON Conditions

8. Columns Specified After BETWEEN

9. Subquery as Data Source of INSERT

10. Access to CDS Entities

11. CDS Path Expressions

12. Access to Global Temporary Tables

13. Strict Mode in the Syntax Check

14. CDS Views with Input Parameters

15. System Classes

16. Access to Replacement Objects



Modification 1  

Arrangement of SELECT Clauses andFROM Clauses

From ABAP release 7.50, the FROM clause of a SELECT statement can also be specified in front of the SELECT clause. In this case, the SELECT clause must be introduced using the new addition FIELDS. This arrangement supports tools such as Code Completion in ABAP Editor.



Modification 2  

Unions

From ABAP release 7.50, the addition UNION creates the union of the results sets of two SELECT statements.



Modification 3  

Host Expressions

From ABAP release 7.50, host expressions with the syntax @( expr ) can be specified in many operand positions in which host variables are possible. For expr, all ABAP expressions can calls are possible that can be specified in general expression positions.

Operand positions for host expressions in ABAP release 7.50:





Modification 4  

SQL Expressions

The following changes have been made:

If an SQL expression can be specified, any individual literals, host variables, and host expressions can also be specified.



Modification 5  

SQL Functions

The following changes have been made:





Modification 6  

Result Type of COUNT

From ABAP release 7.50, the result type of all aggregate functions COUNT is INT8.



Modification 7  

ON Conditions

The following is possible from ABAP release 7.50:





Modification 8  

Columns Specified After BETWEEN

From ABAP release 7.50, numeric columns can be specified on the right side in an interval condition using BETWEEN, providing the name of the database table or view is prefixed using ~.



Modification 9  

Subquery as Data Source of INSERT

In the ABAP SQL write statement INSERT, a parenthesized subquery can now be specified as a data source after FROM. The rows of the results set of the subquery are inserted into the target table directly on the database. No data transport is required between the database and the application server.



Modification 10  

Access to CDS Entities

The following changes have been made:





Modification 11  

CDS Path Expressions

From ABAP release 7.50, path expressions can be specified in SELECT statements that access CDS views with associations published for outside use as follows.





Modification 12  

Access to Global Temporary Tables

When the new global temporary tables in ABAP Dictionary are accessed using ABAP SQL, all temporary data stored here is guaranteed to be deleted before the next implicit database commit, If not, a runtime error occurs.



Modification 13  

Strict Mode in the Syntax Check

If one the new features listed above (with the exception of dynamic join conditions) is used in an ABAP SQL statement, the syntax check is performed in a strict mode, which handles the statement more strictly than the regular syntax check.



Modification 14  

CDS Views with Input Parameters

In ABAP release 7.50 and higher, the input parameters of CDS views are supported by all database platforms and can be used in ABAP SQL. It is no longer necessary to query property VIEWS_WITH_PARAMETERS using method USE_FEATURES of class CL_ABAP_DBFEATURES. Querying this property results in a warning check from the syntax check.



Modification 15  

System Classes

The following changes have been made:





Modification 16  

Access to Replacement Objects

From ABAP release 7.50, it is possible to define a CDS view as a replacement object in ABAP Dictionary (transaction SE11) for a database table or a database view.

If a replacement object is defined for a database table or database view specified as a data source of a SELECT statement, the SELECT statement accesses the CDS view and not the database table or the database view.

This change was implemented using an internal tool a kernel patch after ABAP release 7.40, SP10.