Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tomaskutac
Regular Visitor

Connecting to predefine SAP HANA CDS views

Hello, I am connectin from Power BI to HANA database to predefine CDS views like this:

 

Here are I am calling predefine CDS view for storage location list. This view has annotation @ClientHandling.algorithm #SESSION_VARIABLE. So it expected client to be specified for connection session. For all such a CDS views i get empty table in Power BI, the same problem if calling them from SQL server. (My own views working perfectly). Yes, I can write my one CDS views, but there are so many nice views already predefine in HANA database, so I really would be happy to find way to use them.

 

Thank you for any advice.

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@tomaskutac,

Currently, it is not possible to directly import data from CDS view using the built-in SAP HANA connector, regarding to this issue, you can sumit a feature request in Power BI ideas forum: https://ideas.powerbi.com/forums/265200.

However, CDS Views can be easily exposed as oData Service(API) which can then be utilized to fetch data out from SAP S/4HANA Cloud. 
You can use OData feed connector in Power BI Desktop to connect to import data from CDS view.

There are some blogs for your reference:
https://blogs.sap.com/2018/01/23/create-cds-views-in-sap-s4hana-cloud-and-consume-them-as-apis/
http://tiven.wang/articles/cds-to-odata-for-analytics

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@tomaskutac,

Currently, it is not possible to directly import data from CDS view using the built-in SAP HANA connector, regarding to this issue, you can sumit a feature request in Power BI ideas forum: https://ideas.powerbi.com/forums/265200.

However, CDS Views can be easily exposed as oData Service(API) which can then be utilized to fetch data out from SAP S/4HANA Cloud. 
You can use OData feed connector in Power BI Desktop to connect to import data from CDS view.

There are some blogs for your reference:
https://blogs.sap.com/2018/01/23/create-cds-views-in-sap-s4hana-cloud-and-consume-them-as-apis/
http://tiven.wang/articles/cds-to-odata-for-analytics

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors