0% found this document useful (0 votes)
453 views23 pages

ABAP On HANA

This document provides an overview of ABAP on HANA and key concepts such as: 1. HANA Studio is the central development environment and administration tool for HANA systems. It provides perspectives for administration, modeling, and development. 2. Native SQL can access any table but lacks integration and type checking. Open SQL provides integration and type checking but only supports dictionary tables. 3. CDS allows defining database views that can be exposed as OData services. AMDP enables pushing ABAP code to the database for more efficient processing.

Uploaded by

Krishanu Dutta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
453 views23 pages

ABAP On HANA

This document provides an overview of ABAP on HANA and key concepts such as: 1. HANA Studio is the central development environment and administration tool for HANA systems. It provides perspectives for administration, modeling, and development. 2. Native SQL can access any table but lacks integration and type checking. Open SQL provides integration and type checking but only supports dictionary tables. 3. CDS allows defining database views that can be exposed as OData services. AMDP enables pushing ABAP code to the database for more efficient processing.

Uploaded by

Krishanu Dutta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Core Team:

xxx

Internal

ABAP on HANA
Agenda

1. Introduction to HANA

2. HANA Studio

3. Open SQL Vs Native SQL

4. ABAP Perspective

5. CDS(Core Data Services)

6. AMDP
SAP HANA

SAP HANA is a combination of HANA Database,


Data Modeling, HANA Administration and Data
Provisioning in one single suite. In SAP HANA,
HANA stands for High-Performance Analytic
Appliance.
Need for SAP HANA

• Due to increase in “Data Volume”, it is a challenge for the companies


to provide access to real time data for analysis and business use.

• It involves high maintenance cost for IT companies to store and


maintain large data volumes.

• Due to unavailability of real time data, analysis and processing results


are delayed.
Features of SAP HANA

• SAP HANA is a combination of software and hardware innovation to process


huge amount of real time data.

• SAP HANA is Based on multi core architecture.

• SAP HANA is Based on row and column type of data-storage in database.

• SAP HANA uses In Memory Computing Engine (IMCE) to process and analyze
massive amount of real time data.

• It reduces cost of ownership, increases application performance, enables new


applications to run on real time environment that were not possible before.
In-Memory Computing

An In-Memory database means all the data from source system is stored in a RAM memory. In a conventional Database system, all data
is stored in hard disk. SAP HANA In-Memory Database wastes no time in loading the data from hard disk to RAM. It provides faster
access of data to multicore CPUs for information processing and analysis.

HW Technology Innovations SAP SW Technology Innovations

Multi-Core Architecture (8 x 8core CPU Row and Column Store


per blade)
Massive parallel scaling with many
blades
Compression

Partitioning
64bit address space – 2TB in current
servers
No Aggregate Tables
100GB/s data throughput
Dramatic decline in
price/performance
Real-Time Data capture
Why Customers choose SAP HANA

• Speed
• Real Time
• Any Data
• Any Source
• Simplicity – Fewer layers, simpler landscape, lower cost
• Cloud
• Choice
Latest Scenario

- SAP BUSINES SUITE Powered by HANA


- SAP S/4 HANA
- HANA in Side car Approach
SAP HANA Studio

SAP HANA studio is an Eclipse-based tool. SAP HANA studio is both, the
central development environment and the main administration tool for
HANA system.

Additional features are:

• It is a client tool, which can be used to access HANA system.

• It provides an environment for HANA Administration, HANA


Information Modeling and Data Provisioning in HANA database.

SAP HANA Studio can be used on following platforms:

• Microsoft Windows 32 and 64 bit versions of: Windows XP, Windows


Vista, Windows 7

• SUSE Linux Enterprise Server SLES11: x86 64 bit

• Mac OS, HANA studio client is not available


SAP HANA Studio Perspectives/Features

SAP HANA Studio provides perspectives to work on the following HANA


features. You can choose Perspective in HANA Studio from the following
option: HANA Studio-> Window-> Open Perspective->Other

• SAP HANA Modeler Perspective


In SAP HANA studio, the SAP HANA Modeler perspective helps you create various types of
information views, which defines your analytic model.

• SAP HANA Development: Used for programming applications, that is, creating
development objects that access or update the data models, such as server-side JavaScript
or HTML files.

• Administration: Used to monitor the system and change settings.


Native SQL

i) Access tables that are not available on DDIC layer in SAP.

ii) To use some of the special features supported by DB-Specific SQL, like passing
hints to Oracle Optimizer (for the index which boosts performance) etc.

iii) One of the not so good properties of Native SQL is that they are loosely
integrated into ABAP.

iv) No syntax check at compile time for Native SQL. Statements are directly sent to
the database system. Handle exception CX_SQL_EXCEPTION

v) No automatic client handling, no table buffering.

vi) All tables, in all schemas, can be accessed.


Open SQL

Open SQL consists of a set of ABAP statements that perform operations on


the central database in the SAP Web AS ABAP. It is called Open because it
is database independent. Open = Platform independent.

Open SQL is the only DB abstraction layer with an SQL-like syntax that
defines a common semantic for all SAP-supported databases. Behind the
scene, the Kernel programs are busy converting the Open SQL statement
to Native SQL statements for the database in use.
Open SQL can only work with database tables that have been created in
the ABAP Dictionary.

Open SQL supports Code Push down


i) Push down data intense computations and calculations to the HANA DB
layer
ii) Avoid bringing all the data to the ABAP layer.
Difference between Native SQL and Open SQL
Seq No Parameters Native SQL Open SQL
1 Compilation at ABAP layer No  Yes

2 Database dependency Yes No

3 Table buffering possible No Yes

4 All Schema Access Yes No

5 Access ABAP Dictionary No Yes

6 Access to ABAP Core Data Services views No Yes

7 Conversion of SQL staments to new syntax without any side effect No Yes

8 Possibility of limiting the result set using 'UP TO' statement No Yes

9 "Keep unnecessary load away from DB No Yes

10 Possibility of Secondary Index No Yes

12 Strict Syntax check No Yes


Similarity between Native SQL and Open SQL
Open
S No Parameters Native SQL SQL Comments

1 All JOINs availability Yes Yes Left, Right, Inner &


Outer Joins

2 String operations availability Yes Yes

3 Arithmatic Expressions Yes Yes

4 Case Expressions Yes Yes

5 Usgae of UNION and UNION ALL  Yes Yes

6 Supports Aggregation, Joins And Sub-Queries Yes Yes

7 Code Pushdown Yes- via Database Yes - via


Procedures AMDP

8 Usage of computed columns to avoid loops - eg: Yes Yes


Aggregation and Summation

9 Recommandation of using specific fields then using Yes Yes


SELECT* statement.
ABAP code benefits from SAP HANA(1)
• SAP HANA platform is a complete relational database, hence no problem in using same
code.
• Custom codes must be taken care during transition.
• Optimization potential will be high and transparent. That is fast data access and presence
of optimized statements.
• In memory computing.
• Programming is near data base.
• HANA specific features are used.
ABAP code benefits from SAP HANA(2)
Advantages of ABAP in HANA
• Deeper and better integration with real time data access.
• New tools to detect optimization potential.
• Delightful user experience.
• New possibilities to build applications.
• Real time analysis.
• ABAP in eclipse (develop like never before).
CDS(Core Data Services)

Open SQL consists of a set of ABAP statements that perform operations on


the central database in the SAP Web AS ABAP. It is called Open because it
is database independent. Open = Platform independent.

Open SQL is the only DB abstraction layer with an SQL-like syntax that
defines a common semantic for all SAP-supported databases. Behind the
scene, the Kernel programs are busy converting the Open SQL statement
to Native SQL statements for the database in use.
Open SQL can only work with database tables that have been created in
the ABAP Dictionary.

Open SQL supports Code Push down


i) Push down data intense computations and calculations to the HANA DB
layer
ii) Avoid bringing all the data to the ABAP layer.
Code Push Down / Core
Top-Down Approach
CDS Viewbuilding – Sample
Expose CDS as OData(RESTful) service
ABAP managed Database Procedures (AMDP)

You might also like