Importing SAP HANA Data to a New or Existing Model
You can connect to SAP HANA
database views to create new models.
Prerequisites
- The HANA database must first be set up by the system
administrator. The HANA views in the database (analytic or calculation-type
views) are available to create new models and datasets from.
- You need to install the SAP Analytics Cloud
agent, with location ID. This location ID is configured through the SAPCP
Cloud Connector, and the agent needs to be allowlisted there. For more
information, see:
Procedure
-
Select the appropriate option:
-
Choose an existing connection, or create a new
connection.
-
Copy a query from an existing model (which you can edit before
saving), or create a new query.
-
To copy and edit an existing query, follow these steps:
- Select Copy a query from a
model.
- Select a query from the list, and then select
Next.
- Make your changes, and then select
Create.
-
Or, to create a new query, follow these steps:
- Select Create a new query and
select Next.
- Type a name for your query.
- If you want to type in a query manually:
- Select Freehand Query.
- Type in your query.
- Select Next.
- Or, to build a query from scratch:
- Select Build a Query.
- Select a HANA view from the list, or search for a view
by name, and then select
Next.
Restriction
- Calculation views without a data category are
not available.
- Users need to have read access to the view (to
execute a SELECT on the run-time object; for
example, grant select on schema Schema123
to User123), and an appropriate analytic
privilege (for example, _SYS_BI_CP_ALL).
- If the data source contains prompts, select values for
them.
- Drag dimensions and measures into the
Selected Data and
Filters areas to build your
query. Note that you can filter dimensions but not
measures.
See Building a Query
for more information.
- Select Create when you're
done.
You can continue to work on other tasks while the data is being
uploaded in the background.
-
When the draft data is finished uploading, open it from the
Draft Data list (for a new model or dataset), or
the Draft Sources list (for an existing model or
dataset).
The data
appears in the data integration view.
Next Steps
After the initial import of raw data, continue with the data
preparation task before completing your model: Preparing Data.
If your HANA data contains location information, you will need to add
location dimensions. For more information on live HANA data see Creating Geo Spatial Models from HANA Calculation Views. For information on acquired
HANA data see Creating a Model with Coordinate or Area Data for Geospatial Analysis.