Data and Analytics Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
aelbouayadi
Associate
Associate
2,695

In this Blog, we'll demonstrate how to create a custom data product from a replication flow that can be delta-shared with SAP Databricks or BDC connect.

There are few steps to follow:

1- Create a SAP HANA Data Lake Files (HDLF) Space in Datasphere

2- Create a replication Flow from your source (in this blog we'll use SAP S/4HANA) to the created HDLF Space.

3- Create Data Provider Profile in Datasphere

4- Create and list a Data product

5- List the Data product

6- Share the Data product from the BDC cockpit

7- Check the Data product from the BDC cockpit

1- Create a SAP HANA Data Lake Files (HDLF) Space in Datasphere

From the space management, you need to create a new space (HDLF)

2.png

2.png

This step can be skipped if you already have an HDLF space.

Once the space is created, you need to establish the connection to the source system (supporting replication flows) that you need.

2- Create a replication Flow from your source (in this blog we'll use SAP S/4HANA) to the created HDLF Space.

Once the space an the right connection are done, we can start creating our replication flow=

For this scenario, I will use the CDS view I_CUSTOMER:

3.png

As you can see, I enabled Initial and delta, so my data product well be refreshed as soon as a delta is loaded (it may take some refresh time to be reflected on the data product)

As a result of this replication flow, I will get a local table :

 

4.png

This table will be the source of our Data Product.

3- Create Data Provider Profile in Datasphere

In this step we need to create our data profile provider.

Data Sharing Cockpit -> My Data Provider Profile -> Create Data Provider Profile

5.png

You can follow this help page to create your Data Provider Profile: https://help.sap.com/docs/SAP_DATASPHERE/e4059f908d16406492956e5dbcf142dc/4d298f8654fe4a6c9b6a4399a9...

In Order to be able to share the data product within BDC, you MUST set the "Data Provider / Data Product Visibility" to Formations.

 

6.png

Now, you will be able to create Data Products.

4- Create and list a Data product

In this step we'll use our Data Provider Profile to create the Data products.

Data Sharing Cockpit -> My Data Products -> Create Data Product

7.png

 

This link is helpful to create the Data Product: https://help.sap.com/docs/SAP_DATASPHERE/e4059f908d16406492956e5dbcf142dc/bbcbf42b0cb541529e63628d95...

 

But Here are some of the important field that you need to fill:

  1. Artifact Space: the HANA Data Lake File space created in the first step and used for replication8.png
  2.  Data category: you need to choose a category of your data product. In this example, I choose "Company Data"

    9.png

  3.   Product Artifacts: Here is where we add our local table to the data product.

10.png

 

You have the possibility to add multiple tables to your data product.

You will see the added artifacts to your DP.

13.png

Last, you need to save the changes for your data product.

 

5- List the Data product

After saving the Data product, you will be able to see your DP like this:

 

14.png

In order, to share the DP within BDC you need to List your DP :

  • Switch Status -> List

15.png

The status will change to:

16.png

The Data Product will be available in the BDC cockpit after the next synchronisation job is done

6- Share the Data product from the BDC cockpit.

Now we will switch to the BDC cockpit.

From the menu we Navigate to "Catalog & Marketplace" -> Search

 

And we can search for our Data Product " CustomerDataP"

18.png

From here we can share our Data Product and see it's lineage.

19.png

- Share -> Add Target :

 

- Choose your target(SAP BDC or BDC Connect), In this Scenario, we'll choose SAP Databricks:

Then we add a Share Name : "customerdp", specify the Workspace in SAP Databricks, and Share

Once shared, you will se a notification telling you so.

7 - Check the Data Product in SAP Databricks

In this step we'll check our shared data product in SAP Databricks.

From the previous screen, once the shared is completed we can open our data product in SAP Databricks:

22.png

In SAP Databricks' Catalog, we can see our shared data product

23.png

From here we can visualize a sample data :

 

24.png

From here, it is up to your creativity in Databricks 😉

 

Summary

In this blog, we saw how we can create custom Data Products in SAP business Data Cloud. We started from a creating a replication flow in Datasphere to a HANA Data Lake File space, we created a Data Provider Profile that allowed us to created a Data Product from the local table (result of the rep flow). Then we were able to list tha data product so we can find it in the BDC cockpit catalog and finally share it with SAP Databrick.

 

I hope this will help you create you custom data products from Datasphere.

Kind regards,

 

9 Comments
yashparikh
Active Participant
0 Kudos

I cannot see formation in My dataproivder profile. What can be the reason. We have moved to BDC. 

Afshin_IR
Explorer
0 Kudos

Thank you for the detailed step by step guide on this.

rmuhuri
Participant
0 Kudos

I dont see formation either . 

 

I only see these options 

DSP.jpg

Public Data Provider or Private Data Provider or Internal Data Provider

yashparikh
Active Participant
0 Kudos

@rmuhuri 

Ya that's the issue. Not sure if SAP has a solution or not to this.  I also got confirmation from SAP that I have created correct formation in sap4 me. 

paulvatter
Participant
0 Kudos

@yashparikh / @rmuhuri: Can you please verify if your Datasphere tenant is part of a SAP for Me formation which also includes the BDC cockpit? We have created a new formation today and added Datasphere as well as the BDC cockpit and then the option appeared. BR Paul

yashparikh
Active Participant
0 Kudos

Hello @paulvatter ,

Yes i have created two formations each for non prod and prod DSP tenant. In both of them i have included BDC cockpit as well. Could you let me know if this is how it works?

paulvatter
Participant
0 Kudos

Hi @yashparikh, that was also our approach for the tenant mentioned above and after the first successful sync the option appeared (when creating a new data provider profile). Did you already create a ticket? 

yashparikh
Active Participant

Yes I have created the incident. But do you think that is the correct way?

albertosimeoni
Participant
0 Kudos

Hello,
I found with the trial that the "lienage of a Data product" is not visible (for standard and for custom data product).
I can see the impact of a data product if I look the lineage of a SAC Story.

But I can not see the lineage of a data product (namely which CDS views are the source for the data product).

The only way is to have a "BDC privilege" and look in the BDC catalog the name of the API (only for the standard products).

Not be able to see visually what is the source, what is behind a data product is a big problem in proposal to customers for the catalog.
I can understand that for the Standard, the hidden spaces that compose the FOS are SAP managed and basically you can not see what happens behind, but for a custom DP it seems strange to me.


Is that a limitation of the BDC trial ? Will this be addressed with the next "data product studio"?

Top kudoed authors