on 12-09-2004 8:18 AM
When call SAPProxy function, a SAP.Connector.RfcCommunicationException raised
Please help me to analysis the cause and solution.
My doubt is if the Gateway is indispensible for a .NET Connector function call
Thanks in advance
Detail information:
Exception.Message:
Connect to SAP gateway failed\n
Connect_PM GWHOST=157.55.20.224, GWSERV=sapgw00, ASHOST=157.55.20.224, SYSNR=00\n\n
LOCATION CPIC (TCP/IP) on local host\n
ERROR partner not reached (host 157.55.20.224, service 3300)\n\n
TIME Thu Dec 09 13:13:01 2004\n
RELEASE 620\n
COMPONENT NI (network interface)\n
VERSION 36\n
RC -10\nMODULE ninti.c\n
LINE 979\n
DETAIL NiPConnect2\nSYSTEM CALL SO_ERROR\n
ERRNO 10060\n
RRNO TEXT WSAETIMEDOUT: Connection timed out\n
COUNTER 1\n
The code lines as following:
string cs = "ASHOST=157.55.20.224 SYSNR=00 CLIENT=000 USER=xxxx PASSWD=xxxxxx";
// construct the proxy with connection string
SAPProxy1 proxy = new SAPProxy1(cs);
// create a SAP Table variable
BRFCKNA1Table tblCust = new BRFCKNA1Table();
// call the RFM method on the proxy
try
{
proxy.Rfc_Customer_Get("","A*", ref tblCust);
}
catch(SAP.Connector.RfcCommunicationException exp)
{
MessageBox.Show(exp.Message);
return;
}
There seems to be some(network) problem to connect your SAP server. Try "ping 157.55.20.224". If this works also try "telnet 157.55.20.224 3300".
Might be that your SAP server is behind a SAPRouter. In this case you need to put the SAPRouterString in fron of the ASHOST parameter in connection string.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reiner,
One of my partners are having this problem...
1. They are having a dev server of ip 200.1.12.xx and remote site has network with ip 171.xxx.xxx.xxx
2. Another subsidiary needs to use NCo to access this server
3. They are using two firewalls, one from Buiding A and another in Building B
4. all ports of firewalls are open, there IP mapping from firewall in Building A to IP in firewall in Building B.
5. Building A being the remote building, can log on via SAP GUI, however, unable to connecto via NCo
6. What seems to be the problem and what can I tell the basis guy to check?
How does NCo support firewalls and waht is the best way to work around this?
Your help is much appreciated.
Cheers
RFC (and thus NCo) is just using TCP connection on port 3300+SystemNumber. Best test is allways "telnet <host> <port>". If this works, NCo should work as well.
BTW: SAPGUI is using port 3200SystemNumber. If you use LoadBalancing via Message-Server you also need the MessageServer-Port. This is not fixed, but often it is 3600SystemNumber.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.