Skip to content

Instantly share code, notes, and snippets.

@asiellb
Forked from auriza/pyrfc-win10-64.md
Created April 24, 2021 23:00
Show Gist options
  • Save asiellb/9782bbf8743676a6e9c77ad2bfedeb2a to your computer and use it in GitHub Desktop.
Save asiellb/9782bbf8743676a6e9c77ad2bfedeb2a 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

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