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

Getting FAGLL03H report using pyrfc

This is a mixed question between SAP and the usage of the pyrfc module. I need to use the FAGLL03H transaction code (tcode) to replicate a G/L report into a database on a daily basis. Now, the thing is that FAGLL03H is not a table per se, but a G/L…
Juan David
  • 2,676
  • 4
  • 32
  • 42
2
votes
0 answers

How to solve RFC_CONVERSION_FIELD error in SAP?

My Python script queries the rows of table AUFK via RFC which have BUKRS=1110, but I get the error: RFC_CONVERSION_FIELD Convertion error "rfc_ucs_to_str" from charset 4110 to charset 4103 (translated from german to english by me) The shortdump…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
1 answer

Meaningful error message for SAPSQL_PARSE_ERROR exception

I wrote a function in ABAP which gets called via SAP pyrfc. If there is a SAPSQL_PARSE_ERROR the RFC caller (the client written in Python) gets a meaningless error message: ABAPRuntimeError: RFC_ABAP_RUNTIME_FAILURE (rc=3): key=SAPSQL_PARSE_ERROR,…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
2 answers

Data structure for key-value list in RFC-enabled function module?

I am writing a new RFC callable function in ABAP which should be able to import a list of key-values mapping. The RFC calling application will use Python with the PyRFC library. I am unsure whether I should create a new custom data structure of if I…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
1 answer

Creating self contained wheel

I try to create a self contained wheel for pyRFC: http://sap.github.io/PyRFC/install.html I have the needed (closed sourced) libraries and header files. Installing pyRFC works, if I copy the libraries and headers to $VIRTUAL_ENV/lib and…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
1 answer

Install NWRFC with PyRFC in Windows

I am trying to install PyRFC with NWRFC SAP library... After a lot of work, and problems, I install everything, but now when I start python import pyrfc I get Traceback (most recent call last): File "", line 1, in File…
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
2
votes
1 answer

SAP RFC server with Python, is it possible?

I have a service that can make SAP RFC requests to some server. Assume that I can not modify this service, but need to handle such requests and process their data. So I want to develop my own server that will process RFC requests, I prefer Python…
Aleksey
  • 147
  • 1
  • 8
2
votes
2 answers

sapnwrfc call always returns None/NULL

I know that the newest library to connect python and SAP is PyRFC, I am using Windows to develop a django app and when I try to install the pyrfc-1.9.3-py2.7-win32.egg that is what corresponds to my system, It gives me error while importing the…
Alex Lord Mordor
  • 2,890
  • 7
  • 27
  • 47
1
vote
1 answer

How to specify table parameters in PyRFC function module call?

I'm using PyRFC to make a RFC call to my client's SAP function module. I've verified that the connection is established and I can call most of the functions with correct outputs, but there is a function module with an import parameter and a table…
saikik123
  • 11
  • 2
1
vote
1 answer

How to collect detailed stack trace for Function Module execution?

Is there a way / tool to collect detailed Stacktrace for SAP Function Module executions? We are seeing intermittent performance issues in an application. It is calling a SAP FM (using PyRFC). This FM itself performs many things - logic, further…
sdas
  • 23
  • 8
1
vote
1 answer

How to check NOT NULL when calling RFC_READ_TABLE?

I am trying to get data by using python connect SAP system. Here I have question about how to filter one specific field IS NOT EMPTY? For example below, how to filter the field QNAME is not empty. In SAP, we can easily set. Thanks a lot! table =…
felix12
  • 11
  • 4
1
vote
1 answer

Which BAPI to use to update ADRC table?

Is there any way to write or insert data into ADRC table by using BAPI from outside the SAP?
1
vote
0 answers

PyRFC how to download data from SAP based on list of values

I am able to connect to SAP and download data from table successfully. However I need to download data based on a list of values. Defining one value for OBJNR is OK. # Choose your fields and table fields = ['KOKRS', 'PERIO', 'OBJNR', 'GJAHR'] table…
1
vote
1 answer

SAP BW Data Extraction using pyRFC fails with character limitation on Command text

Environment: Windows Programming language: Python Package: pyRFC SAP: SAP RFC SDK I am trying to call the following method BAPI_MDDATASET_CREATE_OBJECT after connecting to the BW through the object bwConn bwConn.call('BAPI_MDDATASET_CREATE_OBJECT',…
Ranjith Venkatesh
  • 1,322
  • 3
  • 20
  • 57
1
vote
2 answers

How to update email with BAPI_USER_CHANGE in pyrfc?

I was able to write the code to get the details from SAP thru BAPI_USER_GET_DETAIL, here is attached code to get the email from SAP backend: import pyrfc from pyrfc import Connection setup= pyrfc.Connection(user=X , passwd=Y , mshost=Z , sysid=A ,…
Sapta619
  • 9
  • 7