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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
psathanapal
Frequent Visitor

How can we call SAP HANA Stored Procedure in power bi

Hello Team,

How can we call SAP HANA Stored Procedure in power bi. below is call statement with parameters.

call "Test"."Self.CONTRACT::Procedure"('PROD01624','Where-Used')

 

 

psathanapal_0-1667923052290.png

 

but facing below issue. how can i use this in power bi

need your help on this... 

psathanapal_1-1667923152784.png

 

 

Thanks,

Prashanth.

 

7 REPLIES 7
Anonymous
Not applicable

Hi dear, I solved it by creating an ODBC connection in Power BI, for this to work you need to have the proper driver installed and configured.

 

I share the procedure I did:

 

I use this connection string:

 

currentschema=NAMEDB;driver={HDBODBC};serverdb=NAMEDB;servernode=IPSERVER:30015 

NOTE: If it doesn't work with the server ip, you can try putting the server name in the connection string.

 

https://www.youtube.com/watch?v=yxr7Gmpw59g 

Thanks Julian,it worked for me...

now iam trying to bind a slicer field to parameter . as shown below screen. so that user can dynamically select the input value(it will directly hit to my mquery).

below is screen from google.

psathanapal_0-1668146117043.png

 

but i tried to do bind parameter in my power bi desktop. iam not able to see that bind option.

below is my screen. where i can see bind to parameter option.

please help me on this... 

psathanapal_1-1668146409008.png

 

version iam using is shown in below screen

psathanapal_2-1668146491045.png

 

 

 

Anonymous
Not applicable

Hi dear, 

 

I don't know how to do it, but I found this, maybe it can help you:

https://learn.microsoft.com/pt-pt/power-bi/connect-data/desktop-dynamic-m-query-parameters 

Anonymous
Not applicable

You were able to solve the problem?

 

I have the same problem 😐:

 

https://community.powerbi.com/t5/Desktop/Error-connecting-stored-procedure-on-the-SAP-HANA-Database/... 

psathanapal
Frequent Visitor

Any one had idea on this issue. if had a solution please let me know

 

Anonymous
Not applicable

Hi @psathanapal ,

 

According to the error I think you may check the grammer near ".".

Please check the blog as below to learn more details about SQL statement in Power BI.

For reference: Execute SQL Server Stored Procedure With User Parameter In Power BI

And you may refer to this offical blog to learn more details about SAP HANA Database Connector.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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