Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

olsonperrensen commented Jun 17, 2022

Hi, could you please provide me a mirror link for nwrfc750P? I can't access it. Thank you!

@auriza
Copy link
Author

auriza commented Jun 21, 2022

Hi, could you please provide me a mirror link for nwrfc750P? I can't access it. Thank you!

You have to have SAP ID to access it.

@olsonperrensen
Copy link

olsonperrensen commented Jun 22, 2022

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.

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