OpenERP can connect to SAP through the RFC gateway using sapnwrfc (SAP NetWeaver R/3 RFC Connector for Python)
The below tutorial is based on the experiance in configuring sapnwrfc in ubuntu 10.04 . There might be changes in other distros and versions. Its is assumed that the commands given below will be run as root user.
You have to download the following
Extract the SDK which will be something like NWRFC_1-20004565.SAR using sapcar (SAPCAR-32bit.exe) You will get a folder named nwrfcsdk.
Create a folder /usr/sap and copy this folder(nwrfcsdk) to it.
Now create a file sap.conf(name can be anything ending with .conf) under the directory /usr/sap/nwrfcsdk/lib
To load the libraries run
SAP RFC Gateway will listen on port 3300 by default. If not check on which port it is listening.
Make sure you can reach the port on sap server. For example check if you can connect telnet to it by
Install PyYAML
Extract sapnwrfc, and change directory to the extracted folder and install sapnwrfc
Make sure this finishes with no errors.
Now everything is ready to connect to SAP.
Check the examples coming with sapnwrfc(folder examples). The examples check for the configuration file inside the directory examples/examples. So you have to create a directory examples(mkdir examples/examples) and create a yml file with the connection settings similer to the sap.yml file given in examples.
Tags: Integrating OpenERP and SAP, synchronizing OpenERP and SAP, OpenERP, SAP, sapnwrfc , connecting to SAP using python, connecting to SAP RFC gateway from linux, SAP and python
Andrew Stephan: nice info though I could search it in Internet. But it is incredible that this was successfully implemented. It will give confidence to existing SAP users to connect to OpenERP (which is really a fantastic open source ERP) and save the additional license costs for their enhancement requirements..!! ".
Leave a Reply