Questions tagged [pyrfc]

The pyrfc Python package provides Python bindings for SAP NetWeaver RFC Library, for a comfortable way of calling ABAP modules from Python and Python modules from ABAP, via SAP Remote Function Call (RFC) protocol.

The pyrfc Python package provides Python bindings for SAP NetWeaver RFC Library, for a comfortable way of calling ABAP modules from Python and Python modules from ABAP, via SAP Remote Function Call (RFC) protocol. https://github.com/SAP/PyRFC

70 questions
38
votes
7 answers

Query SAP database from Python?

Can Python be used to query a SAP database?
ilya n.
  • 18,398
  • 15
  • 71
  • 89
11
votes
2 answers

Chunking big datasets in PyRFC. Possible?

Is there a way to do "chunking" of big results into several smaller parts with SAP-RFC? According to these links it seems like you need to implement chunking yourself…
guettli
  • 25,042
  • 81
  • 346
  • 663
7
votes
1 answer

List allowed methods while connecting via RFC?

I can connect as user "foo" with password "bar" via SAP RFC from my machine to the SAP server. Is introspection possible via SAP RFC? I would like to know which methods user "foo" is allowed to execute. I am using PyRFC, but AFAIK this should not…
guettli
  • 25,042
  • 81
  • 346
  • 663
5
votes
5 answers

Standard deep nested data type?

I took the nice example clientPrintDescription.py and create a HTML form from the description which matches the input data types for the particular RFC function. In SAP data types can contain data types which can contain data types, and I want to…
guettli
  • 25,042
  • 81
  • 346
  • 663
5
votes
2 answers

Get stacktrace of errors from PyRFC call?

Up to now I get only an error message if something inside my SAP RFC function is wrong pyrfc._exception.ABAPRuntimeError: RFC_ABAP_MESSAGE (rc=4): key=No authorization, message=No authorization [MSG: class=00, type=E, number=001, v1-4:=No…
guettli
  • 25,042
  • 81
  • 346
  • 663
4
votes
3 answers

Max no of 200 conversations exceeded error in PyRFC

I am getting this error from the PyRFC library: Traceback (most recent call last): ... File "/.../sap_connection.py", line 486, in get_connection return Connection(**get_connection_dict(contact_host)) File "src/pyrfc/_pyrfc.pyx", line 182,…
guettli
  • 25,042
  • 81
  • 346
  • 663
4
votes
1 answer

integration between Python 3.6 and SAP

I am very new to python, I got a task to pull data into python from SAP system. I am following the below link for connections, but it's not working in my landscape. Also, my question is can I connect python 3.6 clients to SAP…
user9287179
4
votes
2 answers

Python 3.6 pyrfc ImportError

I have VM win7 x64, Python 3.6 and I'm trying to install pyrfc SAP connector. I have installed NWRFC library, set it in PATH variable, installed egg pyrfc-1.9.5-py3.5 with easy_install, and installed Visual c++ redistributable 2015 (x64) 14. But…
Yuliya
  • 163
  • 1
  • 2
  • 6
4
votes
1 answer

Open SQL condition in RFC_READ_TABLE call via PyRFC

How do I specify the Open SQL WHERE clause in an RFC_READ_TABLE query using PyRFC? I'm trying to get started with PyRFC to have python do table extractions from SAP (in the absence of a supportive/cooperative basis team). In this example from…
cowbert
  • 3,212
  • 2
  • 25
  • 34
3
votes
1 answer

Unable to install PyRFC-2.0.4

I am trying to connect SAP with python with the help of PyRFC. I am referring to this guide https://blogs.sap.com/2020/06/09/connecting-python-with-sap-step-by-step-guide/ for making a connection. However, I am unable to install PyRFC in my system.…
Lovepreet Singh
  • 321
  • 1
  • 7
  • 16
3
votes
1 answer

Return binary data via RFC

I want to return binary data in ABAP, for example a PNG image file. Which data type should I use? string, xstring, ...? I use the PyRFC SDK: https://github.com/SAP/PyRFC
guettli
  • 25,042
  • 81
  • 346
  • 663
3
votes
1 answer

Data gets truncated in SAP RFC

I have a big string containing 400 MByte JSON data in rfc function module. See debugger: Unfortunately my pyRFC client only receives roughly 34 MByte. Where and why does my data get cut? Is this a well known limitation of sap-rfc? Strange but true,…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
1 answer

Is it possible to install pyRFC onto a Databricks Spark cluster?

There is a Py-pi for pyRFC, but like all other C-python libraries, it has a lot of dependencies, and requires the setting of environment variables, etc. Is it possible to install a c-python library like pyRFC onto a Databricks cluster? If so, how…
2
votes
1 answer

Error when importing pyrfc - symbol not found in flat namespace '_RfcAppendNewRow'

I have a problem using the pyrfc (2.5.0) library to collect data from SAP. I installed this library via pycharm and also manually with pip and in both cases the installation is successful. Problem arises when importing the…
2
votes
1 answer

Issue ingesting RAW datatype column using PyRFC

I'm running into an issue dealing with RAW datatype column when pulling data from SAP using PyRFC. Below is the screenshot of the metadata and how the data looks in SAP GUI. Below is the snippet of the code I'm running to pull this column. with…
P Raju
  • 329
  • 2
  • 14
1
2 3 4 5