Call RFM with destination host through PyRFC #335
Answered
by
unitythemaker
unitythemaker
asked this question in
Q&A
-
We have a SAP system that consists of 5 instances. We are using the RSAU_READ_LOG function module for fetching the SAL logs. We need the functionality that should provide using this RFC with For example: result = conn.call('RSAU_READ_LOG', \
DESTINATION = <sap instance name> # we need something like this
# ... |
Beta Was this translation helpful? Give feedback.
Answered by
unitythemaker
Sep 5, 2023
Replies: 1 comment 1 reply
-
Can you create local sapnwrfc.Ini file, define destinations there and open client connections like. client = Connection(dest="mySystem") See also |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, actually we are developing an automated pentesting toolchain and unfortunately I prefer not to access local files.
I am currently handling connections by getting the system parameters from a database. A web UI interacts with the database to save/edit the system parameters.
However, I think I will just go with the way of retrieving the systems with
TH_SERVER_LIST
then callingRSAU_READ_LOG
with each of the servers by creating a connection from just changing theASHOST
andSYSNR
(the last 2 chars in the name of the instance).