OpenSAP HANA1-1 Week 01 Developing Applications for SAP HANA
-
Upload
medina-lalo -
Category
Documents
-
view
245 -
download
3
Transcript of OpenSAP HANA1-1 Week 01 Developing Applications for SAP HANA
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
© 2013 SAP AG. All rights reserved. 10Public
© 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.
Week 1 Unit 2: SAP HANAApplication Development Tools
© 2013 SAP AG. All rights reserved. 2Public
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. 3Public
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. 4Public
SAP HANA Application Development ToolsSAP HANA studio: New Project
Add new project
Eclipse-based
In SAP HANA studio
© 2013 SAP AG. All rights reserved. 5Public
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. 6Public
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. 7Public
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. 8Public
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. 9Public
SAP HANA Application Development ToolsSAP HANA studio: Editing Tools
© 2013 SAP AG. All rights reserved. 10Public
SAP HANA Application Development ToolsSAP HANA studio: Version Management
Built-in tools include:Full source mergeCompareRebaseConflict resolutionVersion management
© 2013 SAP AG. All rights reserved. 11Public
SAP HANA Application Development ToolsSAP HANA Client
Connect SAP HANA studioto the SAP HANA system
Repository integration
Design-time objectsRepository: transportable
Runtime objectsCatalog: activated
© 2013 SAP AG. All rights reserved. 13Public
© 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.
Week 1 Unit 3: SAP HANASoftware Downloads
© 2013 SAP AG. All rights reserved. 2Public
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. 3Public
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. 4Public
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
© 2013 SAP AG. All rights reserved. 6Public
© 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.
Week 1 Unit 4: Access to SAPHANA Systems (in the Cloud)
© 2013 SAP AG. All rights reserved. 2Public
Access to SAP HANA Systems (in the Cloud)SAP HANA in the Cloud
SAP works with Amazon WebServices (AWS) as a cloud provider,to ensure that you can access asystem environment that fits to thecourse content. The availablesystem image is only valid for testand demo applications.
We provide the training content freeof charge. To gain access to asystem, you work with SAP as abroker. The system environment willbe hosted by Amazon Web Services.
You need to register with AmazonWeb Services and open a privateaccount before you can use thedemo system offered by SAP(http://aws.amazon.com).
© 2013 SAP AG. All rights reserved. 3Public
Access to SAP HANA Systems (in the Cloud)SAP HANA in the Cloud
You will receive a link to the cloudself-service store at SAP (SAPCloud Appliance Library: CAL)
SAP-internal participants:
https://opensap.hana.ondemand.com/hana1
External participants:
https://caltdc.hana.ondemand.com/subscription/?sguid=2abe54b1-120d-4052-a58e-c62cd2e522ab
In CAL, additional documentation isavailable that describes how to startand manage your SAP HANAtraining system (HELP)
© 2013 SAP AG. All rights reserved. 4Public
Access to SAP HANA Systems (in the Cloud)SAP HANA in the Cloud
The costs you will incur depend onhow much you use the system.You have the option to start, stop,and suspend your system. AmazonWeb Services charges you by thehour for system uptime.
The instructor will talk about thesystem procurement and startprocess in CAL, and provideexplanations that will help youaccess your own system image atvery low cost.
AWS charging: Through yourprivate AWS account (account inforequired during systemprocurement in SAP Store)
© 2013 SAP AG. All rights reserved. 6Public
© 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.
Week 1 Unit 5: ExampleApplication
© 2013 SAP AG. All rights reserved. 2Public
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. 3Public
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. 4Public
Example Native SAP HANA Application“Hello World”: Adding a Repository Workspace
Repository WorkspaceWorkspace nameWorkspace root
© 2013 SAP AG. All rights reserved. 5Public
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. 6Public
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. 7Public
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
© 2013 SAP AG. All rights reserved. 8Public
Example Native SAP HANA Application“Hello World”: Data Retrieval and Display
SAP HANA XS Web server
Port number
XSJS script
SQL data request
HTTP
Web browser display
Thank you
© 2013 SAP AG. All rights reserved. 10Public
© 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.