Mentor SAP

The Code-to-Data Paradigm

 

 

To make the ABAP code truly benefit from the potential of SAP HANA, a paradigm shift is necessary. High-performance applications delegate data-intensive operations to the SAP HANA layer, such that they really profit from how SAP HANA can make use of parallelism and optimized data storage and transfer on the database server. The new paradigm, therefore, is Code-to-Data instead of the old way, data-to-code.

 

Open SQL

 

Open SQL Overview

 

To some extent, Open SQL allows the execution of logic in the SAP HANA data layer to improve performance, provided the performance recommendations are kept in mind. Using Open SQL as much as possible is desirable because it has the following advantages:

 

 

Reminder: SQL Overview

 

ABAP Database Integration in Nutshell

 

An ABAP system interacts with its database using the following two layers: -

  1. The database interface (DBI) provides a database independent interface and additional services, such as automatic client handling or the ABAP table buffer.
  2. The database specific library (DBSL) connects to the respective database and translates Open SQL statements.

 

 

Limitations of classical Open SQL

 

Open SQL in ABAP < 7.4 SPS05 does not support everything possible with standard SQL DML or SAP HANA SQL

 

SQL DML

SAP HANA SQL

Fixed-Value and Computed columns

Using SAP HANA built-in functions

Sub-queries in the SELECT or FORM Clauses

Accessing SAP HANA views

UNION

 

CASE expression

 

Additional Join types