SAP - StartRFC partner not reached

Posted on 2009-02-09
Last Modified: 2012-05-06
I am trying to connect to an SAP server through StartRFC.exe.  It is called from a custom commandline app and the parameters are passed through a config file.  We have two servers setup; one for development and QA and the other is production.  

The purpose of calling StartRFC is to load an idoc file into SAP.  The file is copied from our windows box to the unix box containing SAP through samba.  Once the file is copied startrfc is invoked from the windows box.  

Now on the develompent server we do not have any issues but, when we switch over to production we have connection issues.  The following is the error msg:

RFC Call/Exception: open
Group       Error group 102
Message     Connect to SAP gateway failed
Connect_PM  DEST=PRD, GWHOST=ourserver, GWSERV=sapgw00, ASHOST=ourserver, SYSNR=02

LOCATION    CPIC (TCP/IP) on local host
ERROR       partner not reached (host ourserver, service 3300)

TIME        Mon Feb 09 10:44:48 2009
RELEASE     620
COMPONENT   NI (network interface)
VERSION     36
RC          -10
MODULE      ninti.c
LINE        976
DETAIL      NiPConnect2
ERRNO       10061
Question by:ButtonDownBobby
    1 Comment

    Accepted Solution

    Found out what was going on here.  In the StartRFC.exe parameter there is a one parameter "-x" which is "gateway service" The "service definition name" was pointing to a port number that was not being used.  Instead another port number was assigned to accept the remote commands.  The one that was correct had it's own "service definition name" and all we had to do was change it in the parameters.  I had one of our unix guys who had access to the box go through this for me so i'm a little lite on the details here.  He did mention he had a script that mapped a process to the port and found out that the port # in the error did not match the port that was discovered.  Hope this helps someone else.

    Featured Post

    NetScaler Deployment Guides and Resources

    Citrix NetScaler is certified to support many of the most commonly deployed enterprise applications. Deployment guides provide in-depth recommendations on configuring NetScaler to meet specific application requirements.

    Join & Write a Comment

    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now