This is a collection of my notes and code snippets.
I work with SAP on Windows 10 with SAP GUI for Windows 7.50.
On my work account I don't have administrative rights and access to SAP NetWeaver RFC SDK.
If you have questions, please contact me:
- Email: {github account}@gmail (dot) com
- LinkedIn: https://www.linkedin.com/in/alekczapski/
Because I don't have access to SAP NetWeaver RFC SDK, I am using a 32-bit sapnwrfc.dll library provided with SAP GUI installation, which forces me to use a 32-bit version of PyRFC. PyRFC in compiled 32-bit version is only available for Python 2.7.
I install this way because a normal installation requires admin privileges.
msiexec /a python-2.7.15.msi /qb TARGETDIR=C:\Python27
C:\Python27\python.exe -m ensurepip --default-pip
C:\Python27\python.exe -m pip install --upgrade pip setuptools
C:\Python27\python.exe -m pip install --upgrade pywin32
C:\Python27\Scripts\easy_install.exe https://github.com/SAP/PyRFC/raw/master/dist/pyrfc-1.9.3-py2.7-win32.egg
- Press
Windows logo key + R
and runrundll32 sysdm.cpl,EditEnvironmentVariables
. - Add
C:\Python27
,C:\Python27\Scripts
andC:\Windows\SysWOW64
toPATH
variable.
https://blogs.sap.com/2017/05/15/sap-gui-for-windows-7.50-offers-sapnwrfc-library-version-7.49-pl-0/
https://blogs.sap.com/2017/09/19/how-to-use-sap-gui-scripting-inside-python-programming-language/
https://blogs.sap.com/2014/11/20/scripting-tracker-development-tool-for-sap-gui-scripting/
https://www.stschnell.de/
https://sappython.blogspot.com/
https://stackoverflow.com/questions/26764978/using-win32com-with-multithreading
https://mail.python.org/pipermail/python-win32/2008-June/007788.html
http://wbarczynski.pl/calling-bapis-with-python-and-pyrfc/
https://blogs.sap.com/2016/02/21/how-to-use-actual-sap-netweaver-rfc-library-with-python-call-abap-report/
https://pypi.org/project/robotframework-sapguilibrary/
https://frankvanderkuur.github.io/SapGuiLibrary.html