Sie sind auf Seite 1von 36

Week 1 Unit 1: SAP HANA Native Application Basics

SAP HANA Native Application Basics


What is SAP HANA?

SAP HANA Platform


SAP HANA as an appliance

Table
Country US US JP UK Product Alpha Beta Alpha Alpha Sales 3.000 1.250 700 450

SAP HANA Database


SAP HANA in-memory database architecture

Row Store

Column Store
US Alpha 3.000 US Beta 1.250 JP Alpha 700 UK Alpha 450 US US JP UK Alpha Beta Alpha Alpha 3.000 1.260 700 450

SAP HANA Applications


Introduction to providing access to SAP HANA data (via HTTP)
Row 1

Country

Row 2

Product

Row 3

Row 4

Sales

2013 SAP AG. All rights reserved.

Public

SAP HANA Native Application Basics


SAP HANA Extended Application Services (XS) Overview

Enable application development/deployment:


http-based UI Run on SAP HANA No external app. server Best possible performance

Presentation logic

Broaden implementation base:


Small Web-based apps in lightweight environments Complex, high-speed business apps in robust environments

Control flow logic Calculation logic

Data
2013 SAP AG. All rights reserved.

Public

SAP HANA Native Application Basics


SAP HANA XS in a Nutshell

Client
Clients handle the presentation logic Applications handle the control flow logic SAP HANA handles the calculation logic

Presentation logic HANA XS Control flow logic Calculation logic

Data
2013 SAP AG. All rights reserved.

Public

SAP HANA Native Application Basics


SAP HANA Application Development Scenarios

Native SAP HANA Applications:


Applications written for SAP HANA XS, for example, in: server-side JavaScript, ODATA, XMLA/MDX

Non-Native SAP HANA Applications:


Applications developed externally, for example, in: ABAP, JAVA, .Net

2013 SAP AG. All rights reserved.

Public

SAP HANA Native Application Basics


Native SAP HANA Applications

Exposing and consuming SAP HANA data via HTTP and SAP HANA XS:
Simplicity at runtime Simplicity at design time Sustainable architecture Speed of development (XS and OData) Integrated technology stack (XS)

2013 SAP AG. All rights reserved.

Public

SAP HANA Native Application Basics


Non-Native SAP HANA Applications

Applications developed externally, for example, in ABAP, Java, PHP, .NET:


Use/extend existing applications Use an existing application server Reuse application server assets (workflow, printing, archiving) Reuse third-party software or libraries (for example, Java)

2013 SAP AG. All rights reserved.

Public

SAP HANA Native Application Basics


Scope of This Course

Covered in this course


Data modeling and analytics SQLScript basics Exposing and consuming SAP HANA data via HTTP Server-side JavaScript, OData SAPUI5 clients Lifecycle Management SAP UI integration services

2013 SAP AG. All rights reserved.

Public

Week 1 Unit 2: SAP HANA Application Development Tools

SAP HANA Application Development Tools


SAP HANA studio: Development Perspective

Eclipse look-and-feel Dedicated perspectives and views The SAP HANA Development perspective:
Project Explorer SAP HANA Repositories Navigator

Workspaces Projects

2013 SAP AG. All rights reserved.

Public

10

SAP HANA Application Development Tools


SAP HANA studio: Project Explorer View

Eclipse look-and-feel Repository workspace Project work area Shared projects Development objects

2013 SAP AG. All rights reserved.

Public

11

SAP HANA Application Development Tools


SAP HANA studio: New Project

Add new project Eclipse-based In SAP HANA studio

2013 SAP AG. All rights reserved.

Public

12

SAP HANA Application Development Tools


SAP HANA studio: New Project Details

Real Eclipse Project Persistent on the developers local file system

2013 SAP AG. All rights reserved.

Public

13

SAP HANA Application Development Tools


SAP HANA studio: Shared Project

Sharing a project
Links the project to an SAP HANA repository Project content is visible to other team members

2013 SAP AG. All rights reserved.

Public

14

SAP HANA Application Development Tools


SAP HANA studio: Add Packages to Projects

After sharing a project Browse packages in the SAP HANA repository Add specific packages (as folders)

2013 SAP AG. All rights reserved.

Public

15

SAP HANA Application Development Tools


SAP HANA studio: Check Out Package Contents

After adding packages, you can check out the package contents The checkout copies content from the SAP HANA repository to the local file system SAP HANA repository is treated like Git or Perforce

2013 SAP AG. All rights reserved.

Public

16

SAP HANA Application Development Tools


SAP HANA studio: Editing Tools

2013 SAP AG. All rights reserved.

Public

17

SAP HANA Application Development Tools


SAP HANA studio: Version Management

Built-in tools include:


Full source merge Compare Rebase Conflict resolution Version management

2013 SAP AG. All rights reserved.

Public

18

SAP HANA Application Development Tools


SAP HANA Client

Connect SAP HANA studio to the SAP HANA system Repository integration Design-time objects Runtime objects

Local Copies of Repository Objects


Repository API

SAP HANA Studio (Eclipse) R


Debugging

Web Browser

XS Server

Index Server
Checkout/ commit

2013 SAP AG. All rights reserved.

Public

19

Week 1 Unit 3: SAP HANA Software Downloads

SAP HANA Software Downloads


Useful Development Resources

SAP Community Network (SCN) SAP HANA Developer Center Free software downloads Free software licenses SAP HANA tools http://developers.sap.com/hana

2013 SAP AG. All rights reserved.

Public

21

SAP HANA Software Downloads


SAP Community Network (SCN)

Learn Deepen your knowledge Exchange ideas Solve problems Expand your network Become an expert in your field

2013 SAP AG. All rights reserved.

Public

22

SAP HANA Software Downloads


SAP Developer Center

Guides/How to SAP HANA academy Free software downloads:


SAP HANA studio SAP HANA client

Free software licenses SAP HANA tools http://developers.sap.com/hana

2013 SAP AG. All rights reserved.

Public

23

Week 1 Unit 4: Access to SAP HANA Systems (in the Cloud)

Access to SAP HANA Systems (in the Cloud) SAP HANA in the Cloud
You can deploy your own SAP HANA system image in the cloud. Use your own system environment to practice what you learn in this course. SAP works with several providers to give you a choice of infrastructure platforms.

2013 SAP AG. All rights reserved.

Public

25

Access to SAP HANA Systems (in the Cloud) SAP HANA Developer Edition Environment
Recommendation: Use the SAP Developer Edition Environment Hosted on the Amazon Web Services (AWS) cloud No SAP charge for the license AWS charging: Through your own AWS account More options: See next slide

2013 SAP AG. All rights reserved.

Public

26

Access to SAP HANA Systems (in the Cloud) More Options


Additional options are available For more information, see the SAP HANA developer center at:
scn.sap.com/community/ developer-center/hana

2013 SAP AG. All rights reserved.

Public

27

Week 1 Unit 5: Example Application

Example Native SAP HANA Application


Hello World in Server-Side JavaScript

SAP HANA systems Workspaces and projects Core application files Server-side JavaScript The SAP HANA application Data retrieval and display

2013 SAP AG. All rights reserved.

Public

29

Example Native SAP HANA Application


Hello World: Adding SAP HANA Systems

SAP HANA systems


Server name SAP HANA instance number A display name for this system SAP HANA database username and password

2013 SAP AG. All rights reserved.

Public

30

Example Native SAP HANA Application


Hello World: Adding a Repository Workspace

Repository Workspace
Workspace name Workspace root

2013 SAP AG. All rights reserved.

Public

31

Example Native SAP HANA Application


Hello World: Adding a Workspace Project

Workspace Project
Project type: XS Project Project name Shared project To synchronize files with the repository

2013 SAP AG. All rights reserved.

Public

32

Example Native SAP HANA Application


Hello World: Core Application Files

Application descriptor (.xsapp)


Marks Web content root

Application access (.xsaccess)


Exposes Web content Sets user/client authentication mechanism

2013 SAP AG. All rights reserved.

Public

33

Example Native SAP HANA Application


Hello World: Server-Side JavaScript

Request/Response
$.response.contentType

Connection
$.db.getConnection

SQL statement
select * from DUMMY

Output string
This is + rs.getString()

Display
$.response.setBody

2013 SAP AG. All rights reserved.

Public

34

Thank you

Contact information: open@sap.com

2013 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

2013 SAP AG. All rights reserved.

Public

36

Das könnte Ihnen auch gefallen