SlideShare a Scribd company logo
1© 2014 SAP AG or an SAP affiliate company. All rights reserved.
SAP HANA SPS 10 – What’s New?
Extended Application Services (XS) Programming Model
SAP HANA Product Management June, 2015
(Delta from SPS 09 to SPS 10)
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 2
Roadmap SAP HANA Extended Application Services
Summary
Today
 New Database interface
 Core XSJS APIs
 SMTP
 ZIP
 XML
 Secure Store
 AntiVirus
 Integrated Web Dispatcher
 XSDS
 CDS Improved Lifecycle
Management capabilities
 Odata
 Profiler
 Odata Explorer
 Null and eTag support
Future Direction (SPS 11 and
beyond)
 Additional runtime containers
 Node.js
 Java (TomEE)
 C/C++
 Application Services can scale
independently from database and
offer new security options
 Odata implementation based upon
Apache Olingo
 Move from Repository to GIT
 HDI: HANA Deployment
Infrastructure
 Containers for schema free content
Planned Innovations (SPS 10)
 Translation Tool
 SQLCC Auto User
 Self Service Improvements
 HDBSYNONYM (Design time Synonym)
 CDS Improvements
 Extend HANA SQL Function Support
 GIS Types and Functions
 Global temporary column tables
 Foreign keys of managed associations in
definition of other associations
 Filter Conditions and prefix notation
 Series Entities
 SQLScript Improvements (see separate
What’s New for SQLScript)
This is the current state of planning and may be changed by SAP at any time.
XS Admin
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 4
HANA XS SPS 10: HANA XS Admin Tool: Translation
New tool specifically design for
performing online translations
URL: /sap/hana/xs/translationTool/
Role:
sap.hana.xs.translationTool.roles::translator
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 5
HANA XS SPS 10: HANA XS Admin Tool: SQLCC Auto User
New parameter for SQLCC:
role_for_auto_user
Allows for the generation of an automatic
user and the specification of a single role
you wish to assign to that user
You can now transport a DU with SQLCC
and it is ready to use without any user
creation or administrative setup
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 6
HANA XS SPS 10: HANA XS Admin Tool: Self Service Improvements
User Self Service e-mail templates can now
be customized
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 7
HANA XS SPS 10: HDBSYNONYM
New development artifact for SPS 10 to
allow for the design time definition of
Synonyms upon catalog tables
• Especially useful for access to ERP and
other ABAP created tables
{ "acme.com.app1::MySynonym1" :
{ "target" :
{ "schema": "DEFAULT_SCHEMA",
"object": "MY_ERP_TABLE_1" },
"schema": "SCHEMA_2" } }
Persistence
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 9
HANA XS SPS 10: Core Data Services
Mission Statement
 CDS provides an enriched data model
 CDS allows for graceful life-cycle management
 CDS allows for extending the meta-model
Features coming with SPS 10
 Extend HANA SQL Function Support
 GIS Types and Functions
 Global temporary column tables
 Foreign keys of managed associations in definition of other associations
 Filter Conditions and prefix notation
 Series Entities
 Code Completion in the Web-based Development Workbench
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 10
HANA XS SPS 10: CDS - Extend HANA SQL Function Support
CDS now supports almost all HANA SQL functions
The following functions are not supported:
• The functions in the section Fulltext Functions
• The functions in the section Window Functions
• the functions GROUPING, GROUPING_ID, MAP in the section Miscellaneous
Functions
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 11
HANA XS SPS 10: CDS - GIS Types and Functions
Definition of entities with GIS element
types in SPS 09
SPS 10 adds GIS functions define view BPAddrExt as select from
MD.BusinessPartner {
PARTNERID,
ADDRESSES.STREET || ', ' ||
ADDRESSES.CITY as FULLADDRESS,
round( ADDRESSES.POINT.ST_DISTANCE(NEW
ST_POINT(8.644072, 49.292910), 'meter')/1000,
1) as distFromWDF03
};
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 12
HANA XS SPS 10: CDS - Global temporary column tables
Added support for global
temporary column tables
• Temporary global column
tables must not have a key nor
an index.
• Note that a temporary
entity/table cannot be changed
when the table is in use by an
open session
@Catalog.tableType : #TEMPORARY_GLOBAL_COLUMN
entity ProductTemp {
PRODUCTID: String(10);
DATETIME: UTCDateTime;
USERNAME: String(20);
};
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 13
HANA XS SPS 10: CDS - Foreign keys of managed associations in
definition of other associations
Up to SPS 09, the appearance of
“circular” associations caused an
error.
Now, the compiler recognizes that
the referenced field is actually
part of the base entity and thus
can be obtained without following
the association in such
relationships
entity Header {
key id : Integer;
toItems : Association[*] to Item on
toItems.head.id = id;
};
entity Item {
key id : Integer;
head : Association[1] to Header { id };
};
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 14
HANA XS SPS 10: CDS - Foreign keys of managed associations in
definition of other associations
Up to SPS 09, the appearance of
“circular” associations caused an
error.
Now, the compiler recognizes that
the referenced field is actually
part of the base entity and thus
can be obtained without following
the association in such
relationships
entity Header {
key id : Integer;
toItems : Association[*] to Item on
toItems.head.id = id;
};
entity Item {
key id : Integer;
head : Association[1] to Header { id };
};
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 15
HANA XS SPS 10: CDS - Filter Conditions and prefix notation
When following an association, it
is now possible to apply a filter
condition, which is mixed into the
ON-condition of the resulting
JOIN
view BPOrdersView as select from BusinessPartner {
PARTNERID,
orders[LIFECYCLESTATUS='N'].SALESORDERID as orderId
};
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 16
HANA XS SPS 10: CDS - Filter Conditions and prefix notation
Associations
with filters are never combined.
In order to tell the compiler that
there actually is only one
association, you have to use the
prefix notation
view BPOrders2View as select from BusinessPartner {
PARTNERID,
orders[LIFECYCLESTATUS='N'].{ SALESORDERID as orderId,
GROSSAMOUNT as grossAmt }
};
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 17
HANA XS SPS 10: CDS - Filter Conditions and prefix notation
Prefixes can be nested:
view BPOrders3View as select from BusinessPartner {
PARTNERID,
orders[LIFECYCLESTATUS='N'].{ SALESORDERID as orderId,
GROSSAMOUNT as grossAmt,
ITEMS[NETAMOUNT>200].{ PRODUCT.PRODUCTID,
NETAMOUNT }
}
};
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 18
HANA XS SPS 10: CDS - Series
CDS syntax now supports the
HANA Series keyword
entity MySeriesEntity {
key setId : Integer;
key t : UTCTimestamp;
value : Decimal(10,4);
series (
series key (setId)
period for series (t)
equidistant increment by interval 0.1 second
)
};
© 2015 SAP SE or an SAP affiliate company. All rights reserved.
Thank you
Contact information:
Thomas Jung
Product Management SAP HANA
thomas.jung@sap.com

More Related Content

PDF
SAP HANA SPS09 - HANA Modeling
PDF
SAP HANA SPS10- SHINE
PDF
SAP HANA SPS10- Text Analysis & Text Mining
PDF
SAP HANA SPS09 - Development Tools
PDF
SAP HANA SPS09 - SAP HANA Answers
PDF
SAP HANA SPS09 - Full-text Search
PDF
Synchronizing Data in SAP HANA Using SAP SQL Anywhere
PDF
SQL Anywhere Tips and Tricks
SAP HANA SPS09 - HANA Modeling
SAP HANA SPS10- SHINE
SAP HANA SPS10- Text Analysis & Text Mining
SAP HANA SPS09 - Development Tools
SAP HANA SPS09 - SAP HANA Answers
SAP HANA SPS09 - Full-text Search
Synchronizing Data in SAP HANA Using SAP SQL Anywhere
SQL Anywhere Tips and Tricks

What's hot (20)

PDF
SAP HANA SPS10- SAP HANA Remote Data Sync
PDF
SAP HANA SPS09 - XS Programming Model
PPTX
HANA SPS07 Shine
PDF
SAP HANA SPS10- SQLScript
PPTX
HANA SPS07 Extended Application Service
PDF
SQLAnywhere 16.0 and Odata
PDF
Spark Usage in Enterprise Business Operations
PDF
SAP HANA SPS10- SAP DB Control Center
PDF
An In-Depth Look at SAP SQL Anywhere Performance Features
PPTX
HANA SPS07 Smart Data Access
PDF
SAP HANA SPS10- SAP HANA Development Tools
PPTX
What's New for SAP HANA Smart Data Integration & Smart Data Quality
PPTX
What's new for Text in SAP HANA SPS 11
PDF
SAP HANA SPS09 - HANA IM Services
PDF
SQL Anywhere and the Internet of Things
PDF
SAP HANA SPS10- SAP HANA Dynamic Tiering
PDF
What's New in SAP HANA SPS 11 Operations
PDF
SAP HANA Native Application Development
PDF
Big Data, Big Thinking: Simplified Architecture Webinar Fact Sheet
PDF
SAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS10- SAP HANA Remote Data Sync
SAP HANA SPS09 - XS Programming Model
HANA SPS07 Shine
SAP HANA SPS10- SQLScript
HANA SPS07 Extended Application Service
SQLAnywhere 16.0 and Odata
Spark Usage in Enterprise Business Operations
SAP HANA SPS10- SAP DB Control Center
An In-Depth Look at SAP SQL Anywhere Performance Features
HANA SPS07 Smart Data Access
SAP HANA SPS10- SAP HANA Development Tools
What's New for SAP HANA Smart Data Integration & Smart Data Quality
What's new for Text in SAP HANA SPS 11
SAP HANA SPS09 - HANA IM Services
SQL Anywhere and the Internet of Things
SAP HANA SPS10- SAP HANA Dynamic Tiering
What's New in SAP HANA SPS 11 Operations
SAP HANA Native Application Development
Big Data, Big Thinking: Simplified Architecture Webinar Fact Sheet
SAP HANA SPS09 - SAP HANA Core & SQL
Ad

Viewers also liked (10)

PDF
What's Planned for SAP HANA SPS10
PDF
SAP HANA SPS09- Administration Monitoring
PDF
SAP HANA SPS10- Hadoop Integration
PDF
SAP HANA SPS10- Workload Management
PPTX
SAP HANA SPS1- SAP HANA Hardware Platforms
PDF
Deployment and Development approaches for the ISV using PowerBuilder and SQL ...
PDF
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
PDF
Maximizing Database Tuning in SAP SQL Anywhere
PDF
Big Data, Big Thinking: Untapped Opportunities
PPTX
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's Planned for SAP HANA SPS10
SAP HANA SPS09- Administration Monitoring
SAP HANA SPS10- Hadoop Integration
SAP HANA SPS10- Workload Management
SAP HANA SPS1- SAP HANA Hardware Platforms
Deployment and Development approaches for the ISV using PowerBuilder and SQL ...
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
Maximizing Database Tuning in SAP SQL Anywhere
Big Data, Big Thinking: Untapped Opportunities
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
Ad

Similar to SAP HANA SPS10- Extended Application Services (XS) Programming Model (20)

PDF
C13,C33,A35 アプリケーション開発プラットフォームとしてのSAP HANA by Makoto Sugishita
PDF
SAP ( ABAP CDS ) Core Data Services.pdf
PDF
SAP HANA SPS10- Enterprise Information Management
PPTX
Power of the SAP HANA Platform – Integrating non-SAP data with custom HANA ap...
PPTX
HANA SPS07 Studio Development Perspective
PPTX
SAP HANA SPS08 Modeling
PPTX
SAP HANA Native Application Development
PPTX
What's new on SAP HANA Smart Data Access
PDF
Introduction to ABAP Core Data Services (CDS).pdf
PPTX
What's new in SAP HANA SPS 11 SQL/SQLScript
PDF
Introduction to ABAP Core Data Services (CDS).pdf
DOCX
Sap abap on hana
DOCX
Sap abap on hana
PPTX
SAP HANA SPS08 Overview
PPTX
What's New in SPS11 Overview
PPTX
Non-SAP Data Integration with SAP HANA_v5.0
PDF
SAP HANA SPS09 - SAP River
PDF
What's new in HANA SPS7 - SAP HANA UI Integration Services
PDF
SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...
C13,C33,A35 アプリケーション開発プラットフォームとしてのSAP HANA by Makoto Sugishita
SAP ( ABAP CDS ) Core Data Services.pdf
SAP HANA SPS10- Enterprise Information Management
Power of the SAP HANA Platform – Integrating non-SAP data with custom HANA ap...
HANA SPS07 Studio Development Perspective
SAP HANA SPS08 Modeling
SAP HANA Native Application Development
What's new on SAP HANA Smart Data Access
Introduction to ABAP Core Data Services (CDS).pdf
What's new in SAP HANA SPS 11 SQL/SQLScript
Introduction to ABAP Core Data Services (CDS).pdf
Sap abap on hana
Sap abap on hana
SAP HANA SPS08 Overview
What's New in SPS11 Overview
Non-SAP Data Integration with SAP HANA_v5.0
SAP HANA SPS09 - SAP River
What's new in HANA SPS7 - SAP HANA UI Integration Services
SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...

More from SAP Technology (20)

PPTX
SAP Integration Suite L1
PDF
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
PDF
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
PDF
Extend SAP S/4HANA to deliver real-time intelligent processes
PDF
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
PDF
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
PDF
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
PDF
Transform your business with intelligent insights and SAP S/4HANA
PDF
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
PPTX
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
PDF
The IoT Imperative for Consumer Products
PDF
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
PDF
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
PDF
The IoT Imperative in Government and Healthcare
PDF
SAP S/4HANA Finance and the Digital Core
PDF
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
PPTX
SAP Helps Reduce Silos Between Business and Spatial Data
PDF
Why SAP HANA?
PPTX
Spotlight on Financial Services with Calypso and SAP ASE
PPTX
SAP ASE 16 SP02 Performance Features
SAP Integration Suite L1
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
Extend SAP S/4HANA to deliver real-time intelligent processes
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Transform your business with intelligent insights and SAP S/4HANA
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
The IoT Imperative for Consumer Products
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
The IoT Imperative in Government and Healthcare
SAP S/4HANA Finance and the Digital Core
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
SAP Helps Reduce Silos Between Business and Spatial Data
Why SAP HANA?
Spotlight on Financial Services with Calypso and SAP ASE
SAP ASE 16 SP02 Performance Features

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
cuic standard and advanced reporting.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Electronic commerce courselecture one. Pdf
PDF
Approach and Philosophy of On baking technology
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
KodekX | Application Modernization Development
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.
Review of recent advances in non-invasive hemoglobin estimation
Advanced methodologies resolving dimensionality complications for autism neur...
cuic standard and advanced reporting.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation_ Review paper, used for researhc scholars
Unlocking AI with Model Context Protocol (MCP)
Electronic commerce courselecture one. Pdf
Approach and Philosophy of On baking technology
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Dropbox Q2 2025 Financial Results & Investor Presentation
KodekX | Application Modernization Development
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
Per capita expenditure prediction using model stacking based on satellite ima...

SAP HANA SPS10- Extended Application Services (XS) Programming Model

  • 1. 1© 2014 SAP AG or an SAP affiliate company. All rights reserved. SAP HANA SPS 10 – What’s New? Extended Application Services (XS) Programming Model SAP HANA Product Management June, 2015 (Delta from SPS 09 to SPS 10)
  • 2. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 2 Roadmap SAP HANA Extended Application Services Summary Today  New Database interface  Core XSJS APIs  SMTP  ZIP  XML  Secure Store  AntiVirus  Integrated Web Dispatcher  XSDS  CDS Improved Lifecycle Management capabilities  Odata  Profiler  Odata Explorer  Null and eTag support Future Direction (SPS 11 and beyond)  Additional runtime containers  Node.js  Java (TomEE)  C/C++  Application Services can scale independently from database and offer new security options  Odata implementation based upon Apache Olingo  Move from Repository to GIT  HDI: HANA Deployment Infrastructure  Containers for schema free content Planned Innovations (SPS 10)  Translation Tool  SQLCC Auto User  Self Service Improvements  HDBSYNONYM (Design time Synonym)  CDS Improvements  Extend HANA SQL Function Support  GIS Types and Functions  Global temporary column tables  Foreign keys of managed associations in definition of other associations  Filter Conditions and prefix notation  Series Entities  SQLScript Improvements (see separate What’s New for SQLScript) This is the current state of planning and may be changed by SAP at any time.
  • 4. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 4 HANA XS SPS 10: HANA XS Admin Tool: Translation New tool specifically design for performing online translations URL: /sap/hana/xs/translationTool/ Role: sap.hana.xs.translationTool.roles::translator
  • 5. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 5 HANA XS SPS 10: HANA XS Admin Tool: SQLCC Auto User New parameter for SQLCC: role_for_auto_user Allows for the generation of an automatic user and the specification of a single role you wish to assign to that user You can now transport a DU with SQLCC and it is ready to use without any user creation or administrative setup
  • 6. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 6 HANA XS SPS 10: HANA XS Admin Tool: Self Service Improvements User Self Service e-mail templates can now be customized
  • 7. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 7 HANA XS SPS 10: HDBSYNONYM New development artifact for SPS 10 to allow for the design time definition of Synonyms upon catalog tables • Especially useful for access to ERP and other ABAP created tables { "acme.com.app1::MySynonym1" : { "target" : { "schema": "DEFAULT_SCHEMA", "object": "MY_ERP_TABLE_1" }, "schema": "SCHEMA_2" } }
  • 9. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 9 HANA XS SPS 10: Core Data Services Mission Statement  CDS provides an enriched data model  CDS allows for graceful life-cycle management  CDS allows for extending the meta-model Features coming with SPS 10  Extend HANA SQL Function Support  GIS Types and Functions  Global temporary column tables  Foreign keys of managed associations in definition of other associations  Filter Conditions and prefix notation  Series Entities  Code Completion in the Web-based Development Workbench
  • 10. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 10 HANA XS SPS 10: CDS - Extend HANA SQL Function Support CDS now supports almost all HANA SQL functions The following functions are not supported: • The functions in the section Fulltext Functions • The functions in the section Window Functions • the functions GROUPING, GROUPING_ID, MAP in the section Miscellaneous Functions
  • 11. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 11 HANA XS SPS 10: CDS - GIS Types and Functions Definition of entities with GIS element types in SPS 09 SPS 10 adds GIS functions define view BPAddrExt as select from MD.BusinessPartner { PARTNERID, ADDRESSES.STREET || ', ' || ADDRESSES.CITY as FULLADDRESS, round( ADDRESSES.POINT.ST_DISTANCE(NEW ST_POINT(8.644072, 49.292910), 'meter')/1000, 1) as distFromWDF03 };
  • 12. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 12 HANA XS SPS 10: CDS - Global temporary column tables Added support for global temporary column tables • Temporary global column tables must not have a key nor an index. • Note that a temporary entity/table cannot be changed when the table is in use by an open session @Catalog.tableType : #TEMPORARY_GLOBAL_COLUMN entity ProductTemp { PRODUCTID: String(10); DATETIME: UTCDateTime; USERNAME: String(20); };
  • 13. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 13 HANA XS SPS 10: CDS - Foreign keys of managed associations in definition of other associations Up to SPS 09, the appearance of “circular” associations caused an error. Now, the compiler recognizes that the referenced field is actually part of the base entity and thus can be obtained without following the association in such relationships entity Header { key id : Integer; toItems : Association[*] to Item on toItems.head.id = id; }; entity Item { key id : Integer; head : Association[1] to Header { id }; };
  • 14. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 14 HANA XS SPS 10: CDS - Foreign keys of managed associations in definition of other associations Up to SPS 09, the appearance of “circular” associations caused an error. Now, the compiler recognizes that the referenced field is actually part of the base entity and thus can be obtained without following the association in such relationships entity Header { key id : Integer; toItems : Association[*] to Item on toItems.head.id = id; }; entity Item { key id : Integer; head : Association[1] to Header { id }; };
  • 15. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 15 HANA XS SPS 10: CDS - Filter Conditions and prefix notation When following an association, it is now possible to apply a filter condition, which is mixed into the ON-condition of the resulting JOIN view BPOrdersView as select from BusinessPartner { PARTNERID, orders[LIFECYCLESTATUS='N'].SALESORDERID as orderId };
  • 16. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 16 HANA XS SPS 10: CDS - Filter Conditions and prefix notation Associations with filters are never combined. In order to tell the compiler that there actually is only one association, you have to use the prefix notation view BPOrders2View as select from BusinessPartner { PARTNERID, orders[LIFECYCLESTATUS='N'].{ SALESORDERID as orderId, GROSSAMOUNT as grossAmt } };
  • 17. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 17 HANA XS SPS 10: CDS - Filter Conditions and prefix notation Prefixes can be nested: view BPOrders3View as select from BusinessPartner { PARTNERID, orders[LIFECYCLESTATUS='N'].{ SALESORDERID as orderId, GROSSAMOUNT as grossAmt, ITEMS[NETAMOUNT>200].{ PRODUCT.PRODUCTID, NETAMOUNT } } };
  • 18. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 18 HANA XS SPS 10: CDS - Series CDS syntax now supports the HANA Series keyword entity MySeriesEntity { key setId : Integer; key t : UTCTimestamp; value : Decimal(10,4); series ( series key (setId) period for series (t) equidistant increment by interval 0.1 second ) };
  • 19. © 2015 SAP SE or an SAP affiliate company. All rights reserved. Thank you Contact information: Thomas Jung Product Management SAP HANA thomas.jung@sap.com