I am faced with the following task. Call a remote-enabled module (ABAP) via RFC using Nifi, pass the required parameters and write the results away. My idea is to do the whole thing via pyrfc https://sap.github.io/PyRFC/intro.html . How would you do that? Any experience?
You have to use the PyRFC and SAP NW RFC SDK.
Let us assume I like to call the function module STFC_CONNECTION:
from pyrfc import Connection conn = Connection(ashost='123', sysnr='00', client='100', user='user', passwd='secret') conn.call('STFC_CONNECTION', REQUTEXT=u'Hello SAP!')
I have created an Anaconda environment to have the libraries I need. Currently I am still waiting for the SAP NW RFC SDK. Would it work like this?