This article covers:
To make a connection to a SAP HANA database, navigate to the Connections page, select New Connection, then select SAP HANA from the New Connection modal: You'll be asked to provide a host, key and token:
Host: this is the "SQL endpoint" of your SAP HANA instance.

Key: the username of the SAP HANA user. We advise to create a separate read-only technical user for connecting Luzmo to your SAP HANA databases.
Token: the password of the SAP HANA user
Please refer to the examples in our developer documentation to find out how to create a connection to SAP HANA using our API.
Notes:

Once you have connected your SAP HANA you can add datasets as explained here. You can select one or multiple datasets as available in your SAP HANA and link them in Luzmo to ensure they can be used together in a dashboard. Also make sure to check out this article on Preparing your data for analytics.
To find out how to add datasets using our API, please refer to this example in our developer documentation.
When generating an Authorization token to grant a user acces to your embedded dashboards it is possible to override the data source properties in the authorization request to dynamically use different properties. Find out more about connection overrides.
The fields available for overriding a SAP HANA connection are as follows:
Our developer documentation has more info about connection overrides and an examples of SAP Hana connection overrides.
Example code demonstrating how to override a SAP Hana connection:
POST https://api.luzmo.com/0.1.0/authorization
{
"action":"create",
"version":"0.1.0",
"key": "< your API key >",
"token": "< your API token >",
"properties":{
"type": "embed",
...,
"account_overrides": {
"<your connection_id>": {
"properties": {
"host": "<The new sql endpoint to connect to>",
"key": "<The new username of the SAP Hana user.>",
"token": "<The new password for the SAP Hana user>"
}
}
}
}
}
| Data Type In SAP HANA | Data Type In Luzmo |
|---|---|
| BIGINT | numeric |
| DECIMAL | numeric |
| DOUBLE | numeric |
| INTEGER | numeric |
| SMALLDECIMAL | numeric |
| SMALLINT | numeric |
| TINYINT | numeric |
| REAL | numeric |
| DATE | datetime |
| TIME | datetime |
| SECONDDATE | datetime |
| TIMESTAMP | datetime |
| All Other Data Types | hierarchy |