week 1 unit 1to5 sap hana native application basics

Post on 21-Jan-2017

189 Views

Category:

Education

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Week 1 Unit 1: SAP HANA NativeApplication Basics

© 2013 SAP AG. All rights reserved. 2Public

SAP HANA Native Application BasicsWhat is SAP HANA?

SAP HANA Platform• SAP HANA as an appliance

SAP HANA DatabaseSAP HANA in-memorydatabase architecture

SAP HANA ApplicationsIntroduction to providing accessto SAP HANA data (via HTTP)

USAlpha3.000US

Beta1.250

JPAlpha700UK

Alpha450

Row 1

Row 2

Row 3

Row 4

USUSJPUK

AlphaBetaAlphaAlpha3.0001.260700450

Country

Product

Sales

Row Store Column Store

CountryUSUSJPUK

ProductAlphaBetaAlphaAlpha

Sales3.0001.250700450

Table

© 2013 SAP AG. All rights reserved. 3Public

SAP HANA Native Application BasicsSAP HANA Extended Application Services (XS) Overview

Enable applicationdevelopment/deployment:

http-based UIRun on SAP HANANo external app. serverBest possible performance

Broaden implementationbase:

Small Web-based apps inlightweight environmentsComplex, high-speed businessapps in robust environments

Presentationlogic

Control flowlogic

CalculationlogicData

© 2013 SAP AG. All rights reserved. 4Public

SAP HANA Native Application BasicsSAP HANA XS in a Nutshell

Clients handle thepresentation logic

Applications handle thecontrol flow logic

SAP HANA handles thecalculation logic

Presentationlogic

Control flowlogic

CalculationlogicData

Client

HANAXS

© 2013 SAP AG. All rights reserved. 5Public

SAP HANA Native Application BasicsSAP 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. 6Public

SAP HANA Native Application BasicsNative SAP HANA Applications

Exposing and consumingSAP HANA data via HTTPand SAP HANA XS:

Simplicity at runtimeSimplicity at design timeSustainable architectureSpeed of development (XS andOData)Integrated technology stack(XS)

© 2013 SAP AG. All rights reserved. 7Public

SAP HANA Native Application BasicsNon-Native SAP HANA Applications

Applications developedexternally, for example, inABAP, Java, PHP, .NET:

Use/extend existing applicationsUse an existing application serverReuse application server assets(workflow, printing, archiving)Reuse third-party software orlibraries (for example, Java)

© 2013 SAP AG. All rights reserved. 8Public

SAP HANA Native Application BasicsScope of This Course

Covered in this course…Data modeling and analyticsSQLScript basicsExposing and consuming SAP HANA data via HTTPServer-side JavaScript, OData…SAPUI5 clientsLifecycle ManagementSAP UI integration services

Week 1 Unit 2: SAP HANAApplication Development Tools

© 2013 SAP AG. All rights reserved. 10Public

SAP HANA Application Development ToolsSAP HANA studio: Development Perspective

Eclipse look-and-feel

Dedicated perspectives andviews

The SAP HANA Developmentperspective:

Project ExplorerSAP HANA RepositoriesNavigator

Workspaces

Projects

© 2013 SAP AG. All rights reserved. 11Public

SAP HANA Application Development ToolsSAP HANA studio: Project Explorer View

Eclipse look-and-feel

Repository workspace

Project work area

Shared projects

Development objects

© 2013 SAP AG. All rights reserved. 12Public

SAP HANA Application Development ToolsSAP HANA studio: New Project

Add new project

Eclipse-based

In SAP HANA studio

© 2013 SAP AG. All rights reserved. 13Public

SAP HANA Application Development ToolsSAP HANA studio: New Project Details

Real Eclipse Project

Persistent on the developer’slocal file system

© 2013 SAP AG. All rights reserved. 14Public

SAP HANA Application Development ToolsSAP HANA studio: Shared Project

Sharing a projectLinks the project to an SAP HANArepositoryProject content is visible to otherteam members

© 2013 SAP AG. All rights reserved. 15Public

SAP HANA Application Development ToolsSAP HANA studio: Add Packages to Projects

After sharing a project

Browse packages in the SAPHANA repository

Add specific packages (asfolders)

© 2013 SAP AG. All rights reserved. 16Public

SAP HANA Application Development ToolsSAP HANA studio: Check Out Package Contents

After adding packages, youcan check out the packagecontents

The checkout copies contentfrom the SAP HANA repositoryto the local file system

SAP HANA repository istreated like Git or Perforce

© 2013 SAP AG. All rights reserved. 17Public

SAP HANA Application Development ToolsSAP HANA studio: Editing Tools

© 2013 SAP AG. All rights reserved. 18Public

SAP HANA Application Development ToolsSAP HANA studio: Version Management

Built-in tools include:Full source mergeCompareRebaseConflict resolutionVersion management

© 2013 SAP AG. All rights reserved. 19Public

SAP HANA Application Development ToolsSAP HANA Client

Connect SAP HANA studioto the SAP HANA system

Repository integration

Design-time objects

Runtime objects

Local Copiesof Repository

Objects

R RDebuggingRepositoryAPI

R

SAP HANA Studio(Eclipse) Web Browser

Index Server

XS Server

Checkout/commit

Week 1 Unit 3: SAP HANASoftware Downloads

© 2013 SAP AG. All rights reserved. 21Public

SAP HANA Software DownloadsUseful Development Resources

SAP Community Network (SCN)

SAP HANA Developer Center

Free software downloads

Free software licenses

SAP HANA toolshttp://developers.sap.com/hana

© 2013 SAP AG. All rights reserved. 22Public

SAP HANA Software DownloadsSAP 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. 23Public

SAP HANA Software DownloadsSAP Developer Center

Guides/How to

SAP HANA academy

Free software downloads:SAP HANA studioSAP HANA client

Free software licenses

SAP HANA toolshttp://developers.sap.com/hana

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

© 2013 SAP AG. All rights reserved. 25Public

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

You can deploy your ownSAP HANA system image inthe cloud.

Use your own systemenvironment to practicewhat you learn in thiscourse.

SAP works with severalproviders to give you achoice of infrastructureplatforms.

© 2013 SAP AG. All rights reserved. 26Public

Access to SAP HANA Systems (in the Cloud)SAP HANA Developer Edition Environment

Recommendation: Use theSAP Developer EditionEnvironment

Hosted on the Amazon WebServices (AWS) cloud

No SAP charge for thelicense

AWS charging: Throughyour own AWS account

More options: See nextslide

© 2013 SAP AG. All rights reserved. 27Public

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

Additional options areavailable

For more information, seethe SAP HANA developercenter at:scn.sap.com/community/developer-center/hana

Week 1 Unit 5: ExampleApplication

© 2013 SAP AG. All rights reserved. 29Public

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. 30Public

Example Native SAP HANA Application“Hello World”: Adding SAP HANA Systems

SAP HANA systemsServer nameSAP HANA instance numberA display name for this systemSAP HANA database username andpassword

© 2013 SAP AG. All rights reserved. 31Public

Example Native SAP HANA Application“Hello World”: Adding a Repository Workspace

Repository WorkspaceWorkspace nameWorkspace root

© 2013 SAP AG. All rights reserved. 32Public

Example Native SAP HANA Application“Hello World”: Adding a Workspace Project

Workspace ProjectProject type: XS ProjectProject nameShared projectTo synchronize files with the repository

© 2013 SAP AG. All rights reserved. 33Public

Example Native SAP HANA Application“Hello World”: Core Application Files

Application descriptor (.xsapp)Marks Web content root

Application access (.xsaccess)Exposes Web contentSets user/client authentication mechanism

© 2013 SAP AG. All rights reserved. 34Public

Example Native SAP HANA Application“Hello World”: Server-Side JavaScript

Request/Response$.response.contentType

Connection$.db.getConnection

SQL statementselect * from DUMMY

Output stringThis is… + rs.getString()

Display$.response.setBody

Thank you

Contact information:

open@sap.com

© 2013 SAP AG. All rights reserved. 36Public

© 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 orwarranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Groupproducts and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothingherein 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 inGermany 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.

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 orwarranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Groupproducts and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothingherein 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 inGermany and other countries.Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

top related