Skip to Content
0
Sep 02, 2021 at 08:45 AM

SAP ME connection to ERP system

158 Views

Hello,

I'm currently devloping custom business logic in SAP ME SDK and I need some information from the ERP system.

I'd like to use the JCo to connect to the ERP system and then execute an RFC call to retrieve the necessary information.

In SAP ME there is a library available to open a connection via JCo (com.sap.mw.jco).

As far as I know there are two ways for opening the connection:

1) Manually establish connection and execute RFC call (I know how this works)

2) Using the system connection pool, which also handles connections from MII to ERP system (I have no idea how to do this or where to find specification regarding this topic)

I'd appreciate some help and code snippets to demonstrate how this can be done. Especially for the second point (if it is possible at all).