For this beginner tutorial, you will load data onto your SAP HANA 2.0, express edition installation and preview that data. You will learn how to create a new user, create a schema, upload .csv data to your SAP HANA 2.0, express edition installation, create a new package, load and connect the .csv data to that package, and then edit and preview that data.
✔How to use SAP HANA Studio to load data onto your SAP HANA 2.0, express edition installation and create the proper user and schema, create a package, load data to that package, and preview that data In SAP HANA Studio, do the following:
Under your SYSTEM user login, expand the Security folder.
Right-click on Users and select New User.
Create User
The security editor opens.
Create the new user and give it the proper permissions.
Give your new user a name.
Give your user a strong password. You may wish to force a password change upon first login.
Under Granted Roles, clickinsert.
Select MODELING.
Click OK.
Repeat steps 3, 4, and 5 while selecting CONTENT_ADMIN.
Click DeployDeployto create your new user.
Create User
Step 2Create a Schema
+
Under the Systems panel, right-click on your SYSTEM login and select Open SQL console.
Create your new schema.
Shell
CREATE SCHEMA <schema_name>
Click Executeexecute.
Grant rights and permissions for your new user to work on your new schema.
Shell
GRANT SELECT on SCHEMA <schema_name> to <new_user>
Example:
Code
GRANT SELECT on SCHEMA TEST to PREVIEW
Shell
GRANT SELECT, CREATE ANY on SCHEMA <schema_name> to <new_user>
Example:
Code
GRANT SELECT, CREATE ANY on SCHEMA TEST to PREVIEW
Shell
GRANT SELECT, INSERT, UPDATE, DELETE, EXECUTE ON SCHEMA <schema_name> to _SYS_REPO WITH GRANT OPTION
Example:
Code
GRANT SELECT, INSERT, UPDATE, DELETE, EXECUTE ON SCHEMA TEST to _SYS_REPO WITH GRANT OPTION
Click Executeexecutefor each line.
Step 3Load Table Data
+
Import the STS_FCTCUSTOMERORDER.csv file.
On the SAP HANA Studio window, click File then Import….import
Select SAP HANA Content then Data from local file.
Select your SYSTEM repository and click Next.
Browse for and select the STS_FCTCUSTOMERORDER.csv file. Click Open.
Select Header row exists.
Select New Schema and choose the schema you created earlier in this series.
Note:
Be sure to select your new schema and not the user you create to ensure that the data is in the proper location.
Give your table a name and click Next.
Choose the Data Types for the table. Select Key for ORDERID, PRODUCTID, CUSTOMERID, EMPLOYEEID, and ORDERPERIODID. Click Next to see a preview of your table, otherwise click Finish to complete the upload.
Load file
Repeat steps 1 and 2 to import the remaining two .csv files.
For STS_DIMPRODUCT.csv, select Key for PRODUCTID. For STS_DIMCUSTOMER.csv, select Key for CUSTOMERID.
Refresh your schema.
Successful Upload
You should see your new tables under the Tables folder under your schema.
Step 4Create a New Package
+
Log into SAP HANA Studio as your new user.
Right-click on your current system.
Select Add System with Different User….
Enter your new user name and the appropriate password.
Note:
If prompted, change your new user’s password.
Under the Systems tab, right-click on Content.
Select New then Package….
Enter a name for the package. Click OK.
The new package will appear under your Content folder under your new user login.
Create Package
Step 5Load and Connect Data
+
Right click on the package you created earlier and select New then Analytic View….
Give your new Information View a name.
A new viewing window opens and a folder is added under your package.
Select Data Foundation and click Add Objectsinsert.
Under Type the object name to search for, add the FCTCUSTORDERS, DIMPRODUCT, and DIMCUSTOMER tables you created in the previous tutorial.
Under the Details window panel, link the related information between the tables.
Connect PRODUCTID under "<schema_name>".DIMPRODUCT to PRODUCTID under "<schema_name>".FCTCUSTOMORDERS by clicking the phrase, holding, and dragging your mouse. Repeat this and connect CUSTOMERID under "<schema_name>".DIMCUSTOMER to CUSTOMERID under "<schema_name>".FCTCUSTOMORDERS.
Note:
You can move the individual tables to better view your information.
Add output columns.
Under "<schema_name>".DIMPRODUCT, hold the Ctrl button and select PRODUCTNAME, CATEGORYNAME, LINENAME, CAPACITY, and SCREENSIZE.
Right-click on one of the selected elements and click Add To Output.
Repeat previous steps for "<schema_name>".DIMCUSTOMER and select CUSTOMER, CITYNAME, COUNTRYNAME, and REGIONNAME.
Repeat previous steps for "<schema_name>".FCTCUSTOMORDERS and select QUANTITY, DISCOUNT, NETSALES, and QUANITYORDERED.
Here is an example:Connect Data
Step 6Edit Semantics
+
Select Semantics under the Scenario panel.
Note:
Make sure the Show menu pulldown is set to All otherwise you may not see your information.
Label Attributes columns.
Highlight the following columns: PRODUCTNAME, CATEGORYNAME, LINENAME, CAPACITY, SCREENSIZE, CUSTOMER, CITYNAME, COUNTRYNAME, and REGIONNAME.
Click Mark as Attributeattribute.
Mark as Attribute
Label Measure columns.
Highlight the following columns: QUANTITY, DISCOUNT, NETSALES, and QUANTITYORDERED.
Click Mark as Measuremeasure.
Mark as Measure
Adjust your data as necessary.
Under the Label column, you can provide new names for your columns.
You may hide any columns by selecting its Hidden column box.
Click Save and Validatecheckto save and check your changes.
An entry will be added to the Job Log window panel.
Note:
The system may return the status Completed with warnings. This is expected and the system should still run successfully.
Click Save and Activateactivateto deploy the scenario.
An entry will be added to the Job Log window panel.
Step 7Preview Data
+
Refresh your package’s Analytic View folder.
Double-click the Analytic View file you created earlier.
Preview your data. Right-click on your Analytic View file and select Data Preview.
You can now preview your data by dragging Attributes to the Label axis panel and Measures to the Values axis window panel.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 8
1. Create a New User2. Create a Schema3. Load Table Data4. Create a New Package5. Load and Connect Data6. Edit Semantics7. Preview Data8. Additional Information
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.