cancel
Showing results for 
Search instead for 
Did you mean: 

Problem connecting through RFC with fully qualified domain name

Former Member
0 Kudos

I am using the .NET Connector and RFC to call a BAPI

I use a fully qualified domain name in the form <DOMAIN>\<HOST>

The RFC seems to have problems with this form of address. It produces the following execption in my .NET code.

SAP.Connector.RfcCommunicationException: Connect to SAP gateway failed

LOCATION CPIC (TCP/IP) on local host

ERROR hostname 'DOCUNET_AG\DWSAP' unknown

TIME Mon Feb 05 11:57:20 2007

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -2

MODULE ninti.c

LINE 329

DETAIL NiPGetHostByName2: hostname 'DOCUNET_AG\DWSAP' not found

SYSTEM CALL gethostbyname_r

ERRNO 11004

ERRNO TEXT WSANO_DATA: Valid name,

at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo

, Encoding encoding, String languangeCode)

at SAP.Connector.SAPConnection.Open()

What can I do that I am able to use a fully qualifies domain name in this way?

Thank you very much for your answers.

Mirco

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi Micro,

how are you doing ?

to use the domain & server name you need to use :

microserver.microdomain.com

where

microserver : your server

microdomain.com : your domain as defined by the domain controller [DC]

a simpler way is to use the IP address of microserver

e.g. : 10.8.1.64

with respect,

amit

Former Member
0 Kudos

Hi Mirco,

Check the SAP Server availability and connection parameter. This could be one of the reason of SAP gateway failed and prefer to give the ip of ASHOST instead of name.

Regards,

+Naren

Former Member
0 Kudos

Hi Micro,

The FQDN (Fully Qualified Domain Name) should be in the format of

<Host-name>.<Domain-name>

Hope it helps.

Regards,

Maheswaran.B

0 Kudos

Hello Mirco,

it seems that SAP-Connector needs TCPIP-Communication in that way a NETBIOS can't transformed in a valid hostname. Ask your Administrator for the qualified Internet/TCPIP Hostname or IP-Address.

HTH.

Holger

0 Kudos

Hi Mirco,

additional to my first reply, open a shell window and type

<b>

ping <computername>

</b>

or

<b>

ping -a <ipaddress>

</b>

so you should get the full qualified name for the host.

Regards

Holger