2024 Aug 13 6:16 AM - edited 2024 Aug 13 6:40 AM
hello everyone, I'm asking you because I'm curious conceptually.
Is it impossible to connect by clients when connecting SAP in SAP Registered Server Program?
I want to split SAP into clients and use it.
At this time, I would like to connect the service to each client that is separated.
For example, service A wants to connect to client number 100 only
It was also connected to client 200.
I'm asking if it's a fundamental way to do it because I can't find anything related in the reference document.
ex)
jco_31_documentation.pdf
For example, is there no option like jco.server.clientno?
Thank you, and have a nice day.
No, there are no client dependent RFC server registrations - not even SAP system dependent ones.
RFC request dispatching for registered servers is only done via gateway host and program ID parameters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
However, as a "workaround", you could implement this requirement yourself in your JCo Server Program:
JCo passes an object of type "JCoServerContext" into your function handler method. By using a code snippet like the following, you can check the client, from which the RFC request is coming, and if it doesn't come from the "allowed" client, abort the call by throwing a JCoException with error code JCO_ERROR_SYSTEM_FAILURE or something like that:
JCoAttributes attr = serverContext.getConnectionAttributes();
String client = attr.getClient();
if (!client.equals("100"))
throw new JCoException(JCO_ERROR_SYSTEM_FAILURE, "Only calls from client 100 allowed");
User | Count |
---|---|
72 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.