OpenSAP Hana3 Week 1 Presentation

58
Week 1 Unit 1: Welcome & Introduction

description

OpenSAP Hana3 Week 1 Presentation

Transcript of OpenSAP Hana3 Week 1 Presentation

Page 1: OpenSAP Hana3 Week 1 Presentation

Week 1 Unit 1: Welcome &

Introduction

Page 2: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 2 Public

Welcome & Introduction Course Content

Week 1 Update on Tooling, CDS, and SQLScript

Unit 1 Welcome & Introduction

Unit 2 Tooling Update – Web Workbench

Unit 3 Tooling Update – SAP HANA Studio

Unit 4 Core Data Services

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

Week 2 Update on XSODATA, XSJS, and XSDS

Unit 1 XSODATA

Unit 2 XSJS New DB Interface

Unit 3 XSJS API

Unit 4 XSDS

Page 3: OpenSAP Hana3 Week 1 Presentation

Thank you

Contact information:

[email protected]

Page 4: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 4 Public

© 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 SE’s 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 forward-

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

Page 5: OpenSAP Hana3 Week 1 Presentation

Week 1 Unit 2: Tooling Update

– Web Workbench

Page 6: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 2 Public

Tooling Update – Web Workbench Overview – What’s 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

Page 7: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 3 Public

Tooling Update – Web Workbench Overview – What’s 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

Page 8: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 4 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

Page 9: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 5 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

Page 10: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 6 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

Page 11: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 7 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

Page 12: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 8 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

Page 13: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 9 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

Page 14: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 10 Public

Tooling Update – Web Workbench Calculation View Editor

New editor for calculation view

Supports both scripted and graphical

Calculation views

Page 15: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 11 Public

Tooling Update – Web Workbench Analytic Privilege Editor

New editor for analytic privileges

Page 16: OpenSAP Hana3 Week 1 Presentation

Thank you

Contact information:

[email protected]

Page 17: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 13 Public

© 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 SE’s 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 forward-

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

Page 18: OpenSAP Hana3 Week 1 Presentation

Week 1 Unit 3: Tooling Update

– SAP HANA Studio

Page 19: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 2 Public

Tooling Update – SAP HANA Studio Overview – What’s 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)

Page 20: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 3 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

Page 21: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 4 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

Page 22: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 5 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

Page 23: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 6 Public

Tooling Update – SAP HANA Studio XSJS/SQLScript Integrated Debugging

Starting from XSJS, you can now debug

down into SQLScript as well

Page 24: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 7 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

Page 25: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 8 Public

Tooling Update – SAP HANA Studio Repository Workspaces

Simplified workflow

Import existing workspace

Delete other users’ workspace (good for

administrative clean up)

Page 26: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 9 Public

Tooling Update – SAP HANA Studio Refactoring Services

Move menu

Search for all impacted objects

Adjust package references in source

and impacted objects

Page 27: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 10 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

Page 28: OpenSAP Hana3 Week 1 Presentation

Thank you

Contact information:

[email protected]

Page 29: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 12 Public

© 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 SE’s 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 forward-

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

Page 30: OpenSAP Hana3 Week 1 Presentation

Week 1 Unit 4: Core Data

Services

Page 31: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 2 Public

Core Data Services CDS/HDBDD Editor (I)

Improvements to syntax

highlighting and local code

completion

Page 32: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 3 Public

Core Data Services CDS/HDBDD Editor (II)

Data preview

Select entity or view and choose Run

Page 33: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 4 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

Page 34: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 5 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

Page 35: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 6 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);

Page 36: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 7 Public

Core Data Services Lifecycle Management Example (II)

CDS:

entity PARTNER {

NAME: String(30);

TYPE: String(1);

GROSS: Integer;

};

Simply add the field. The

necessary SQL is generated

Page 37: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 8 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

Page 38: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 9 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);

};

};

};

Page 39: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 10 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)

};};

Page 40: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 11 Public

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;

};};

Page 41: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 12 Public

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; };

Page 42: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 13 Public

Core Data Services Views – Order By

view EmployeesView as select from Employee

{

orgUnit,

salary }

order by salary desc;

Page 43: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 14 Public

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 };

Page 44: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 15 Public

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; };

Page 45: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 16 Public

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);

};

Page 46: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 17 Public

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; };

Page 47: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 18 Public

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 };

Page 48: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 19 Public

Core Data Services Full Text Index Annotation

entity Header {

key id : Integer;

@SearchIndex.text: { enabled: true }

@SearchIndex.fuzzy: { enabled: true }

description : String(120);

};

Page 49: OpenSAP Hana3 Week 1 Presentation

Thank you

Contact information:

[email protected]

Page 50: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 21 Public

© 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 SE’s 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 forward-

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

Page 51: OpenSAP Hana3 Week 1 Presentation

Week 1 Unit 5: SQLScript

Page 52: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 2 Public

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

Page 53: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 3 Public

SQLScript Editor for Web-based Development Workbench

Procedure editor in Web-based

Development Workbench

Keyword code completion

Syntax highlighting

Page 54: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 4 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

Page 55: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 5 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

Page 56: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 6 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

Page 57: OpenSAP Hana3 Week 1 Presentation

Thank you

Contact information:

[email protected]

Page 58: OpenSAP Hana3 Week 1 Presentation

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 8 Public

© 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 SE’s 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 forward-

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