SAP Datasphere & Python: One-Click Data Export Solution

Tuesday, Aug 19, 2025 2:32 am ET1min read

A Python script has been developed to connect to SAP Datasphere, run queries on each view from a list, and save the results as Excel files in a local drive path. The script requires the hdbcli, sqlalchemy, and sqlalchemy-hana packages to be installed. A database user must be created in SAP Datasphere with read access, and the host, port, username, and password must be copied. The script then loops through each view in the view list, executes the SQL query, fetches the results, and converts them to a DataFrame, which is then saved as an Excel file.

SAP Datasphere & Python: One-Click Data Export Solution

Comments



Add a public comment...
No comments

No comments yet