
In my previous blogs, I did write about the same data exchange, but using SAP Integration Suite - SAP Cloud Integration as a middleware. In this blog, I like to highlight how we can achieve this using SAP Cloud Integration for data services (SAP CI-DS). For handling large data volumes, it is efficient to use WS-RFC as a protocol between SAP IBP and CI-DS. For sending or receiving data from a space in SAP Datasphere, we use a database connectivity
Fig. 1 Using SAP C-DS for bi-directional integration between SAP IBP and SAP Datasphere.
In every integration, we do need to care about security, protocols data sources and targets. While using SAP CI-DS the following details have to be considered,
Database access in Datasphere is restricted to users with specific roles. Navigate to the Space management menu and create a new Space in Datasphere. Now open this new space or your existing one and click on the Database Access menu option. Create a new database user (see screenshot below). This action also creates an Open SQL Schema to which you can grant read and write access.
Fig. 2 User in SAP Datasphere with database access
Once this user is created, you can use the “Info” icon on the far right corner of your data base user to view the access credentials. Please note down the following information:-
You can also request a new password to start with. You can now create a Table using the SAP Hana Database explorer. I have created two tables – IBPDEMAND to read data from Datasphere and the IBPFORECAST to write forecast data from SAP IBP.
A SAP ODBC driver is available for the HANA Cloud database which is used by Datasphere. You can follow the steps outlined in this SAP Note:- 2970243 to download and install the ODBC driver In my configuration the driver version was 2.19.21. Once installed, you have to create a Data source name. I tried this on a Windows machine. In Microsoft Windows 10, there is a utility called:- ODBC Data Source Administrator. Use the 64 bit version of this tool to create a System Data Source Name. Below steps explain how to do this.
These steps are done on the same machine where the on-permise SAP Data Services Agent is installed. Press the test connection button to make sure that there is a connectivity between this on-premise agent and the HANA database from SAP Datasphere. Note down the Data source name as you would need this later. Also take a read that this SAP Note: - 3157902. Below is the screen shot of my configuration,
Fig. 3 Data Source name configuration for SAP HANA Cloud database
Once the above steps are done, we can log-in to the SAP CI-DS cloud instance to create a new data store for SAP Datasphere. Here we are referring to the DSN name which you created on the machine where the CI-DS agent is running.
Fig. 4 New SAP Datasphere datastore configuration which uses ODBC
Fig. 5 Tables created in SAP Datasphere, visible in CI-DS. They can be used as source or targets
Using the above datastore one can use the tables listed a either a source or a target in a data flow. For this, you can create a new project, and use the tables from SAP Datasphere as a source to read data from the table. You can also select the IBP planning area as a target in that project. Once the Source and targets are done, then you can insert a new mapping between them. My data flow looks like the following,
Fig. 6 Dataflow in SAP CI-DS which uses a table from SAP Datasphere as a source.
In the above dataflow, columns from the table in Datasphere are mapped to the attributes and keyfigure names in the target staging table from a planning area. If there is any data transformation needed, we can do at this stage.
As stated before, the reason why I tried SAP CI-DS is that,
In this blog series on integration between SAP IBP and Datasphere, we used two different middleware tools. Along the official integration roadmap, we will continue to share further examples as we explore the flexibility and more optimization of our solutions. Stay tuned.
Domnic Savio Benedict
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
3 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |