This repo serves as a reference for creating an HDI Container on SAP HANA XS Advanced which accesses data outside of its domain, like ERP data in other schemas.
Please bear in mind that this example serves the following situation ONLY: HDI -> External Data
.
Follow the Instructions — or git-log
- Create new Multi Target Application Project;
- Create new SAP HANA Database Module;
- Execute SQL Scripts to create the Access and Grantor Roles, as well as a dedicated User which will be used by the User-Provided Service;
- Create the User-Provided Service on SAP HANA using either:
- Command line tools via the XS Advanced Client Tools; or
- XSA Cockpit web application;
- Test the connection through the User-Provided Service;
- This step is very important to avoid bad surprises in the future when attempting to access data through the synonyms as the Web IDE doesn't provides descriptive error messages in these cases.
- Create the
.hdbgrants
file; - Declare and Wire-Up dependencies in the
mta.yaml
file; - Create the
.hdbsynonym
file; - Consume the data via a Calculation View, for instance;
SAP Blogs:
SAP Help:
SAP Academy: