cancel
Showing results for 
Search instead for 
Did you mean: 

LCRSAPRFC and SAPSLDAPI RFC's Failing when connected to message server

Former Member
0 Kudos

Hi Gurus,

This question is stumbling me since months.

I am configuring ABAP proxys from SRM system to PI system.

under TCP/IP connections i have created two RFC's as registered server programs.

Our  PI system has one central instance and a dialog instance and load  balance happens through message server. All these are installed in one  cluster.

when i connect these two RFC'S (LCRSAPRFC  and SAPSLDAPI) from SRM system to PI using PI message server then RFC  fails, though i added entry of PI sapmsXYZ 36XX /tcp in services file.

but when i enter Central Instance of PI in SM59 above RFC'S works perfect and hence proxys.  Fails only with message server.

when  RFC'S dont work with message server then load balancing doesn't happen  between two servers and only one application server takes the load,  which is not good.

Below is the error i get when i connect using PI message server.

Error Details    Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=17 thRc=2

Error Details    ERROR: SAP gateway connection failed. Is SAP gateway started?

NOTE: Other RFC'S works fine connecting with message server only these two RFC's fails.

Please advice , is this the good practice? these RFC'S work only with CI and not with message server?

your advice appreciated.

Thanks,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All,

Thank you for your suggestions. all your suggestions gave me clear idea how it works.

apart from that I followed NOTE 1052984  which solved my issue (configuration changes for SAP NetWeaver Process Integration (PI) High Availability (HA))

once again thank you all.

Kiran

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Kiran,

You can add sapgw<instance Number> and Port 33<instance Number> in Service file.

Like below:

sapgw00     3300/tcp        # SAP System Gateway Central Instance Port (if instance number 00)

If you PI system as SLD system, You can run Configuration Wizard in SRM system & Automatically Two RFC will created.

SRM System: -> http://srm hostname:port/nwa --> Configuration

Automatic Configuration

To carry out the wizard-based configuration task required for your SAP system, use the configuration wizard in the SAP NetWeaver Administrator

  1.   Start the configuration wizard. 

    For more information, see Configuration Wizard.

  2.   Under Show, choose All Configuration Tasks.

3. Then Run SLD configuration and give PI system credentials.

for more details check Post Installation Steps in SRM installation Guide

Thanks & Regards,

V Srinivasan

Reagan
Advisor
Advisor
0 Kudos

Hello

Modify the RFC's with the Gateway parameters of the system.

Regards

RB

Former Member
0 Kudos

Hi Kiran,

             Message server lies inside central instance unless you have implemented high availability scenario where you have ASCS instance which contains your message and enque server.

            So you are trying to connect SRM system to either central instance or other dialog instance using the gateway server details using the gateway service and hostname and not able to connect to dialog instance.

            Best way is to provide the Gateway service and hostname for the system(central or dialog) and it will work.          

Former Member
0 Kudos

All RFC destinations (as SAP registered server programs) use for communication SAP Gateway not message server. You can't perform load balancing with message server. Therefore in your RFC destinations you need to provide correct SAP Gateway Host and Service where you register server program.

Former Member
0 Kudos

Hi,

As both the RFCs are TCP/IP connections, so it requires registered program to connect to PI system from SRM. So, please check whether the mentioned program is there in PI system (http://<PI system host name FQDN>:<port>/nwa   >  Configuration > Infrastructure > JCO RFC Connection ). Also check in NWA itself , whether login credentials are maintained properly or not and make sure that the login ID is not disabled in SRM system.

Apart from this, check the gateway & port of message server mentioned in RFC. It should be as follows:-

1. Gateway host : SRM server host name

2. Gateway service : sapgw<instance no. of SRM server> [In case load balancing is there, then you can mention the instance no. of central server]

After checking above , check whether the mentioned gateway service is showing as CONNECTED or not in SMGW T-Code in your SRM server.

Please let me update once you perform the same.

Regards,

Nilutpal.

Former Member
0 Kudos

Hi Kiran,

             Message server lies inside central instance unless you have implemented high availability scenario where you have ASCS instance which contains your message and enque server.

            So you are trying to connect SRM system to either central instance or other dialog instance using the gateway server details using the gateway service and hostname and not able to connect to dialod instance

Former Member
0 Kudos

Hi,

can you please check the below note.

1729580 - Unable to register RFC destinations in PI

Just wanted to check one thing that in the gateway server you are giving the message server and in the gateway service you are giving port details. All the TCP /IP connection which use registered program are registered at gateway.

Thanks

Rishi abrol