Skip to content

Instantly share code, notes, and snippets.

@auriza
Last active December 11, 2023 16:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save auriza/8017f2ff54a67fa6776057e195a5d8a7 to your computer and use it in GitHub Desktop.
Save auriza/8017f2ff54a67fa6776057e195a5d8a7 to your computer and use it in GitHub Desktop.
SAP PyRFC

PyRFC on Windows 64-bit

  1. Install Python 3.7 64-bit

  2. Install PyRFC

  3. Install SAP NW RFC Library

  4. Test Installation

    • run python -c "import pyrfc"
    • if no error showed, then the installation succeed, else logout/reboot and try again

Import CSX Project

A. Using Command Prompt

  1. Copy "csx" project to Documents

  2. Create virtualenv

    pip install virtualenv
    cd Documents\csx
    virtualenv venv
  3. Activate virtualenv and install libraries

    venv\Scripts\activate
    pip install ..\..\Downloads\pyrfc-1.9.93-cp37-cp37m-win_amd64.whl
    pip install falcon
    pip install waitress
  4. Run web server

    waitress-serve --port=8000 csx.app:api
  5. Test http://localhost:8000/user_sync/00101343

B. Using PyCharm

  1. Install PyCharm

  2. Open PyCharm

    • create new project: "csx"
    • copy "csx" content to PycharmProjects\csx
    • open terminal tab (Alt+F12), install libraries:
       pip list
       pip install ..\..\Downloads\pyrfc-1.9.93-cp37-cp37m-win_amd64.whl
       pip install falcon
       pip install waitress
       waitress-serve --port=8000 csx.app:api
  3. Test http://localhost:8000/user_sync/00101343

@olsonperrensen
Copy link

I have it, my super admin disabled the Software Downloads capability of my S-ID account.

Do you have the file zipped somewhere that could be transferred over?

Thanks in advance.

@pproyaev
Copy link

the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment