cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect to a SAP System with JCO

Former Member
0 Kudos

Hi!

To connect to SAP via JCO I use the function:

Connection = JCO.createClient(Client, User, Pass, Lang, Host, Id);

Connection.connect();

Now my question:

Is there a different/better way where I do not have to provide the Host, Id... Is it possible to use a kind of saprfc.ini or the saplogon.ini mechanism to get this information like it is in C using the librfc32.dll?

Thanks,

Konrad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi konrad,

perhaps you can make use of the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/17/d609b48ea5f748b47c0f32be265935/content.htm">Destination Service</a>

or use the method <a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/jc/com/sap/mw/jco/JCO.html#createClient(java.util.Properties)">JCO.createClient(Properties properties)</a>.

please refer to the links for details.

regards

jo

Former Member
0 Kudos

Shame on me!

I did the logon with a property file already ;-). Simply forgot it...

Thanks anyway,

Konrad

Answers (0)