cancel
Showing results for 
Search instead for 
Did you mean: 

Error when opening an RFC connection

Former Member
0 Kudos

Dear Experts

I am getting this error messages when I make connection test. What may cause this problem. Can pls. any one guide me on the finding out the error in this?

Logon        Connection Error
Error DetailsError when opening an RFC connection
Error DetailsERROR: timeout during allocate
Error DetailsLOCATION: SAP-Gateway on host mel / sapgw00
Error DetailsDETAIL: no connect of TP sapdp00 from host PAS after 20 sec
Error DetailsCOMPONENT: SAP-Gateway
Error DetailsCOUNTER: 162
Error DetailsMODULE: gwr3cpic.c
Error DetailsLINE: 1973
Error DetailsRETURN CODE: 242
Error DetailsSUBRC: 0
Error DetailsRELEASE: 701
Error DetailsTIME: Tue May 29 01:48:19 2012
Error DetailsVERSION: 2

Regards

Holger

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This error might also come if the gateway port is not included in the services file of the destination system.

Please check that.

Thanks,

Sanketh.

Former Member
0 Kudos

Hi Sanketh,

how does this entry look?

Regards

Holger

Former Member
0 Kudos

Dear All

I have followed your instructions and I have still the same error.

Logon    Connection Error

Error Details    Error when opening an RFC connection

Error Details    ERROR: timeout during allocate

Error Details    LOCATION: SAP-Gateway on host mel / sapgw00

Error Details    DETAIL: no connect of TP sapdp00 from host PAS after 20 sec

Error Details    COMPONENT: SAP-Gateway

Error Details    COUNTER: 11

Error Details    MODULE: gwr3cpic.c

Error Details    LINE: 1973

Error Details    RETURN CODE: 242

Error Details    SUBRC: 0

Error Details    RELEASE: 701

Error Details    TIME: Wed May 30 18:46:49 2012

Error Details    VERSION: 2

Regards

Holger

Former Member
0 Kudos

Hi Holger,

Based on the error logs I am not sure if you tried the connection test after increasing the value of gw/cpic_time. May be I am wrong but can you confirm that please ?

Regards.

Ruchit.

Former Member
0 Kudos

Hi Ruchit,

Yes I have set value to 90.

Additionally did you read my posting from

Regards

Holger

Former Member
0 Kudos

Hi Holger,

Thepratically the steps you have mentioned are correct.Anyways let us start the problem diagnosis afresh.

Based on the info you have provided I can  safely assume that both the systems are ABAP stack and that gateway service has been started for both the cases.In this case GW service for system B has to be started in any case. If possible please login at OS level in the server hosting server A and issue the command telnet PAS 3300.Let us know the output for that. May be you can first try it from local PC/laptop.

Also have a look at OSS note 581509.

Regards.

Ruchit.

Former Member
0 Kudos

Dear Ruchit

the problem is solved. I have stopped the windows firewall and everything was OK.

I thank you for your helps.

Regards

Holger

Former Member
0 Kudos

Dear Holger,

Thanks for sharing...!!

I was also gettng same error with return code 242 for DEV to SOLMAN trusted RFC.

The issue is SOLMAN is on Windows Platform and the Windows Platform and Windows Firewall is ON which blocking communication though ping is successful and host entry is maintained.

Your reply helped me to solve the issue.

Thanks...!!!!

Regards,

Ishan

Former Member
0 Kudos

Dear Holger,

your post was very helpful,

I encountered the same problem while configuring TMS in Netweaver 7.4, while adding system to transport domain controller.

Thanks for the solution

Regards

Pallav

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Holger,

What is the value of profile parameter gw/timeout?

Regards.

Ruchit

Former Member
0 Kudos

Hi Ruchit,

pls. see below.

Regards

Holger

Param. Name

gw/timeout

Short description(Engl)   Timeout for connect to other gateways

Appl. area                Gateway

ParameterTyp              Time value

Changes allowed           Change permitted

Valid for oper. system    All operating systems

Minimum

Maximum                   1000000

DynamicallySwitchable

Same on all servers

Dflt value                0

ProfileVal               0

Current value          0

Former Member
0 Kudos

Hi Holger,

The return code 242 made be think it was related to this parameter.However it doesn't look like that But it could also be  be related gw/cpic_timeout. What is the value of this parameter? If it is 20 secs (default value) try changing it (this is dynamic parameter) and then do a test connection. I can't suggest the changed value. It is a bit of trial and error method :-). Making it 40 secs might be a starting point.

Regards.

Ruchit Khushu

Former Member
0 Kudos

Hi Ruchit,

did I create the RFC-User and the RFC-destination correctly? Let me tell you the steps which I have done.

I have created a user in the Destination System (Back-end, let's say system B) with user type Communication as RFC User.

In the Front-end System (SRM, let's say system A). I only have created an RFC Destination (SM59) with connection type 3 related to the above mentioned user.

The connection test was made by me in the SRM system (system A). System A is not able to connect to system B in this case.

Are additonal steps necessary???

Regards

Holger

Former Member
0 Kudos

Hi Holgar,

Connection test wouldn't need RFC user. You just need to make sure that hostname and system number of system "B" are correctly input. By the logs I can infer hostname is "PAS" whilst the system number is 00 for system B. Please re-confirm if this is correct.PAS looks more like SID than a hostname 🙂 but then if mel is a valid hostname so can PAS be.. Anyways check this out.Sometimes error in this case particularly wrong system number can throw up this error. If this is fine then I would suggest having a look at gw/cpic_timeout.

Regards.

Ruchit.

Former Member
0 Kudos

Hi Ruchit

I will follow your instructions. I let you know the result. Currentlly I am out of office, it can take

a while. I thank you for all your helps.

Regards

Holger