Accessing data from SAP HANA
You can connect to and access data from SAP HANA in Spotfire. When you want to connect to SAP HANA, you can either open and reuse a connection that is shared in your Spotfire library, or you can create a new connection.
About this task
Before you begin
- Read the System requirements for Spotfire Connectors. Make sure that the SAP HANA data source that you want to connect to is compatible with your version of Spotfire. The system requirements page also specifies what driver, and versions of the driver, that you can use with the connector.
- Install the required ODBC driver on your computer. See Drivers and data sources in Spotfire.
Adding data from an existing connection to SAP HANA
If you want to add data from an existing connection or connection data source that is shared in your Spotfire library, you can use the search function in the Files and data flyout to quickly find the data you are looking for.
Use the search phrase 'connector:hana' to find all
shared connections and connection data sources in the library that were created
with the SAP HANA connector. For more detailed instructions, see
Searching the Library.
Creating a new connection to SAP HANA (installed client only):
Procedure
Troubleshooting
This section lists useful information about requirements, limitations, and best practices for accessing data from SAP HANA.
Granting access to XSA/HDI views
For views and tables that have been created with XS Advanced, through
the SAP WebIDE, to be accessible in Spotfire, certain privileges must be set up
for your database user. Your database administrator must grant your database
user "SELECT", "SELECT CDS METADATA" and
"EXECUTE" privileges.
For multidimensional data, your database user must have
"SELECT" privilege for the "_SYS_BI" schema.
See the official documentation from SAP for more information. Some helpful tips can be found, for example, in this SAP blog post.
Install the required ODBC driver on your computer. See Drivers and data sources in Spotfire.
HINTS to optimize metadata loading
If it is taking a long time to load the list of tables and schemas in the Views in Connection dialog, the reason could be that the loading of metadata is slow.
You might be able to improve metadata loading performance with HINTS. HINTS is a feature in SAP HANA, with which you can include a WITH HINT clause in queries to guide how to get metadata.
You can configure Spotfire to add HINTS to metadata queries to SAP HANA. Use this preference setting in the Administration Manager:
.
Limitations
When you access data from SAP HANA in Spotfire, keep the following limitations in mind.
- When you work with
multidimensional data, the
COUNTfunction (which is used for example when you select Row Count on visualization axes) will give unpredictable results. - For CDS entities related
with unmanaged association, only
ON (A=B) {AND C= D)}is supported for adding related tables. - Parent-child hierarchies are not supported. Only level hierarchies are supported.
- For CDS entities (listed as database tables in Spotfire) that are defined with XS Classic, it is not possible to add any related tables by clicking Add related tables or Add all related tables.
- Hierarchies generated in SQL, with the HIERARCHY generator function, are not supported.
- Connector for SAP HANA — Features and settings
You can connect to and access data from SAP HANA databases with the connector for SAP HANA. On this page, you can find information about the capabilities, available settings, and things to keep in mind when you work with data connections to SAP HANA. - SAP HANA parameters
SAP HANA parameters are used to collect input from the user and return dynamic data based on that input.