Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Efficient way to call RFC (ABAP)

Highlighted

Efficient way to call RFC (ABAP)

Explorer

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?2019-12-02 16_55_33-ERP RFC.jpg

1 REPLY 1

Re: Efficient way to call RFC (ABAP)

Explorer

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

Flow:

FlowFlowExecuteStreamCommandExecuteStreamCommand

 

Don't have an account?
Coming from Hortonworks? Activate your account here