Skip to Content
0
Former Member
Apr 06, 2011 at 04:04 PM

SAP Connector 3.0, Specify Port

956 Views

Hi all,

I am starting a new project that requires using the SAP connector 3.0 to make RFC calls. However, the system is running on port 3350 instead of 3300. Does anyone know how to make this work? I have tried the following below without success:

static void Main()
{
     RfcDestinationManager.RegisterDestinationConfiguration(new SAPConfiguration());
     var destination = RfcDestinationManager.GetDestination("thesystem");

     var repo = destination.Repository;
}

public class SAPConfiguration : IDestinationConfiguration
    {
        public RfcConfigParameters GetParameters(string destinationName)
        {
            var parms = new RfcConfigParameters();
            if (destinationName == "thesystem")
            {
                parms.Add(RfcConfigParameters.AppServerHost, "55.55.55.55:3350");  // not the real ip, obviously
                parms.Add(RfcConfigParameters.SystemNumber, "ABC");
                parms.Add(RfcConfigParameters.User, "username");
                parms.Add(RfcConfigParameters.Password, "password");
                parms.Add(RfcConfigParameters.Client, "100");
                parms.Add(RfcConfigParameters.Language, "EN");
                parms.Add(RfcConfigParameters.PoolSize, "5");
                parms.Add(RfcConfigParameters.MaxPoolSize, "10");
                parms.Add(RfcConfigParameters.IdleTimeout, "600");
            }

            return parms;
        }
   ....
}

But receive the following error:

LOCATION CPIC (TCP/IP) on local host with Unicode

ERROR hostname '55.55.55.55:3350' unknown

TIME Wed Apr 06 11:33:58 2011

RELEASE 720

COMPONENT NI (network interface)

VERSION 40

RC -2

MODULE ninti.c

LINE 895

DETAIL NiPGetHostByName: '55.55.55.55:3350' not found

SYSTEM CALL getaddrinfo

COUNTER 2

Any ideas?

Thanks!!