cancel
Showing results for 
Search instead for 
Did you mean: 

How to use sapLogonDestination - saplogon.ini in .Net

Former Member
0 Kudos

I have installed SAP-Gui and setup valid Connections in it.

These connection were setup by using a saprouter.ini (wich has been supplied by the administrator) file and selecting a router, a system-id x26 and the messageserver x26Z. With these settings I created a new LogonGroup ZZXXYY. these Settings are working in SAP-Gui but not in .Net.

I get the following Error:

SAP.Connector.RfcCommunicationException: Connect to message server failed

Connect_PM MSHOST=x26Z, R3NAME=x25, GROUP=ZZXXYY

LOCATION CPIC (TCP/IP) on local host

ERROR hostname 'x26Z' unknown

TIME Wed Mar 30 14:25:49 2005

RELEASE 620

COMPONENT NI (network interface)

VERSION 36

RC -2

MODULE ninti.c

LINE 385

DETAIL NiPHostToAddr

SYSTEM CALL gethostbyname

COUNTER 1

Does the Connector use the routerstring in the background?

I allready added an entry to /etc/services : sapmsx26 3300/tcp.

SAPMSG.ini looks like this:

[Message Server]

x25=x25Z

SAPROUTE.ini looks like this:

[Router]

mysaprouter=/H/mysaprouter.url.url.de/S/3297/H/

[Default]

name=mysaprouter

How can I make the MSHOST=x26Z known?

Where is the error in my Settings?

Regards, Stephan Scheele

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

SAPLogonDestination doesn't read SAPROUTE.ini, therefore the router string specified there is not used. Just set it manually in the SAPRouterString property.

Former Member
0 Kudos

How can I access the SAPRouterString Property? I couldn´t find it, it´s not a member of the class sapLogonDestination?

reiner_hille-doering
Active Contributor
0 Kudos

It is, but only in SAP .NET Connector, Version 2.0. In 1.x it's much more complicated.

Former Member
0 Kudos

Ah. Here is the main problem. Where do I find the latest SAP-Connector? I´m using at the moment V 1.03.

Former Member
0 Kudos

Ok I got the new Version. I try to fix my problem again with enw version. thank you very much for your very fast help!