cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Connection Error

Former Member
0 Kudos

Hi to all,

i have a class library in .NET that call some BAPIs functions many times. I use the SAP.Net Connector for call these BAPI from a class library. Sometime i receive the next error messages in some call BAPI (not always the same):

Connect to SAP gateway failed\nConnect_PM

GWHOST=10.1.3.7, GWSERV=sapgw02, ASHOST=10.1.3.7,

SYSNR=02\n\nLOCATION CPIC (TCP/IP) on local host\nERROR

partner not reached (host 10.1.3.7, service 3302)\n\nTIME

Wed Dec 21 15:28:21 2005\nRELEASE 620\nCOMPONENT

NI (network interface)\nVERSION 36\nRC -10\nMODULE

ninti.c\nLINE 979\nDETAIL NiPConnect2\nSYSTEM

CALL SO_ERROR\nERRNO 10048\nERRNO TEXT WSAEADDRINUSE:

Address already in use\nCOUNTER 1\n

Where is the mistakes? How is wrong?

How can i solve this situation?

Thanks in advance for your time

enrico.zerilli@tamoil.com

enricozerilli@hotmail.com

Accepted Solutions (1)

Accepted Solutions (1)

reiner_hille-doering
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi

i have read the message but the registry key that you have show d'ont esxist in S.O. in my machine. My SO is Windows Server 2003 SP 1.

Can you help me ?

Thanks in advance

0 Kudos

Hi,

I'm new to ABAP and I am having problem calling .NET from SAP.. I am confused as to which is the program ID in the .NET program that we need to use during the SAP connection error.

I'm trying to transfer simple data b/w SAP and .NET using the .NET connector( no table data is being used) on the same system.

I dont know wht is the problem with the connection. Here are the details of the error that I got when I tested the connection with connection as Explicit Host.

Logon Connection Error

Error Details partner 'localhost:sapgw00' not reached / CPIC-CALL: 'ThSAPOCMINIT' SAP gateway

Error Details ERROR: partner 'localhost:sapgw00' not reached

Error Details LOCATION: SAP-Gateway on host usai1acr / sapgw10

Error Details DETAIL: NiPConnect

Error Details CALL: connect

Error Details COMPONENT: NI (network interface)

Error Details COUNTER: 2951

Error Details ERROR NUMBER: 146

Error Details ERROR TEXT: Connection refused

Error Details MODULE: nixxi.cpp

Error Details LINE: 2430

Error Details RETURN CODE: -10

Error Details SUBRC: 0

Error Details VERSION: 38

I'm waiting for your reply.. please guide me regarding this.

Thanks,

Tejas

reiner_hille-doering
Active Contributor
0 Kudos

> Hi

> i have read the message but the registry key that you

> have show d'ont esxist in S.O. in my machine. My SO

> is Windows Server 2003 SP 1.

Unfortunately I have no idea.

Former Member
0 Kudos

You have 2 types of connection:

a) client connection from system to SAP

No need of a program id

b) server connectin from SAP to your system (IDOC server etc...)

The program ID passed in the connection string needs to match the one defined in SM59 for the registered connection.

In case of multiple SAP servers on the same instance make sure that the correct gateway host and port is specified on the connection in SM59 as the external system (server) connects to a specific host.

Have fun.

Answers (0)