Abap Programming On Hana
Abap Programming On Hana
Abap Programming On Hana
Disclaimer
This presentation outlines our general product direction and should not be relied on in making a
purchase decision. This presentation is not subject to your license agreement or any other agreement
with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to
develop or release any functionality mentioned in this presentation. This presentation and SAP's
strategy and possible future developments are subject to change and may be changed by SAP at any
time for any reason without notice. This document is provided without a warranty of any kind, either
express or implied, including but not limited to, the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this
document, except if such damages were caused by SAP intentionally or grossly negligent.
Outline
Introduction
ABAP Development Tools (ADT) and ABAP List Viewer (ALV)
ABAP Development Tools
ALV with Integrated Data Access (IDA)
ABAP on HANA
External Views
Database Procedure Proxies
HANA Transport Container
Introduction
Custom Applications
SAP
Business
Suite
SAP
NetWeaver
BW
...
Any DB
SAPUI5
ABAP
Gateway
Cloud
Java
HANA
Gateway/SAPUI5
in AS ABAP
Classical Database
ABAP Language
Improvements
2013 SAP AG or an SAP affiliate company. All rights reserved.
ABAP optimized
for SAP HANA
Business
Rules
Embedded
Analytics
Security
ABAP
on HANA
Lifecycle
Management
Connectivity
& Integration
Integrated
Development
Development Tools
in Eclipse
Latest security
standards
SAP HANA
Accelerate
Extend
Innovate
Enhanced user
experiences
Improved
tools for
performance
analysis
Re-Use
components
optimized for
SAP HANA
Using
SAP HANA
artifacts in
ABAP
Transparent Optimizations
SAP NetWeaver Application Server ABAP 7.4
2013 SAP AG or an SAP affiliate company. All rights reserved.
Invoice Item
Sales Order Item
Product
10
2. ABAP List
Viewer
4. OData Service
5. SAPUI5
Application
11
1. ABAP
Development Tools
2. ABAP List
Viewer
4. OData Service
5. SAPUI5
Application
CLOUD
MOBILE
HANA
13
UI Development Tools
for HTML5
NW Cloud
Development
Tools
NW Gateway
Tools
ABAP
Development
Tools (ADT)
14
Demo
Navigate
Ctrl+Shift+A
F3
Open definition
Ctrl+F2
Alt+Left
Backward history
Ctrl+F3
Alt+Right
Forward history
Ctrl+Shift+F3
Ctrl+T
Quick hierarchy
Ctrl+Space
Code completion
F4
Ctrl+1
Ctrl+O
Quick outline
Alt+F2
Ctrl+Shift+G
Where-used list
Ctrl+7
Toggle comment
Run, Debug
Shift+F1
F8
Alt+F8
Help
F1
Ctrl+Shift+B
Toggle breakpoint
F2
Ctrl+3
Ctrl+Shift+F10
Ctrl+Shift+L
Alt+F9
16
1. ABAP
Development Tools
2. ABAP List
Viewer
4. OData Service
5. SAPUI5
Application
18
19
Exercise
Exercise B: ABAP List Viewer with Integrated Data Access (40 Minutes)
21
ABAP on HANA
Leverage the power of HANA from ABAP Applications
1. ABAP
Development Tools
2. ABAP List
Viewer
4. OData Service
5. SAPUI5
Application
ABAP on HANA
Code
Pushdown
SAP
NetWeaver
AS 7.4
SAP HANA
Database
23
ABAP on HANA
Code Pushdown
Calculation
AS ABAP
Data to Code
Code to Data
SAP HANA
Database
Calculation
24
ABAP on HANA
Code Pushdown with Native SQL
ABAP
Application
Server
ABAP Program
HANA
Database
HANA Catalog
HANA Repository
Database View
Database Procedure
View
Procedure
DB
DB
table
DBtable
Table
25
ABAP on HANA
Code Pushdown with External Views / Database Procedure Proxies
ABAP
Application
Server
Database Procedure
Proxy
External
View
Data Dictionary
HANA
Database
HANA Catalog
HANA Repository
Database View
Database Procedure
ABAP Program
OPEN SQL
View
Procedure
DB
DB
table
DBtable
Table
26
ABAP on HANA
External Views
ABAP on HANA
External Views
The semantic of the database types can be enriched by mapping them to DDIC types,
e.g. NVARCHAR => CHAR/NUMC/DATC/
28
ABAP Program
C1.1
ZCA_##_OPEN_INV
External View
OPEN SQL
ZCA_##_OPEN_INV
C1.2
Data Dictionary
HANA
Database
HANA Repository
Calculation View
CA_OPEN_INVOICES
Analytical View
Analytical View
AN_OPEN_INVOICE_AMOUNT
AN_OPEN_INVOICE_DAYS
HANA Catalog
C2
View
DB
DB
table
DBtable
Table
29
Exercise
Exercises C1 & C2: External Views (30 Minutes)
ABAP on HANA
Database Procedure Proxies
ABAP on HANA
Database Procedure Proxies
= lv_param
IMPORTING
et_param_1 = lt_param_1
et_param_2 = lt_param_2 .
32
ABAP Program
C3.1
ZDP_CD263_##_PAID_INVOICES
Database Procedure Proxy
ZDP_CD263_##_PAID_INVOICES
C3.2
Data Dictionary
HANA
Database
HANA Catalog
HANA Repository
Database Procedure
DP_PAID_INVOICES_ON_DATE
Procedure
DB
DB
table
DBtable
Table
33
Exercise
Exercise C3: Database Procedure Proxies (15 Minutes)
ABAP on HANA
External Views and Database Procedure Proxies Summary
Requires at least SAP NetWeaver 7.4 SP2 and the ABAP Development Tools (ADT) 2.7
HANA views and database procedures can be imported into the ABAP Dictionary as External Views and
Database Procedure Proxies respectively
HANA views and database procedures must exist in the HANA repository to be imported into DDIC using ADT
No ADT support for "HANA catalog-only" artifacts
External Views and Database Procedure Proxies can be called using OPEN SQL and the new ABAP
statement CALL DATABASE PROCEDURE respectively
External Views and Database Procedure Proxies can be synchronized with one click!
Not all HANA types are supported, e.g. HANA's date type cannot be mapped to ABAP type DATS
35
ABAP on HANA
HANA Transport Container (HTC)
ABAP on HANA
HANA Transport Container (1)
The HTC can be transported via the standard ABAP Change and Transport System (CTS)
37
ABAP on HANA
HANA Transport Container (2)
Source ABAP System
ABAP Program
ABAP Program
External View
External View
2
Delivery Unit
Delivery Unit
Database Procedure
Database Procedure
Database View
Database View
38
Demo
HANA Transport Container (HTC)
ABAP on HANA
HANA Transport Container Summary
Snapshot saved in ABAP transport is not updated automatically each time the HANA content
changes take a snapshot immediately before releasing the ABAP transport!
System setting (in target system) controls whether imported HANA content is activated
automatically
SNOTE support for HANA Transport Container (SP2, automatic activation in SP4)
40
2. ABAP List
Viewer
4. OData Service
5. SAPUI5
Application
Data Basis
Browser
42
UI5 runtime
and libraries
Browser
Controller
Models
Views
HTTP
Request/Response
SERVER
AS ABAP
DB access,
e.g. OpenSQL
SAP HANA
DB View
Local
development
of SAPUI5
Application
Eclipse
Develop a SAPUI5
Starter application
SAPUI5 ABAP
Repository
AS ABAP
Import the SAPUI5 application
into the ABAP Application Server
Data
43
44
Exercise
Exercise D: OData Service & SAPUI5 Application (40 Minutes)
https://tools.hana.ondemand.com/
http://help.sap.com/saphelp_gateway20/helpdata/en/2f/d48687c1e14e87915
d41e595a4285d/content.htm
https://help.hana.ondemand.com/gateway_gwpa/frameset.htm?5ad0d36c78a
e4d49b7f7e8d72dbfa046.html
SAPUI5:
https://sapui5.netweaver.ondemand.com/sdk
https://sapui5.netweaver.ondemand.com/devguide.html
46
2. ABAP List
Viewer
4. OData Service
5. SAPUI5
Application
47
Questions? Answers!
Further Information
49
http://saptechedhandson.sap.com/
http://sapteched.com/online
50
Feedback
Please complete your session evaluation for CD263.
THANKS for joining us!
52