cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping fails because of RFC

Former Member
0 Kudos

Guys,

1) I have some messages failed in SXMB_MONI because message mapping for those interfaces was not executed successfully. In trace I can see the following:

"com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=121.12.2.15 SYSNR=02 GWHOST=121.12.2.15 GWSERV=sapgw02 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner not reached (host ?, service ?) TIME Wed Jul 11 07:20:27 2007 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 COUNTER 1024</Trace>"

I realize it is a network connection problem, but..

Any ideas?

2) Actually, in my mapping programs I have to perform many RFC's to both XI and target/source SAP systems, in order to get some information. The techique that I am using for RFC's is through Java's com.sap.mw.jco.* package. And I connect to systems by giving the IP address, system number, username and password of the systems and then I execute the remote enabled function modules.

However. when I have many RFC's some of them fail, maybe because the maximum number is reached. And then I have to manually restart them from SXMB_MONI and they are successfully processed.

Any ideas?

Accepted Solutions (0)

Answers (2)

Answers (2)

henrique_pinto
Active Contributor
0 Kudos

Maintain the Lookups as RFC Lookups and not raw JCo connections.

Then in the Receiver RFC Adapter you'll be using, increase the maximum number of connections.

Regards,

Henrique.

Former Member
0 Kudos

I am using a receiver IDOC adapter and not a receiver RFC adapter.

What do you mean to maintain them as RFC Lookups??

henrique_pinto
Active Contributor
0 Kudos

But you said you call many RFCs inside XI, right?

The proper way of doing it is not using JCo directly, but using Mapping Lookup API instead. In this way, you won't need to maintain the connection details inside the code, but in the communication channels.

Check this out: https://help.sap.com/javadocs/NW04S/current/pi/index.html (lookup api).

There are some code examples within the classes (for example, RfcAcessor).

I think there is also a SDN documentation by Michal Krawczyk regarding RFC Lookups.

Just search for it.

Regards,

Henrique.

prateek
Active Contributor
0 Kudos

According to the error, R/3 system could not be reached

Have a look at SAP Note 447882

Regards,

Prateek