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
0
votes
2 answers

Correct message server port (msserv)?

How to determine the correct port for the msserv connection parameter? According to the docs of RfcOpenConnection : msserv is only needed, if the service of the message server is not defined as sapms in /etc/services. In my case I run a standard…
guettli
  • 25,042
  • 81
  • 346
  • 663
0
votes
1 answer

PyRFC: Connect via mshost (not ashost)

I would like to use PyRFC to do remote procedure call on SAP using the Python programming language. conn = pyrfc.Connection(user='foouser', passwd='xxxx', mshost='sap.example.com', sysid='TE1', client='220', group='EXAMPLE', ) But it…
guettli
  • 25,042
  • 81
  • 346
  • 663
0
votes
2 answers

WSAECONNREFUSED: Connection refused while establishing connection via PyRFC

I chosen PyRFC library to fulfill the task of connecting to SAP from Python. Everything is normal except the connection. The code stops and displays error message when it connects to SAP. import pyrfc def get_connection(connmeta): print('Connecting…
Chris LIU
  • 11
  • 2
0
votes
3 answers

Old ABAP code still active for PyRFC even after TR was imported. Why?

I changed an ABAP RFC module in a SAP system X and transported the changes the Y. Now when I call the RFC SAP stills executes the old code. I compared both versions from X and Y with a diff tool and found no differences, so it looks like the changes…
guettli
  • 25,042
  • 81
  • 346
  • 663
0
votes
1 answer

Import error while calling from IIS hosted .NET Core API

I am facing the below issue while running a python script from a .NET Core api which is hosted in windows server IIS .I am using pyrfc 1.9.5 SAP connector in this script. Here is the code below from pyrfc import Connection def…
Niladri
  • 5,832
  • 2
  • 23
  • 41
0
votes
2 answers

Timeout during allocate while making RFC call

I am trying to create a SAP RFC connection to a new system. AFAIK the firewall (in this case to port 3321) is open. I get this message at the client: RFC_COMMUNICATION_FAILURE (rc=1): key=RFC_COMMUNICATION_FAILURE, message= LOCATION SAP-Gateway…
guettli
  • 25,042
  • 81
  • 346
  • 663
0
votes
0 answers

Python script to call an ABAP functional module to dump data in Hana table?

I need to connect to an ABAP Functional module using python to extract data from a table and dump it into another HANA table .How to call the RFC using pyrfc module ? what is the syntax ? I dont find clear explanation in any forum .
0
votes
1 answer

Pyrfc: RFCTable type TBL1024

To upload a PDF binary file to SAP I can use an RFC function module. This FM requires two specific parameters: IC_ARC_OBJECT = the document class to define the mime type in SAP (OAC2) IN_CONTENT_LENGHT = IMPORTING data type, is the size of the…
-1
votes
4 answers

Make SAP Report available via RFC

One customer wants to access a SAP report via RFC. Steps: Third party application connects to SAP via RFC RFC call gets transmitted SAP runs the report SAP returns the report. How can this be implement the part inside SAP? I am using PyRFC as…
guettli
  • 25,042
  • 81
  • 346
  • 663
-3
votes
2 answers

SAP RFC GUI capable?

According to a comment in this question. SAP RFC is GUI capable: Why is r_data_line_descr of cl_salv_bs_runtime_info=>get_data_ref() not bound? Where can I find more information about this feature of SAP RFC? Quoting above comment: moreover RFC is…
guettli
  • 25,042
  • 81
  • 346
  • 663
1 2 3 4
5