cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tomaskutac Frequent Visitor
Frequent 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

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: Connecting to predefine SAP HANA CDS views

@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.
1 REPLY 1
Moderator v-yuezhe-msft
Moderator

Re: Connecting to predefine SAP HANA CDS views

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