Professional Documents
Culture Documents
Week Introduction
Week Introduction
Architecture Overview diagram
Browser
R
SAP Web
Dispatcher
Application Router
HTML5
App
XSJS
Compt.
XSJS
App
Central
Security
Service
Node.js
Tomcat / TomEE
Node App
Java App
SAP HANA
XS Classic
(existing
runtime
still for
several
SPS
levels)
Other
Containers
User Account
and
Authentication
SAP
HANA DI
Public
Week Introduction
Node.js
FLP
Node.js
SAPUI5/Fiori
ODATA
XSJS/
Node.js/
Java
XMLA
SINA
HDBRole
HDBTable
HDBCDS
SQLScript
SQL
Views
AFL
Public
Thank you
Contact information:
open@sap.com
Public
Week 4 Unit 2:
Modules and NPM
Public
Public
Public
Public
fs file I/O
os access to the server operating system
Public
Public
Public
Thank you
Contact information:
open@sap.com
Public
10
Public
Thank you
Contact information:
open@sap.com
Public
Week 4 Unit 4:
SAP HANA DB Access
Public
Public
Public
Public
Public
Public
Public
Public
Public
10
consumption of
Core Data Services (CDS)
Public
11
Public
12
entity user {
key uid: Integer not null;
Name: String(63) not null;
Email: String(63);
};
Import
metadata
Get & modify
entity instances
type text {
Text: String(255);
Lang: String(2);
};
entity post {
key pid: Integer not null;
Title: String(63) not null;
Text: text;
Author: association [1] to
user;
Rating: Integer; };
};
bboard.hdbcds
2016 SAP SE or an SAP affiliate company. All rights reserved.
Complex
queries
cds.$importEntities([
{ $entity: "ex.data::bboard.post" },
{ $entity: "ex.data::bboard.user" }
], main);
function mainModify(error, entities) {
var Post = entities["ex.data::bboard.post"];
var User = entities["ex.data::bboard.user"];
Post.$get({ pid: 101 }, function(error, post) {
post.Rating++;
post.$save(function(error) { /* */ });
});
}
13
Public
14
Public
15
Public
16
syntax changes,
sequential
imports
cds.$importEntities([
{ $entity: "ex.data::bboard.post" },
{ $entity: "ex.data::bboard.user" }
], main);
function mainModify(error, entities) {
var Post = entities["ex.data::bboard.post"];
var User = entities["ex.data::bboard.user"];
Post.$get({ pid: 101 }, function(error, post){
post.Rating++;
post.$save(function(error) { /* */ });
});
}
var Post=xsds.$importEntity("ex.data",
"bboard.post"};
var User=xsds.$importEntity("ex.data",
"bboard.user"};
function mainModify(error, entities) {
var post = Post.$get({ pid: 101 });
post.Rating++;
post.$save;
synchronous
Synchronous
}
no callbacks
callbacks
bboard.js
bboard.xsjs
Public
17
Thank you
Contact information:
open@sap.com
Public
19
Web Sockets
Overview
Web Sockets is an advanced technology that makes it
possible to open an interactive communication session
between the user's browser and a server.
Standard TCP-based protocol
Public
Web Sockets
SAPUI5
Public
Thank you
Contact information:
open@sap.com
Public