cancel
Showing results for 
Search instead for 
Did you mean: 

Is it impossible to connect by client when connecting SAP in SAP Registered Server Program?

leeyk
Explorer
0 Kudos
287

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)

leeyk_0-1723525822334.png

 

jco_31_documentation.pdf 

leeyk_2-1723525969565.png

For example, is there no option like jco.server.clientno?

Thank you, and have a nice day.

 

 

 

leeyk
Explorer
0 Kudos
I understand that this is not possible. cross-client
View Entire Topic
HAL9000
Product and Topic Expert
Product and Topic Expert

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.

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

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");