- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can i install pyrfc library in Fabric notebook
Can I install the Pyrfc library in fabric notebooks?
To establish a connection
between SAP ECC and Fabric notebooks to read tables from SAP ECC and load them into one lake house
by using this code
# Define SAP ECC connection parameters
sap_connection_params = {
'user': 'your_username',
'passwd': 'your_password',
'ashost': 'your_sap_host',
'sysnr': 'your_system_number',
'client': 'your_client_number',
'lang': 'EN'
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @sreekanthreddy,
Spark in Fabric supports installing new libraries and working with them. But from the Github URL of the package (https://github.com/SAP-archive/PyRFC), I see that it is no longer maintained. And also it asks for Cython to be installed in the environment for using it. (there is a possibility you might have to build it from source). It would be difficult to setup Fabric Spark environment with all the pre-requisites to use PyRFC.
Apart from that, your Fabric environment should be configured to be in the same network as your SAP ECC network, so that when the script runs, it can access your SAP machine.
https://learn.microsoft.com/en-us/fabric/security/security-managed-vnets-fabric-overview
Considering the effort to setup and the complexity of maintaining this, I would recommend using an ETL tool that supports SAP connector to bring data. Check ADF once where you have the option to connect SAP ECC in different ways.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@sreekanthreddy, as we haven’t heard back from you, we wanted to kindly follow up to check if the solution we have provided for your issue worked? or let us know if you need any further assistance here?
Your feedback is important to us, Looking forward to your response.
Thanks,
Prashanth Are
MS Fabric community support.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@sreekanthreddy, as we haven’t heard back from you, we wanted to kindly follow up to check if the solution we have provided for your issue worked? or let us know if you need any further assistance here?
Your feedback is important to us, Looking forward to your response.
Thanks,
Prashanth Are
MS Fabric community support.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @sreekanthreddy, Thanks for actively participating Fabric community support.
@govindarajan_d, @nilendraFabric Thanks for your promt response.
@sreekanthreddy, as we haven’t heard back from you, we wanted to kindly follow up to check if the solution we have provided for your issue worked? or let us know if you need any further assistance here?
Your feedback is important to us, Looking forward to your response.
Thanks,
Prashanth Are
MS Fabric community support.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @sreekanthreddy,
Spark in Fabric supports installing new libraries and working with them. But from the Github URL of the package (https://github.com/SAP-archive/PyRFC), I see that it is no longer maintained. And also it asks for Cython to be installed in the environment for using it. (there is a possibility you might have to build it from source). It would be difficult to setup Fabric Spark environment with all the pre-requisites to use PyRFC.
Apart from that, your Fabric environment should be configured to be in the same network as your SAP ECC network, so that when the script runs, it can access your SAP machine.
https://learn.microsoft.com/en-us/fabric/security/security-managed-vnets-fabric-overview
Considering the effort to setup and the complexity of maintaining this, I would recommend using an ETL tool that supports SAP connector to bring data. Check ADF once where you have the option to connect SAP ECC in different ways.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you have administrator access, you could potentially create a custom Fabric environment that includes the necessary SAP NWRFC SDK and PyRFC library.
https://learn.microsoft.com/en-us/fabric/data-engineering/environment-manage-library
Pip install wont work in you case because PyRFC requires the SAP NWRFC SDK, which is not pre-installed in Fabric environments. The SAP NWRFC SDK is not publicly available and requires SAP credentials to download

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Fabric Monthly Update - February 2025
Check out the February 2025 Fabric update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
10-23-2024 12:20 PM | |||
01-22-2025 01:44 AM | |||
02-16-2024 03:13 AM | |||
03-04-2025 09:52 AM | |||
12-03-2024 08:54 AM |
User | Count |
---|---|
25 | |
3 | |
3 | |
2 | |
2 |
User | Count |
---|---|
11 | |
8 | |
7 | |
5 | |
5 |