You are on page 1of 12

Week 2 Unit 1: Database Schemas

and Database Tables


2013 SAP AG. All rights reserved. 2
Public
Database Schemas and Database Tables
The SAP HANA Repository
Object management, versioning,
and transport
Software component delivery
and patching
Built-in support for translatable
texts
Support for server-based
development
2013 SAP AG. All rights reserved. 3
Public
Database Schemas and Database Tables
The SAP HANA Repository
Presentation logi c
Control flow logic
Calculation logic
Client
Data
Data artifacts
Control flow artifacts
Presentation artifacts
HANA
Manage all artifacts in one
repository
Presentation (UI)
Control flow (Application)
Data persistence:
Tables
Views
Schemas
2013 SAP AG. All rights reserved. 4
Public
Database Schemas and Database Tables
Data Persistence in SAP HANA
Data persistence objects
Schemas
Tables
SQL views
Sequences
Procedures

2013 SAP AG. All rights reserved. 5


Public
Database Schemas and Database Tables
Database Schemas for SAP HANA
Database object
Mandatory
Contains logical groups:
Tables
Views
Procedures
Sequences

2013 SAP AG. All rights reserved. 6
Public
Database Schemas and Database Tables
Design-time Schemas for SAP HANA
Design-time object
Transportable
Plain text file
Mandatory file suffix
(.hdbschema)
Repository activation
creates runtime object in
the catalog
2013 SAP AG. All rights reserved. 7
Public
Database Schemas and Database Tables
Design-time Schemas: Configuration Syntax (.hdbschema)
Mandatory syntax
(.hdbschema)
Schema name keyword
Schema name
Authorizations
2013 SAP AG. All rights reserved. 8
Public
Database Schemas and Database Tables
Database Tables for SAP HANA
Database object
<package.path>::<TableName>
A set of data elements
Type:
Column
Row
Metadata:
Constraints on table
Constraints on values in particular
columns
2013 SAP AG. All rights reserved. 9
Public
Database Schemas and Database Tables
Design-time Tables for SAP HANA
Design-time object
Transportable
Plain text file
Mandatory file suffix
(.hdbtable)
Repository activation
creates runtime object in
the catalog
2013 SAP AG. All rights reserved. 10
Public
Database Schemas and Database Tables
Design-time Tables: Configuration Syntax (.hdbtable)
Mandatory syntax
(.hdbtable)
Schema name
Table type
Column/Row
Table columns
Name, SQL type, length
Data types
NVARCHAR, DATE, DECIMAL
Primary key
Thank you
Contact information:
open@sap.com
2013 SAP AG. All rights reserved.
Public
2013 SAP AG. 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 AG.
The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or
warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group
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.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in
Germany and other countries.
Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademarkfor additional trademark information and notices.
2013 SAP AG. 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 AG.
The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or
warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group
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.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in
Germany and other countries.
Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademarkfor additional trademark information and notices.

You might also like