Sie sind auf Seite 1von 58

Week 1 Unit 1: Welcome &

Introduction

Welcome & Introduction


Course Content
Week 1 Update on Tooling, CDS, and SQLScript

Week 2 Update on XSODATA, XSJS, and XSDS

Unit 1

Welcome & Introduction

Unit 1

XSODATA

Unit 2

Tooling Update Web Workbench

Unit 2

XSJS New DB Interface

Unit 3

Tooling Update SAP HANA Studio

Unit 3

XSJS API

Unit 4

Core Data Services

Unit 4

XSDS

Unit 5

SQLScript

Week 3 Update on Test Tools, REST API, and UI


Unit 1

SAP HANA Test Tools

Unit 2

SAP HANA REST APIs

Unit 3

XS Admin

Unit 4

SAP River

Unit 5

SAPUI5

Unit 6

Closing

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

Public

Thank you

Contact information:
open@sap.com

2015 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.

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

Public

Week 1 Unit 2: Tooling Update


Web Workbench

Tooling Update Web Workbench


Overview Whats New in SPS 09?
Web-based Development Workbench
Function flow
Web templates and code completion
Application preview
XSOData editor
Manual test explorer for XSOData artifacts
(based on application explorer)
SQLScript debugging
SQLScript editor
Performance measurements in SQL Console

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

Public

Tooling Update Web Workbench


Overview Whats New in SPS 09?
Web-based Development Workbench (continued)
Form-based role editor for hdbrole objects
Check file access
Integration of SAP HANA test tools
Calculation view editor
Analytic privilege editor
Replication task editor

Integration of smart data access


CDS/HDBDD editor with local semantic code completion

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

Public

Tooling Update Web Workbench


New Design/Foundation (I)
The SAP HANA Web-based Development
Workbench is now based upon the same
core libraries as the SAP Web IDE
New visual design

Integration of some of the Web tools of the SAP


Web IDE
Contextual help via online documentation

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

Public

Tooling Update Web Workbench


New Design/Foundation (II)
New URL paths:
/sap/hana/ide/editor
/sap/hana/ide/catalog
/sap/hana/ide/security
/sap/hana/ide/trace
Old URLs redirect automatically to new
ones

New roles
Old roles still valid as they include the
new roles

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

Public

Tooling Update Web Workbench


Additional Templates
Additional templates and code
snippets
A complete SAP Fiori example
application
Snippets for XSJS, XSODATA,
HDBPROCEDURE, and others

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

Public

Tooling Update Web Workbench


Application Preview
HTML page testing now uses the
Application Preview from the SAP
Web IDE
Supports easy testing of various form
factors

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

Public

Tooling Update Web Workbench


Performance Analysis in SQL Console
Run (Performance Measurement)
option in the SQL Console
Expand performance details
Option to perform repeated calls to the
same operation

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

Public

Tooling Update Web Workbench


Form-based hdbrole Editor
Improved editing of hdbrole
definitions via a form-based tool
Object type-sensitive value selection
dialogs

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

Public

Tooling Update Web Workbench


Calculation View Editor
New editor for calculation view
Supports both scripted and graphical
Calculation views

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

Public

10

Tooling Update Web Workbench


Analytic Privilege Editor
New editor for analytic privileges

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

Public

11

Thank you

Contact information:
open@sap.com

2015 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.

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

Public

13

Week 1 Unit 3: Tooling Update


SAP HANA Studio

Tooling Update SAP HANA Studio


Overview Whats New in SPS 09?
SAP HANA studio
Project setup artifact generation
Navigation to XS administration tool
One-click debugging
XSJS/SQLScript integrated debugging
Direct editing from Repository Browser
Refactoring services

Enhanced artifact templates


WebBridge (run Web IDE editors within SAP HANA studio)

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

Public

Tooling Update SAP HANA Studio


Project Creation Wizard
Initial artifact generation during project creation
.xsaccess and .xsapp generated by default
Optionally: schema, hdbdd, and xsjs service

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

Public

Tooling Update SAP HANA Studio


Navigation to XS Admin
XS Admin tool linked and embedded
Supports configuration of xsjob, xssqlcc,
xshttpdest, and .xsaccess artifacts

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

Public

Tooling Update SAP HANA Studio


Improved One-Click Debugging
You no longer need to choose XS Session ID
Debuggee will launch in external Web browser or can
run in-place within SAP HANA studio
Service test tools for stubbing in HTTP headers, body,
and so on

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

Public

Tooling Update SAP HANA Studio


XSJS/SQLScript Integrated Debugging
Starting from XSJS, you can now debug
down into SQLScript as well

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

Public

Tooling Update SAP HANA Studio


Direct Editing from Repository Browser
You no longer need to check out content
or have a project
All objects can be edited directly simply by
selecting them in the Repository Browser
File New; package creation all possible
from the Repository Browser

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

Public

Tooling Update SAP HANA Studio


Repository Workspaces
Simplified workflow
Import existing workspace
Delete other users workspace (good for
administrative clean up)

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

Public

Tooling Update SAP HANA Studio


Refactoring Services
Move menu
Search for all impacted objects
Adjust package references in source
and impacted objects

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

Public

Tooling Update SAP HANA Studio


WebBridge
Allows you to run editors that only exist in the
SAP Web-based Development Workbench
within SAP HANA studio
Still use SAP HANA studio Save, Activate, and other
functions
Choose Open With Other and then choose
Embedded Web Editor

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

Public

10

Thank you

Contact information:
open@sap.com

2015 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.

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

Public

12

Week 1 Unit 4: Core Data


Services

Core Data Services


CDS/HDBDD Editor (I)
Improvements to syntax
highlighting and local code
completion

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

Public

Core Data Services


CDS/HDBDD Editor (II)
Data preview
Select entity or view and choose Run

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

Public

Core Data Services


SAP HANA XS SPS9: CDS
Mission Statement
CDS provides an enriched data model
CDS allows for graceful lifecycle management
CDS allows for extending the meta model

Features coming with SP9

Multi-file
Table lifecycle
Associations
DCL (instance filtering)
Much improved editing support in SAP HANA studio
and Web-based Development Workbench

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

Public

Core Data Services


New Features
Support for viewing complex features such as sub-selects
Multi-file support
Calculation view support
Unmanaged associations
Annotation (enums, array,)
Lifecycle management support for data migration
GIS types
Core SAP HANA data types
Currency conversion
Enterprise search via full text index

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

Public

Core Data Services


Lifecycle Management Example (I)
SQL:

CREATE TABLE PARTNER(NAME char(30), TYPE char(1));

Adding new field:


ALTER TABLE PARTNER ADD(GROSS int);

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

Public

Core Data Services


Lifecycle Management Example (II)
CDS:
entity PARTNER {
NAME: String(30);
TYPE: String(1);
GROSS: Integer;
};

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

Simply add the field. The


necessary SQL is generated

Public

Core Data Services


Lifecycle Management Example (III)
CDS:
entity PARTNER {
NAME: String(30);
TYPE: String(1);
GROSS: Integer Integer64;
};

Upon activation, data is


migrated automatically

This lifecycle management supports a wide


variety of scenarios
Conversion from same named HDBTABLE
Change of key / data type
Removal of columns

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

Public

Core Data Services


Multi-File: File 1
namespace playground.sp9.cds;
@Schema: 'SP9DEMO
context ContextA {
type T1 : Integer;
context ContextAI {
type T2 : String(20);
type T3 {
a : Integer;
b : String(88);
};
};
};

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

Public

Core Data Services


Multi-File: File 2
namespace playground.sp9.cds;
using playground.sp9.cds::ContextA.T1;
using playground.sp9.cds::ContextA.ContextAI as ic;
using playground.sp9.cds::ContextA.ContextAI.T3 as ict3;
@Schema: 'SP9DEMO
context ContextB {
type T10 {
a : T1;
// Integer
b : ic.T2;
// String(20)
c : ic.T3;
// structured
d : type of ic.T3.b; // String(88)
e : ict3;
// structured
};
context ContextBI {
type T1 : String(7); // hides the T1 coming from the first using declaration
type T2 : T1;
// String(7)
};};
2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

10

Core Data Services


Enumerations (I)
namespace playground.sp9.cds;
@Schema: 'SP9DEMO
context enumerations {
type Color : String(10) enum { red = 'FF0000'; g = '00FF00'; b = '0000FF'; };
annotation MyAnnotation {
a : Integer;
b : String(20);
c : Color;
d : Boolean;
};};

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

Public

11

Core Data Services


Enumerations (II)
entity SomeTypes {
a : hana.ALPHANUM(10);
b : hana.SMALLINT;
c : hana.TINYINT;
d : hana.SMALLDECIMAL;
e : hana.REAL;
h : hana.VARCHAR(10);
i : hana.CLOB;
j : hana.BINARY(10);
k : hana.ST_POINT;
l : hana.ST_GEOMETRY; };

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

Public

12

Core Data Services


Views Order By
view EmployeesView as select from Employee
{
orgUnit,
salary }
order by salary desc;

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

Public

13

Core Data Services


Views Case
entity MyEntity {
key id : Integer;
a : Integer;
color : String(1); };
view MyView as select from MyEntity {
id,
case color
when 'R' then 'red
when 'G' then 'green
when 'B' then 'blue
else 'black
end as color,
case when a < 10 then 'small
when 10 <= a and a < 100 then 'medium
else 'large
end as size };

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

Public

14

Core Data Services


Unmanaged Associations
entity Employee {
key id : String(256);
officeId : Integer; };
entity Room {
key id : Integer;
inhabitants : Association[*] to Employee on inhabitants.officeId = id; };
entity Thing {
key id : Integer;
parentId : Integer;
parent : Association[1] to Thing on parent.id = parentId;
children : Association[*] to Thing on children.parentId = id; };

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

Public

15

Core Data Services


Backlink Workaround via Unmanaged Associations
entity Header {
key id : Integer;
items : Association[*] to Item on items.headerId = id;
description : String(120);
};
entity Item {
key headerId : Integer;
key id : Integer;
header : Association[1] to Header on header.id = headerId;
description : String(120);
};

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

Public

16

Core Data Services


Many to Many Relationships (I)
entity Employee {
key id : Integer;
name : String(80);
projectLinks : Association[*] to E2P on projectLinks.e_id = id; };
entity Project {
key id : Integer;
name : String(80);
employeeLinks : Association[*] to E2P on employeeLinks.p_id = id; };
entity E2P {
key e_id : Integer;
key p_id : Integer;
projects : Association[*] to Project on projects.id = p_id;
employees : Association[*] to Employee on employees.id = e_id; };

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

Public

17

Core Data Services


Many to Many Relationships (II)
view EmployeesWithProjects as select from Employee {
name as EmployeeName,
projectLinks.projects.id as projectId,
projectLinks.projects.name as projectName };
view ProjectsWithEmployees as select from Project {
name as projectName,
employeeLinks.employees.id as EmployeeId,
employeeLinks.employees.name as EmployeeName };

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

Public

18

Core Data Services


Full Text Index Annotation
entity Header {
key id : Integer;
@SearchIndex.text: { enabled: true }
@SearchIndex.fuzzy: { enabled: true }
description : String(120);
};

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

Public

19

Thank you

Contact information:
open@sap.com

2015 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.

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

Public

21

Week 1 Unit 5: SQLScript

SQLScript
Semantic Code Completion
Semantic code completion in
SAP HANA studio
Trigger with CTRL+SPACE
Lists relevant objects based on
context
Searches for any matches within
the object name

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

Public

SQLScript
Editor for Web-based Development Workbench
Procedure editor in Web-based
Development Workbench
Keyword code completion
Syntax highlighting

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

Public

SQLScript
SQLScript Debugger
Debugging in Web-based
Development Workbench
Set breakpoints in the runtime
object in the catalog
Call procedure from the SQL
console
Resume & step over functions
Scalar & table variable/parameter
evaluations

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

Public

SQLScript
SQLScript Language
Table type definitions for
parameters
Allows developer to create in and
out parameters, which are defined
as table types locally

Table type definitions for


variables
Allows developer to create
intermediate table variables within
the body of the procedure

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

Public

SQLScript
SQLScript Language
Allows developer to create an isolated block of code, which runs as an independent transaction
BEGIN AUTONOMOUS TRANSACTION END statement block
Committed statements inside autonomous transaction blocks will be persisted regardless of rollback of main
transaction

COMMIT & ROLLBACK are allowed


only within the AUTONOMOUS
TRANSACTION block
For tables updated within the main
procedure body, access to those
tables is not allowed in the
autonomous transaction block
Used commonly for logging tasks

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

Public

Thank you

Contact information:
open@sap.com

2015 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.

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

Public

Das könnte Ihnen auch gefallen