You are on page 1of 36

Week 1 Unit 1:

Welcome and Overview

Welcome and Overview


Open, standards-based, enterprise-ready

Build

On-Premise /
SAP HANA
Enterprise Cloud
(Managed Cloud)

Integrate

SaaS

SAP HANA Cloud Platform (PaaS)


Business Services

SAP S/4HANA

Platform Services

SAP
SuccessFactors

Integration

SAP S/4HANA
SAP Business
Suite

Extend

Runtimes /
Languages

SAP Business
Warehouse

UX

IoT
Mobile

Data & Storage Services


SAP ASE

Security

Analytics

Collaboration

Big Data Services

SAP Hybris Cloud


for Customer

Dev
&
Ops

SAP Ariba
Concur

SAP HANA
SAP Fieldglass

IaaS Layer
2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Welcome and Overview


SAP HANA Cloud Platform Essentials openSAP course
An introduction to SAP HANA Cloud Platform with our
SAP HANA Cloud Platform Essentials openSAP course
Theoretical and practical introduction
Setting up your free developer account
Setting up your local development environment
Deploying applications to the cloud
Using SAP HANA Cloud Platform services

https://open.sap.com/courses/hcp1

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Welcome and Overview


Java Runtime
The Java Runtime enables developers to leverage existing
knowledge and use that to bring applications on SAP HANA
and in the cloud.
Key capabilities
Develop, deploy, and run Java applications in the cloud
Applications run on a runtime container where they can
use the platform services APIs and Java EE APIs
according to standard patterns
Benefits
Standards-based Java development
Java EE 6/7/8 certified
Supports a wide-spread Apache Tomcat Web container

2016 SAP SE or an SAP affiliate company. All rights reserved.

Develop Java
Applications
Java and the Java logo are registered trademarks of Oracle and/or its affiliates.

Public

Welcome and Overview


Eclipse
The open-source Eclipse IDE in the SAP HANA studio or
with the SAP HANA Cloud Platform tools can be used to
develop for SAP HANA and SAP HANA Cloud Platform from
a local computer.
Key capabilities
Integrated development environment: SAP HANA studio
and SAP HANA Cloud Platform tools for Java
Offline development possible because the IDE runs locally
Full access to custom plugins of the huge ecosystem
Benefits
Use of the popular open-source Eclipse IDE
Leverage existing knowledge and experience in working
with the Eclipse IDE
2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Welcome and Overview


SAP HANA Cloud Platform cockpit
The SAP HANA Cloud Platform cockpit is the consolidated
destination for all operational needs, from configuration to
deployment and monitoring on SAP HANA Cloud Platform.
Key capabilities
Entry point to SAP HANA Cloud Platform on the Web
SAP HANA Cloud Platform and application configuration
Deployment of Java, XSJS, and HTML5 applications
Monitoring of resources, databases, and applications
Benefits
Complete overview and access point of SAP HANA
Cloud Platform
Easy Web-based operations administration

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Welcome and Overview


The ESPM application scenario

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Welcome and Overview


Scope of this course
What we will cover in this course
Deploying and getting to know the ESPM application
Developing the ESPM application
The front end
The back end and database connection

Security and identity management

Collaboration and document service

Additional features

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Welcome and Overview


What youve learned in this unit
SAP HANA Cloud Platform elevator pitch
Where you can get an introduction to SAP
HANA Cloud Platform with the SAP HANA
Cloud Platform Essentials openSAP course
Capabilities and benefits of the
Java Runtime
Eclipse IDE
SAP HANA Cloud Platform cockpit

ESPM application overview


Scope of this course

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Week 1 Unit 2:
Git and the ESPM Application

Git and the ESPM Application


Git overview
Version control
Distributed versioning
Created in 2005 for Linux kernel development
Enables collaborative workflows

https://git-scm.com

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Git and the ESPM Application


Git overview: Distributed versioning
There is no central authority

Central Versioning

The developer has the complete history


Versions are created locally

Central Server

Developer

Versions

files

V1
V2

Branches are created locally


Distributed Versioning

Developer

Developer

files

Central Server

files

Versions

Versions

Versions

V1

V1

V1

V2

V2

V2

https://git-scm.com

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Git and the ESPM Application


Eclipse and Git
Git can be used with Eclipse through EGit
EGit is an Eclipse Team provider for Git
EGit is included in Eclipse for Java EE
developers
You can still use the Git command line or
GitHub Desktop in addition

https://www.eclipse.org//egit

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Welcome and Overview


The ESPM application architecture and code

UI (SAPUI5)
Customer

Retailer

R
OData

OData

Customer
API

OData Provider (Apache Olingo)

Retailer
API

Customer

SalesOrderHeader

Product

JPA (EclipseLink)

Customer

SalesOrderHeader

Product

https://github.com/SAP/cloud-espm-v2

SAP HANA DB

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Git and the ESPM Application


Hands-on
Cloning the ESPM application
Go to the ESPM application on GitHub
(https://github.com/SAP/cloud-espm-v2)
Copy the HTTPS URI for cloning
Open the Git perspective in Eclipse
In the Git Repositories view, paste the URI you copied
before under Git Repositories
Enter the authentication details for your GitHub account
Finish the cloning

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Git and the ESPM Application


What youve learned in this unit
What Git is
How Git works
How you can use Eclipse and Git together
The ESPM application architecture and code
You have cloned the ESPM application to your
local machine

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Week 1 Unit 3: Maven and the


ESPM Application

Maven and the ESPM Application


Maven overview
Build management tool
Created in 2002 to simplify the build
processes in the Jakarta Turbine project
Based on the concept of a project object
model (POM)
Mavens primary goal is to allow a developer
to comprehend the complete state of a
development effort in the shortest period of
time

https://maven.apache.org

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Maven and the ESPM Application


Maven overview: pom.xml
Project object model (POM)
The POM is the basic unit of work in Maven
Contained in the file pom.xml in the project
In short, the POM contains every important
piece of information about your project and
is essentially one-stop-shopping for finding
anything related to your project

https://maven.apache.org

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Maven and the ESPM Application


Eclipse and Maven
Maven can be used with Eclipse through
M2Eclipse
M2Eclipse is a Maven integration for
Eclipse
M2Eclipse is included in Eclipse for Java
EE developers
You can still use the Maven command line
in addition

https://www.eclipse.org/m2e

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Maven and the ESPM Application


Hands-on
Importing, building and deploying the ESPM application
Open the Eclipse Settings and add a development profile for the
SAP HANA Cloud Platform SDK in the Maven settings.xml (see
https://github.com/SAP/cloud-espm-v2 readme)
Open the Java EE perspective in Eclipse
In the Project Explorer view, Import Existing Maven Projects
location of your local Git repository
In the Project Explorer view, select your project Run As
Maven Build under Goals, enter : clean install Run
Deploy the ESPM application to your SAP HANA Cloud Platform
account
Add the Retailer role to your user via the SAP HANA Cloud
Platform cockpit

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Maven and the ESPM Application


What youve learned in this unit
What Maven is
How Maven works
How you can use Eclipse and Maven together
You have imported and built the ESPM
application
You have deployed the ESPM application to
your SAP HANA Cloud Platform account

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Week 1 Unit 4:
The App Front End

The App Front End


SAPUI5
By embedding SAPUI5 front-end code in a Java application, the
SAP Fiori design principles can be leveraged to build great user
experiences in Java applications.
Key capabilities
Build modern HTML5 front ends
Leverage the SAPUI5 JavaScript library
Connect to OData in the application back end
Benefits

Standards-based HTLM5 development


Develop once, run everywhere: Run on any device mobile
and desktop
Benefit from SAPUI5 code templates and SAP Best Practices
to rapidly build applications
2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

The App Front End


Hands-on
Investigating the ESPM application front end
Launching the app as a customer in a
desktop browser
mobile browser
Launching the app as a retailer in a

UI (SAPUI5)
Customer

Retailer

OData

OData

Customer
API

OData Provider (Apache Olingo)

Retailer
API

Customer

SalesOrderHeader

Product

desktop browser
mobile browser
Investigating the Web module code

JPA (EclipseLink)

Customer

SalesOrderHeader

Product

SAP HANA DB

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

The App Front End


What youve learned in this unit
SAPUI5 capabilities and benefits
You have investigated the ESPM application
front end in the browser
as a customer
as a retailer
in a desktop browser
in a mobile browser

You have investigated the ESPM application


front-end code in the Web module

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

The App Front End


Further reading

!i

Additional
Material

SAPUI5

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Thank you

Contact information:
open@sap.com

2016 SAP SE or an SAP affiliate company. 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 SE or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate
company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its
affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company 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.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop
or release any functionality mentioned therein. This document, or any related presentation, and SAP SEs or its affiliated companies strategy and possible future
developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time
for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forwardlooking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place
undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Week 1 Unit 5: The App Back


End and Database

The App Back End and Database


SAP HANA
What is SAP HANA?
In-memory database and application
platform

SQL

JSON

ADO.NET

J/ODBC

OData

HTML5

MDX

XML/A

Standard RDBMS

ACID, SQL-92 compliant


Accessible through JDBC, ODBC, JSON,
OData
How will we be using SAP HANA?

As a service on SAP HANA Cloud Platform


As our database
With a connection via JDBC

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

The App Back End and Database


Hands-on
Investigating the ESPM application back end
Investigating the data source binding and
corresponding database/schema
Investigating the JPA module code

The OData provider

UI (SAPUI5)
Customer

Retailer

OData

OData

Customer
API

OData Provider (Apache Olingo)

Retailer
API

Customer

SalesOrderHeader

Product

The model classes

JPA (EclipseLink)

Customer

SalesOrderHeader

Product

SAP HANA DB

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

The App Back End and Database


What youve learned in this unit
What SAP HANA is
How we will be using SAP HANA
You have investigated the ESPM application
data source binding and corresponding
database/schema
You have investigated the ESPM application
back-end code in the JPA module

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

The App Back End and Database


Further reading

!i

Additional
Material

SAP HANA Cloud Platform, SAP HANA service

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public

Thank you

Contact information:
open@sap.com

2016 SAP SE or an SAP affiliate company. 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 SE or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate
company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its
affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company 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.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop
or release any functionality mentioned therein. This document, or any related presentation, and SAP SEs or its affiliated companies strategy and possible future
developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time
for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forwardlooking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place
undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.

2016 SAP SE or an SAP affiliate company. All rights reserved.

Public