I need to create a program, which resides on the client PC, gets executed from SAP LOGON, receives some RFC requests, returns data and terminates.
I've been following this tutorial on how to implement a JCo server:
https://blogs.sap.com/2017/08/25/sap-jco-server-example/
I configured the JCo connection properties according to the tutorial. My program gets executed, but SAP fails to send any RFC requests to it and ends on a timeout.
I noticed that my program gets executed with the following arguments:
/H/gd9.company.com, sapgw02, 87945336, IDX=4
I guess this is SAP telling me configuration values for the RFC connection. I mean, I shouldn't have them static (like in the configuration file in the tutorial), but rather use the values from the arguments.
The first one should be the host (jco.server.gwhost
), although I don't understand why its prep-ended with /H/
. She second one is probably jco.server.gwserv
.
But what are the other two parameters? Should I use them to configure the RFC connection in some way?