cancel
Showing results for 
Search instead for 
Did you mean: 

Connect 2 systems in seperate LANs using SNC SAPRouter

Former Member
0 Kudos

Hello Experts,

We are looking for an immediate way to setup RFC connection to our

customer's systems for VAR scenario.

We have SNC SAPRouter and they too have SNC SAPRouter.

We can connect from their ERP system to our Solution Manager. However while

connecting from our Solution Manager to Customer's ERP system using RFC

via SAPRouters at both ends, we are getting the following error in

SM59 connection test -

ERROR: CPIC program connection ended (read

error) rc = 223

I am using SAPRouter string in RFC (Type 3) in our Solution manager as -

Target host =   /H/<our_saprouter_local_IP>/H/<customer_saprouter_publicIP>/H/<customer_ERPsystem_local_IP>/S/sapdp00

System Nr: 00

Our dev_rout looks okay whereas their dev_rout shows the

following -

==========================

******* NI-ROUTER LOOP ********

NiIRead: hdl 8 recv would block (errno=EAGAIN)

NiIRead: hdl 8

received incomplete data

(rcd=1376,pnd=175,pac=1,MESG_IO,0ms)

NiIRead: hdl

8 received data (rcd=175,pac=1,MESG_IO)

->>

SncProcessInput(snc_hdl=00000000002B5380, ibuf=0000000008C200F8,

ilen=1551,

&obuf=00000000065AFBB8,

&olen=00000000065AFBB0,

&backbuf=00000000065AFB08,

&backlen=00000000065AFB00)

<<-

SncProcessInput()==SAP_O_K

return values = "(no data) in=1551, back=1690,

out=0"

NiIWrite: hdl 8 sent data (wrt=1690,pac=1,MESG_IO)

Wed Aug 22

23:53:30 2012

NiIRead: hdl 8 received data

(rcd=118,pac=1,MESG_IO)

->> SncProcessInput(snc_hdl=00000000002B5380,

ibuf=000000000031AED8,

ilen=118,

&obuf=00000000065AFBB8,

&olen=00000000065AFBB0,

&backbuf=00000000065AFB08,

&backlen=00000000065AFB00)

*** ERROR

=> SncPEstablishContext(): SNCERR_AUTH_MISMATCH -- wrong peer! expecting =

"p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE"

but peer is =

"p:CN=<ourSAPRouter_hostname>, OU=<0000nnnnnn>, OU=SAProuter,

O=SAP, C=DE"

<<-

ERROR: SncProcessInput()==SNCERR_AUTH_MISMATCH

*** ERROR => NiSncIProcIn:

SncProcessInput failed (rc=-

41;00000000002B5380;118) [nisnc.c

998]

NiSelISelectInt: 1 handles selected (1 buffered)

DATA from C8/7

(portal.butlersupply.com) received

*** ERROR => NiBufReceive C8/7

'portal.butlersupply.com' failed (rc=-

17) [nirout.cpp

2102]

NiBufISendErr: send ni-error rc -104 to hdl 8

NiIWrite: hdl 8 sent

data (wrt=226,pac=1,MESG_IO)

NiRCloseConn: closing C8/7

NiICloseHandle:

shutdown and close hdl 8 / sock 344

<<-

SncSessionDone()==SAP_O_K

NiICloseHandle: shutdown and close hdl 7 / sock

304

******* NI-ROUTER LOOP ********

Wed Aug 22 23:53:35

2012

NiSelISelectInt: 0 handles selected (0 buffered)

******* NI-ROUTER LOOP ********

I can understand that it is just allowing SAPSERV2 and not our Solution

Manager through our SAPRouter. On network end, everything is allowed,

it is just the saprouter that is causing issues. I even tried putting * * * for P, KP and KT entries in SAPRouttab.

If someone can help on enabling RFC connections using SNC SAPRouters

it would be helpful. You can also share how you connect to Customer's system

for VAR scenarios?

Regards,

Nick

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to carefully maintain KT and KP entries. Having wildcards * is your issue.

If you are using SNC, use * only for ports, not for systems.

Check this-

http://scn.sap.com/thread/3227994

Answers (0)