I have to connect to SAP R/3 system from a standalone Java application using JCo3.0. As per my understanding, there are 2 ways to connect with SAP system:
- JCo Client
- JCo Server
Now my application sends and receives data from SAP system. Do I need to use JCo Client/Server?
The 2 ways to connect to an SAP on-premise system via the RFC protocol are:
For inbound RFCs you need to use a
JCoDestination
for executing a remote function module at ABAP side. For outbound RFCs you need to register aJCoServer
at the SAP gateway which will then receive incoming requests from ABAP side in order to process a remote function module at Java side. In both communication directions there is a request and potentially also a response to this request, so the data flow is usually in both directions, regardless if you are doing inbound or outbound RFC communication. Inbound and outbound just distinguishes who initiates the RFC call.