Vous êtes sur la page 1sur 20

openSAP Analytics with SAP Cloud Platform

Setting up the Development Environment


CHAPTER 1: CREATING YOUR FREE TRIAL ACCOUNT ......................................................................... 3

CHAPTER 2: CREATING A NEW DATABASE IN YOUR TRIAL ACCOUNT .............................................. 5
CHAPTER 3: CREATING A NEW USER AND ASSIGNING ROLES ........................................................... 8
CHAPTER 4: IMPORT THE PROVIDED DATASET .................................................................................. 14
OPTIONAL: VERIFYING DATA UPLOAD ................................................................................................. 18

If you have not already created your free trial account for SAP Cloud Platform during the
first week of this course, please follow these steps.

• Go to https://cloudplatform.sap.com
• Click on “Start your free trial”

• Provide your information in the “Registration” screen

• Click on “Register”

• Go to your E-Mail inbox and activate your account by clicking the provided link.
• When redirected to the Website click on “Login”

• Congratulations! You successfully registered for a SAP Cloud Platform trial account.

• Log in to your SAP Cloud Platform trial account.
• Click on the “Neo Trial” environment

• Navigate on the left to “SAP HANA / SAP ASE”  “Databases & Schemas”

• Click “New” to create a new database in your account

• Provide the Database ID exercise and the System User Password Abcdef123456789
• Keep the Database System as “HANA MDC (<trial>)”
• Make sure the button for “Web Access” is turned on. The “DP Server” and a user for
SHINE are not needed. Therefore, make sure these buttons are turned off.
• Click on “Create”

• The creation of your database might take a couple of minutes. Therefore, please wait
until the “Events” section gives you the message “Tenant DB creation finished
successfully (created and configured)”
• Congratulations! You created your first SAP HANA database in your SAP Cloud
Platform trial account!

• Back in your trial account under “SAP HANA / SAP ASE”  “Databases & Schemas”
click on the name of your newly created SAP HANA database.

• Click on the provided Link to SAP HANA Cockpit

• Log in with your SYSTEM user and the Password you provided during the creation of
your SAP HANA database (Abcdef123456789)

• The necessary roles to access the cockpit are assigned automatically to your SYSTEM
user. Please click “OK” and then “Continue” in the open Pop-Ups.
• In the SAP HANA Cockpit you can monitor your database in regards to memory and
CPU usage as well as the general information of your database and eventual Alerts.
Also, you can do the User and Role management from this cockpit.
• To create a new user please click on “Manage Roles and Users”

• By clicking on the tile you are redirected to the SAP HANA Web-based Development
Workbench. In the security section of this workbench you can see and manage all the
different Users and Roles, which are available on your system.
• Please do a right click on “Users” and select “New User”

• A new mask shows up, where you can enter the necessary information to create a new
• As a User Name please enter DEMO and use Initial1 as a password. Please also use
Initial1 to confirm the password. (you have to change this password, when you first
logon with this user to the database)

• To add additional roles, please click the green “+” icon.
• Please search for the following roles and add them to your user with the pop-up
o sap.hana.xs.ide.roles::Developer
o sap.bc.ina.service.v2.userRole::INA_USER

• In the “Object Privileges” tab add the Object REPOSITORY_REST (SYS) with the
green “+” button. In the Details section click the box next to “EXECUTE”

• In the “Package Privileges” tab add the root package ( .REPO_PACKAGE_ROOT) with
the green plus icon and in the “details” section tick the boxes next to

• Click the “save” button to save your newly created user.

• In the console at the bottom of your page a success message should show up. The
role “PUBLIC” is granted to your new user by default.

• After saving your new user successfully, please click on the “logout” button on the top

• Now login with your newly created user DEMO and the password Initial1

• After clicking “Log On” you are prompted to change your password. Please enter the
old password Initial1 and a new password (for example Welcome18 ).

• You are back in the User and Role management of your SAP HANA database. Please
select the user “_SYS_REPO” and grant the user in the “Object Privileges” tab rights to
the Schema of your user, by clicking the green “+” button and searching for your
username DEMO
• Also tick the box next do “SELECT” in the details section and activate the radio button
to make the right grantable to others.
• Click “save” afterwards to save the changes, you made to the user.

• Navigate to the “Editor” with the small “chain” button on the top left.

• With a right click on “Content” create a new package via New > Package

• Enter exercise as the package name and click “create”

• Repeat this step to create a sub-package “data” in your newly created “exercise”
package. For the “data” package again create a sub-package named “loads”.
• Afterwards your structure should look like this:

• Please download the provided .zip file from openSAP to your laptop and unzip it locally.
• In the provided .zip folder you can find 3 different files. It is important to upload them in
the correct sequence to your database.
• As a first step create a new .hdbdd file in your “data” folder. Therefore, right click on
your “data” folder and select New > File

• As a file name enter tables.hdbdd and click create

• On your laptop open the tables.hdbdd file in the downloaded .zip folder with a text
editor (for example notepad)
• Copy the content of the file with CTRL + C

• Go back to your SAP HANA Web-based Development Workbench and paste the
content of the file to your newly created file.
• Make sure the namespace and schema in the file are correct. If you followed this
document, the file should look like this:

• If everything is ok, click “save”

• As a second step create a new file named tweets.csv in your “loads” folder, by clicking
right and navigating through New > File

• Again, open the according file on your local laptop with a text editor and copy the
content of the file with CTRL + A to mark everything and then CTRL + C
• Go back to your browser and paste the content from your local machine into the
tweets.csv file with CTRL + V.
• Click “save”

• The last file, which is missing is the .hdbti file. Therefore, create a new file in your
“data” folder by clicking right on “data” and click New > File.
• As a filename enter tables.hdbti and click “create”

• Again, open the according file on your local machine with a text editor and copy the
content with CTRL + C
• In your browser paste the content to the newly created file.
• Please make sure, the paths to your data file and the schema are correct. If the content
of your file is correct, please click “save”.

• Congratulation! You uploaded the data successfully.

• To verify, the data was uploaded successfully, navigate to “Catalog” with the small
“chain” button on the top

• Navigate to the schema of your user, search for the automatically created table in the
“Tables” folder and open it. (Catalog > DEMO > Tables > exercise.data::tables.Twitter )
• Afterwards click “Open Content…”

• A new tab should open with the content of your table.

• Troubleshooting: if there is no content in your table, please check the content of your
files, your created in chapter 4. Make sure, all the paths and schema names are
correct. If they are correct, open your tweets.csv file add a space (“ “) and delete it
again. Afterwards save the file once more and do the same in the tables.hdbti file. After
saving and activating these two files again, the content of your table should appear.


Coding Samples
Any software coding or code lines/strings (“Code”) provided in this documentation are only examples and are not intended for use in a production system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the correctness or completen ess of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or with gross negligence.

© 2018 SAP SE or an SAP affiliate company. 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 SE or an SAP affiliate company.

The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary softwar e components of other software vendors.
National product specifications may vary.

These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable
for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company 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.

In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality
mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are
all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation
to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from e xpectations. Readers are
cautioned not to place undue reliance on these forward-looking statements, and they should not be relied upon in making purchasing decisions.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other
countries. All other product and service names mentioned are the trademarks of their respective companies. See http://www.sap.com/corporate-en/legal/copyright/index.epx for additional trademark
information and notices.