cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
Microsoft
Microsoft

@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
Microsoft
Microsoft

@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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors