cancel
Showing results for 
Search instead for 
Did you mean: 

SAP gateway failed

Former Member
0 Kudos

Hi all,

Can anyone help me to connect miniSAP using SAP .NET connector.

I have installed .net and minisap in same pc. When I try to connect, it prompt error massage like this.

"Test Connect failed. Please correct connection settings. Error was: connect to SAP gateway failed Connect_PM GWHOST=malintha=sapgw00, ASHOST=malintha, SYSNR=00

Location CPIC(TCP/IP) on local host

Error partner not reached(host malintha, service 3300)".

Some times I get error “no entry for ‘I01’ found in ‘c:\windows\sapmsg.ini’”

Thank you.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

pervious connection string post

Former Member
0 Kudos

Hi Malintha,

How are you doing ?

Are you aware of the usage of the Schedule parameter ?

i have not used it. and am unaware of it's implications

here is what i recommend to isolate the problem

please create a new standalone webservice application

create a proxy to a simple rfc / bapi

create a web service method which invokes that rfc

hard code the connection string

within that use a hard coded connection string.

see if the call is successful.

if the gateway is found, then it is likely that your usage of the SAPLogonDestination class is the issue.

also instead of the server name, you could try using the IP address for the aphost

eg.

"CLIENT=100 USER=amit PASSWD=hello LANG=en ASHOST=10.8.2.64 SYSNR=0"

the purpose of the destination class is to build the connection string.

if you can build it yourself, there is no need to add the complication.

please let me know the results once you have completed the connection string testing procedure.

with respect,

amit

Former Member
0 Kudos

Hi Malintha,

How are you doing ?

your settings for the sap msg server will need verification.

a simpler alternative method to connect is by using the simple connection string.

the destination object that you used can be used with the following parameters

this.destination1.Username

this.destination1.Password

this.destination1.Client

this.destination1.AppServerHost

this.destination1.SystemNumber

this.destination1.Language

yeilding a connection string like: "CLIENT=100 USER=amit PASSWD=hello LANG=en ASHOST=chawathe.realtech.co.nz SYSNR=0"

with respect,

amit

Former Member
0 Kudos

Hi Amit,

I already did that coding part. But the error is remain. this is the my code.

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

</system.web>

<appSettings>

<add key="destination1.AppServerHost" value="malintha" />

<add key="destination1.Username" value="DDIC" />

<add key="destination1.Password" value="minisap" />

<add key="destination1.SystemNumber" value="0" />

<add key="destination1.Client" value="000" />

<add key="destination1.Language" value="en" />

<add key="Schedule" value="D:\Schedule.ext"/>

</appSettings>

Pls help me to resolv this problem.

thanks,

Malintha.