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?
![2019-12-05 14_31_33-_C__Users_maebert_Desktop_nifi workplace_nifi-1.10.0-dev_demo_script_call_rfc.py.jpg 2019-12-05 14_31_33-_C__Users_maebert_Desktop_nifi workplace_nifi-1.10.0-dev_demo_script_call_rfc.py.jpg](https://community.cloudera.com/t5/image/serverpage/image-id/25622iA4A0171627B45475/image-size/large?v=v2&px=999)
Flow:
Flow
ExecuteStreamCommand