on 10-12-2007 2:53 PM
Hi all,
I have a java application, which is connecting to sap via Jco. All is working fine, when I´m calling the sap system without a router string. But when I´m outside of the company network, I need a router string. The connection via sap gui is working fine.
I´m doing the following:
String serverParam = "/H/sapgate.de.emea.csc.com/H/"+txtServer.getText();
connection = JCO.createClient(txtClient.getText(), // SAP client
txtUsername.getText(), // userid
"xxx", // password
null, // language
serverParam, // application server
txtSystemNo.getText());
If I´m doing that without the router string inside the company network, everything is alright. If I try it with the router string, I´m getting the following error:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=/H/myRouterString/H/ip, GWSERV=sapgw00, ASHOST=/H/myRouterString/H/ip, SYSNR=00
LOCATION SAProuter 37.9 on svswie003
ERROR timeout occured
Note, that the connection over sap gui and router string is working...
Thank you for your help!
Reward points guaranteed
JCO connection and SAPGui connection are using different ports. I had similar problem.
Ask administrator if proper ports are open. In my case it was port no 3299.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.