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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ozmike
Resolver I
Resolver I

Using Source = SapHana.Database(ServerName ,Query ),

Hi does anyone know how to select from using this method?

 

SapHana.Database(ServerName ,Query ),

 

 

 

 

 

 

1 ACCEPTED SOLUTION

let
Source = SapHana.Database("myhanaserver:12345",
[Query="select ""mycolumn"" from ""ZXXX.ZXXX_REP.bp::BPAddresses2"""])
in
Source

 

 Note the above syntax will work..

 

If you get this error

DataSource.Error: ODBC: ERROR [S1000] [SAP AG][LIBODBCHDB DLL][HDBODBC] General error;260 invalid column name: Business Partner: line 1 col 8 (at pos 7)
Details:
    DataSourceKind=SapHana
    DataSourcePath=xx:123
    OdbcErrors=Table

 

 Note SAP hana internal names don't have spaces so

 

""my column"" should be ""mycolumn""

 

This is because Power Bi displays the SAP HANA column "label" not the column name, so you may need to ask a SAP hana developer the actual column name its not always a simple case of removing spaces.

 

Does anyone know if you can select form the system catalogs to get the real column names? and what is the HANA SQL?

View solution in original post

3 REPLIES 3
dexterz
Helper II
Helper II

you should create sap hana info-view

Sorry don't have write access to SAP-HANA..

 

Thats why I need this method..

let
Source = SapHana.Database("myhanaserver:12345",
[Query="select ""mycolumn"" from ""ZXXX.ZXXX_REP.bp::BPAddresses2"""])
in
Source

 

 Note the above syntax will work..

 

If you get this error

DataSource.Error: ODBC: ERROR [S1000] [SAP AG][LIBODBCHDB DLL][HDBODBC] General error;260 invalid column name: Business Partner: line 1 col 8 (at pos 7)
Details:
    DataSourceKind=SapHana
    DataSourcePath=xx:123
    OdbcErrors=Table

 

 Note SAP hana internal names don't have spaces so

 

""my column"" should be ""mycolumn""

 

This is because Power Bi displays the SAP HANA column "label" not the column name, so you may need to ask a SAP hana developer the actual column name its not always a simple case of removing spaces.

 

Does anyone know if you can select form the system catalogs to get the real column names? and what is the HANA SQL?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.