Forum Discussion
Power BI Connect to SAP t-code
I'm looking for a way to connect SAP t-code data to Power BI.
I found a paid connector called DVW Connector, but it's not available due to regulatory restrictions.
1. Directly connecting Power BI and SAP t-code.
2. (Considering) Using Power Automate Desktop to download the t-code Excel file and upload it to Sharepoint.
I'm saving it to SharePoint so I can share it with other team members. I've considered two options, with Option 1 being the most optimal, and Option 2 being considered if Option 1 doesn't work.
I appreciate your feedback and advice. Thank you.
Hii ericjo
Power BI cannot connect directly to an SAP t-code because a t-code is only a front-end transaction, not a data source. Power BI can connect only to SAP backend data such as SAP tables, CDS views, BW queries, or HANA views.If direct access is not allowed, a workaround is using Power Automate Desktop to run the t-code, export data to Excel, save it to SharePoint/OneDrive, and then connect Power BI to that file but this is not recommended for enterprise use.
8 Replies
- rohit1991Super User
Hii ericjo
Power BI cannot connect directly to an SAP t-code because a t-code is only a front-end transaction, not a data source. Power BI can connect only to SAP backend data such as SAP tables, CDS views, BW queries, or HANA views.If direct access is not allowed, a workaround is using Power Automate Desktop to run the t-code, export data to Excel, save it to SharePoint/OneDrive, and then connect Power BI to that file but this is not recommended for enterprise use.
- ericjoHelper III
Thank you for your reply. Is this not recommended for security reasons in a corporate environment?
- rohit1991Super User
Hii ericjo
Yes. It is not recommended in a corporate environment mainly due to security, stability, and governance concerns. Power Automate Desktop relies on SAP GUI automation, which requires user credentials, has no row-level security enforcement, is prone to breaking when SAP screens change, and is difficult to audit or support at scale.For enterprise scenarios, accessing SAP backend tables, CDS views, BW queries, or HANA views is the secure and supported approach.
- cengizhanarslanSuper User
Power BI cannot connect directly to an SAP t-code. A t-code is just a transaction UI, not a data source. You must connect to the underlying SAP data layer or extract the data first.
Best option would be connecting Power BI to SAP data sources (not t-codes).
Depending on your SAP landscape:
SAP ECC
SAP ERP Connector (tables, function modules)
SAP BW Connector (recommended if BW exists)
SAP OData services (if exposed)
SAP S/4HANA
SAP HANA Connector
OData / CDS Views (best modern option)
- ericjoHelper III
Thank you for sharing the various methods. I should have mentioned this in the main text, but there's a rule that prevents direct connection to the original SAP data. I was looking for a way to connect using the provided t-code. Using BW would have been ideal, but I'm not currently using BW, so I'll have to look into other methods.
- kushanNaSuper User
Hi ericjo
I’m not familiar with the SAP system, but to offer a suggestion, how about extracting the data using another method, such as Python (for example: https://www.youtube.com/watch?v=3DpUHmrxpZ4),
and then pushing the data to a data source that Power BI can access?
- v-ssriganeshCommunity Support
Hi ericjo,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to kushanNa, rohit1991 & cengizhanarslan for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.