Beruflich Dokumente
Kultur Dokumente
Exercises/Solutions
1. Unit 1: Create MDC (Multitenant Database Container) in SAP Cloud Platform Trial Account ........... 5
In this session, you will walk through a process end-to-end. Therefore, please perform the steps in the
sequence given since the result of one step is the starting point for the next.
Unit 1: Create MDC (Multitenant Database Container) in SAP Cloud Platform Trial Account
Estimated Duration: 10 minutes
Target Audience
Developers
Customers
Business Users
The MDC feature was introduced with SAP HANA SPS09. As SAP Cloud Platform HANA Database is upgraded to
SPS09, SAP Cloud Platform trial account provision this 1 MDC Database system per trial account.
1.3. Objective:
Creation and configuration of HANA MDC.
1.4. Steps
Create new Database with Database type: HANA MDC <trial>
Click OK
Click Continue
Open Security section to add more role to system user to work with webIDE
sap.hana.xs.ide.roles::EditorDeveloper
sap.hana.xs.ide.roles::Developer sap.hana.xs.debugger::Debugger
sap.hana.xs.admin.roles::HTTPDestViewer
sap.hana.xs.admin.roles::HTTPDestAdministrator
sap.hana.xs.admin.roles::TrustStoreViewer
sap.hana.xs.admin.roles::TrustStoreAdministrator
sap.hana.xs.lm.roles::Administrator
2.1. Overview
Can import the all HANA XS artifact from provided Delivery Unit
Use SAP HANA Web IDE for import provided delivery unit
2.3. Objective:
Import all exercise as import delivery
2.4. Steps
1. From Editor, open Lifecycle Management
3.1. Overview
Use SAP HANA Web IDE to create tables and corresponding services. Before using HANA Web IDE, HANA
instance needs to be created in the cockpit if not already done.
3.3. Objective:
Understand HANA Native Development and XS runtime
3.4. Steps
1. In the editor prospective, create new package with name: bootcamp.
4. All DB tables we will create in this exercise will be developed under this sub package.
5. Create file under package DB with name JobModel.hdbdd. This is HANA CDS for creating
database table
JobModel.hdbdd:
https://github.com/vijayrajput/BootCamp_HANAXS/blob/MDC/bootcamp/DB/JobModel.hdb
dd
6. Now create new package under application package for the odata service. Name this package as
Service.
7. Now create new file under the sub package Service. File extension will be jobs.xsodata.
jobs.xsodata : A design-time object that defines an Data service that exposes SAP HANA data from a
specified end point. This file resides in the package hierarchy of the OData application and must contain
at least the entry service {}, which would generate an operational OData service with an empty service
catalog and an empty metadata file.
https://github.com/vijayrajput/BootCamp_HANAXS/blob/New2017/bootcamp/Service/jobs.xsodata
8. Now lets test the xsodata service using Run option provided.
Both the entities are visible in the testing of the Odata service.
10. Insert data into both the tables using catalog view
Applications
From HANA SPS 9, Web IDE can also be used to create calculation views. Before using HANA Web IDE,
HANA instance needs to be created in the cockpit if not already done.
4.3. Objective:
Understand HANA Models and runtime
4.4. Steps
Similarly create new projection for table Enrollment and select JOBID, LOCATION in output.
Rename JOBID_1 to JOB_JOBID (Need to create JPA relationship from Java application with Job Table)
And Count as Aggregated Column and set its aggregation property as Sum
5.1. Objective:
Testing HANA Models and runtime
5.2. Steps
Select Calculation View and Click Run.
SELECT "Count",
"LOCATION"
FROM "_SYS_BIC"."bootcamp.Model/CV_ENROLLMENT_COUNT"