没有合适的资源?快使用搜索试试~ 我知道了~
首页Hana CDS Reference
资源详情
资源评论
资源推荐

PUBLIC
SAP HANA Platform 2.0 SPS 00
Document Version: 1.0 – 2016-11-30
SAP HANA Core Data Services (CDS) Reference

Content
1 Introduction to SAP HANA Core Data Services .....................................5
2 Getting Started with Core Data Services..........................................6
2.1 Developing Native SAP HANA Applications...........................................7
2.2 Roles and Permissions for XS Development..........................................9
2.3 Setting up the Data Persistence Model in SAP HANA................................... 11
2.4 Developer Information Map.....................................................14
SAP HANA Developer Information by Guide.......................................17
SAP HANA Developer Information by Task........................................21
SAP HANA Developer Information by Scenario.....................................23
3 Creating the Persistence Model in Core Data Services...............................29
3.1 CDS Editors................................................................30
CDS Text Editor...........................................................31
3.2 Create a CDS Document.......................................................33
CDS Documents..........................................................38
External Artifacts in CDS....................................................40
CDS Naming Conventions................................................... 42
CDS Namespaces.........................................................43
CDS Contexts............................................................44
CDS Annotations..........................................................47
CDS Comment Types...................................................... 56
3.3 Create an Entity in CDS........................................................58
CDS Entities............................................................. 61
Entity Element Modifiers.................................................... 63
CDS Entity Syntax Options...................................................68
3.4 Migrate an Entity from hdbtable to CDS (hdbdd)......................................77
Migration Guidelines: hdbtable to CDS Entity......................................79
SAP HANA to CDS Data-Type Mapping..........................................80
3.5 Create a User-Defined Structured Type in CDS.......................................81
CDS User-Defined Data Types................................................ 84
CDS Structured Type Definition............................................... 87
CDS Structured Types......................................................90
CDS Primitive Data Types................................................... 92
3.6 Create an Association in CDS................................................... 95
CDS Associations.........................................................98
CDS Association Syntax Options..............................................104
2
P U B L I C
SAP HANA Core Data Services (CDS) Reference
Content

3.7 Create a View in CDS.........................................................110
CDS Views..............................................................113
CDS View Syntax Options...................................................121
Spatial Types and Functions.................................................134
3.8 Modifications to CDS Artifacts..................................................135
3.9 Tutorial: Get Started with CDS..................................................139
3.10 Import Data with CDS Table-Import..............................................143
Data Provisioning Using Table Import.......................................... 146
Table-Import Configuration..................................................147
Table-Import Configuration-File Syntax.........................................149
Table-Import Configuration Error Messages......................................154
4 Creating the Data Persistence Artifacts in XS Advanced............................ 156
4.1 Create the Data Persistence Artifacts in XS Advanced.................................156
Design-Time Database Resources in XS Advanced.................................158
HDI Design-Time Resources and Build Plug-ins....................................160
4.2 Create a CDS Document (XS Advanced)...........................................164
CDS Editors.............................................................167
CDS Documents in XS Advanced..............................................168
External CDS Artifacts in XS Advanced..........................................175
CDS Naming Conventions...................................................177
Accessing CDS Metadata in HDI.............................................. 178
CDS Catalog Reader API for HDI.............................................. 179
CDS Contexts in XS Advanced................................................186
CDS Comment Types......................................................191
CDS Extensions Artifacts................................................... 193
4.3 Create a CDS Access-Policy Document (XS Advanced)................................ 195
CDS Access Policies in XS Advanced...........................................197
4.4 Create a CDS Aspect (XS Advanced)............................................. 199
4.5 Create a CDS Role (XS Advanced)............................................... 201
CDS Role Syntax Options...................................................203
4.6 Create a CDS Entity in XS Advanced..............................................205
CDS Entities in XS Advanced................................................ 208
Entity Element Modifiers....................................................210
CDS Entity Syntax Options in XS Advanced...................................... 215
4.7 Create a CDS User-Defined Structure in XS Advanced.................................226
CDS User-Defined Data Types in XS Advanced....................................228
CDS Structured Type Definition in XS Advanced...................................231
CDS Structured Types in XS Advanced.........................................234
CDS Primitive Data Types...................................................236
4.8 Create a CDS Association in XS Advanced......................................... 239
CDS Associations........................................................ 242
SAP HANA Core Data Services (CDS) Reference
Content
P U B L I C 3

CDS Association Syntax Options..............................................248
4.9 Create a CDS View in XS Advanced.............................................. 255
CDS Views............................................................. 258
CDS View Syntax Options...................................................266
Spatial Types and Functions.................................................279
4.10 Create a CDS Extension...................................................... 280
The CDS Extension Descriptor...............................................286
The CDS Extension Descriptor Syntax..........................................289
The CDS Extension Package Descriptor.........................................293
The CDS Extension Package Descriptor Syntax...................................294
4 P U B L I C
SAP HANA Core Data Services (CDS) Reference
Content

1 Introduction to SAP HANA Core Data
Services
This guide explains how to use Core Data Services (CDS) to build design-time data-persistence models in SAP
HANA Extended Application Services (SAP HANA XS) - for both XS classic and XS advanced models. The
data-persistence model is used to define the data to expose in response to client requests via HTTP, for
example, from an SAPUI5-based application.
The information in this guide is intended primarily for application and database developers and focuses on the
tasks the application and database developers most commonly need to perform when designing and creating
the data model, for example, creating tables, views. However, the SAP HANA Core Data Services (CDS)
Reference also includes additional information, too, for example, reference and conceptual.
● Tasks
Step-by-step instructions that show how to create the most important and commonly used database
artifacts
● Reference material
Detailed descriptions of the syntax required to define data artifacts along with code examples and
illustrations
● Background concepts
Explanations of the underlying concepts on which the various CDS design-time database artifacts types
are based
Due to incompatible differences between the CDS syntax supported by SAP HANA XS Classic and SAP HANA
XS Advanced, the guide is split into the following sections:
● Defining data models in XS classic
Defining the data model, managing the data model in the SAP HANA repository, activating the data model
and managing the resulting objects in the database catalog, and consuming the data model (for example,
in a client UI)
● Defining Data models in XS advanced
Defining the data model, setting up the SAP HANA deployment infrastructure (HDI), deploying the data
model, and consuming the data model (for example, in a client UI)
Related Information
Getting Started with Core Data Services [page 6]
Creating the Persistence Model in Core Data Services [page 29]
Creating the Data Persistence Artifacts in XS Advanced [page 156]
SAP HANA Core Data Services (CDS) Reference
Introduction to SAP HANA Core Data Services
P U B L I C 5
剩余299页未读,继续阅读

















cleverwyq
- 粉丝: 36
- 资源: 6
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

评论0