Skip to Content
0
Former Member
May 19, 2010 at 12:25 PM

How do you use the EP's System Connection in Java with JCo?

31 Views

Hi all gurus!

I'm trying to create an IDoc in an iView and for this I use the java class JCO to get a client and this client is then operated with "send" and "confirmTID", all done with this example as a template:

Idoc receving errors

The forum thread regards an error due to erroneous JCO version, but I have copied the code and made a running example. The problem is that the example creates a connection via this code (obfuscated data):

JCO.addClientPool("MyIDocPool", 3, "400", "<username>", "<pwd>", "EN", "<host IP>", "00");

I want to use the System Connection I have in the portal. When you use that, you get an IConnection with which you can operate remote enabled function modules in the SAP system.

But how do you combine the System Connection and the JCO used for the IDoc creation in the java class?

Regards

Benny