cancel
Showing results for 
Search instead for 
Did you mean: 

TCP / IP - RFC Error in ABAP Stack

Former Member
0 Kudos

Dear All,

We are facing RFC error, while creating the TCP/IP connection with Portal.

We created JCO Rfc and also give same program id in TCP/IP connection.

While test the the connection getting below error.

===========ERROR================

Error Detailsprogram state check for conversation 84774966 / CPIC-CALL: 'ThSAPCMRCV' : cmRc=2
Error DetailsERROR: program state check for conversation 84774966
Error DetailsLOCATION: SAP-Gateway on host vbiwprd / sapgw00
Error DetailsDETAIL: program sapgw00 on host vbiwprd called function SEND_DATA in state INI
Error DetailsCOMPONENT: SAP-Gateway
Error DetailsCOUNTER: 39093
Error DetailsMODULE: gwr3cpic.c
Error DetailsLINE: 3617
Error DetailsRETURN CODE: 471
Error DetailsSUBRC: 0
Error DetailsRELEASE: 701
Error DetailsTIME: Tue Sep 10 11:05:17 2013
Error DetailsVERSION: 2

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

Kindly suggest.

---

Thanks & Regards,

Vijay

Accepted Solutions (0)

Answers (9)

Answers (9)

former_member183107
Contributor
0 Kudos

Hi,

As of 720 kernel, registration of external server program is controlled by profile parameters gw/acl_mode, gw_reg_info and gw/sec_info.

For security reasons, SAP has made it mandatory to use gw/reg_info and gw/sec_info to allow any external program to get registered on host.

So, entries of the host wanting to register program in gateway, has to be maintained in the file reg_info and sec_info.

Location of these files is maintained using gw/reg_info and gw/sec_info profile parameter.

If the files are created without any entries, then no external server is allowed to register external programs. If files are created then entries for the servers has to be maintained.

If the files are not created, then parameter gw/acl_mode can be used to control registration of external programs on the system.

gw/acl_mode = 0 will allow registration of external server program

gw/acl_mode = 1 will not allow registration of external server programs and you need to maintain reg_info and sec_info files.

More information about the same can be found in below SAP notes :

Note 1408081 - Basic settings for reg_info and sec_info

Note 1069911 - GW: Changes to the ACL list of the gateway (reginfo)

Also check,

http://scn.sap.com/message/14361571

Hope it helps.

Regards,

Himanshu

Former Member
0 Kudos

Hi Vijay,

For TCP error you should check if there is any firewall blocking port 3300.

You can test host name resolution and port access

From Portal server ping vbiwprd , if successfull

then telnet vbiwprd 3300 to check if the port is being blocked.

Regards

Dev

Former Member
0 Kudos

Hi All,

I checked port number 3300 is working fine and also pinged from portal.

Same configuration working fine in Dev, but it is not working in Production.

---

Thanks

Vijay

Sriram2009
Active Contributor
Former Member
0 Kudos

Hi

check hosts file (IP singlehostname FQDN) and services file in both sap systems.

sapms<SID>   36<instance number>

Another problem might be missing RFC authorizations for the user provided in the Jco conn.

Check dev_rfc.trace and def_trace in portal.

kind regards

Tom

Sriram2009
Active Contributor
0 Kudos

Hi Vijay

Kindly refer the SAP Note 353597 - Registering RFC server programs

Regards

Ram

Former Member
0 Kudos

Can you attach screenshot with technical settings for created rfc from SM59?

former_member185239
Active Contributor
0 Kudos

Hi vijay,

From portal server , please check below command

telnet vbiwprd 3300(gateway port number)

Provide your feedback.

With Regards

Ashutosh Chaturvedi

Reagan
Advisor
Advisor
0 Kudos

Hello

There should be an RFC from the ABAP stack as Registered Server Program with a program ID.

There should be a JCo RFC created in the J2EE system again with the program ID.

Start the JCo RFC in the Visual Admin.

Regards

RB

karthikeyan_natarajan4
Active Contributor
0 Kudos

Hi Vijaykumar,

Please check the repository configuration tab in Jco RFC destinations for the application server host, client, user and password details of the abap stack system.

regards

kartik

AtulKumarJain
Active Contributor
0 Kudos

HI Vijay,

could you please provide gateway trace dev_rd after doing connection test.

BR

Aj

Former Member
0 Kudos

Hi Atul,

After testing the connection, below are the dev_rd.

*****************************************************************************

Wed Sep 25 11:32:40 2013

***LOG S7E=> GwICheck_Conversation, state error (0701) [gwr3cpic.c   3594]

***LOG S74=> GwICheck_Conversation, state error ( vbiwprd) [gwr3cpic.c   3601]

***LOG S0I=> GwICheck_Conversation, state error ( sapgw00) [gwr3cpic.c   3609]

***LOG SA2=> GwICheck_Conversation, conv Id (81966654) [gwr3cpic.c   3615]

Wed Sep 25 11:34:04 2013

***LOG Q0I=> NiIRead: recv (73: Connection reset by peer) [nixxi.cpp 4446]

*** ERROR => NiIRead: SiRecv failed for hdl 80 / sock 165

    (SI_ECONN_BROKEN/73; I4; ST; 173.16.6.251:1289) [nixxi.cpp    4446]

***LOG S23=> GwIDisconnectClient, client disconnected (282) [gwxxrd.c     12031]

***LOG S74=> GwIDisconnectClient, client disconnected ( MUM-3010) [gwxxrd.c     12042]

***LOG S0R=> GwIDisconnectClient, client disconnected () [gwxxrd.c     12077]

***LOG S0I=> GwIDisconnectClient, client disconnected ( EXCEL) [gwxxrd.c     12090]

*****************************************************************************

*

*  LOCATION    SAP-Gateway on host vbiwprd / sapgw00

*  ERROR       connection to partner '173.16.6.251:1289' broken

*

*  TIME        Wed Sep 25 11:34:04 2013

*  RELEASE     701

*  COMPONENT   NI (network interface)

*  VERSION     38

*  RC          -6

*  MODULE      nixxi.cpp

*  LINE        4446

*  DETAIL      NiIRead

*  SYSTEM CALL recv

*  ERRNO       73

*  ERRNO TEXT  Connection reset by peer

*  COUNTER     62416

========

---

Thanks

Vijay

former_member188883
Active Contributor
0 Kudos

Hi Vijay,

In JCO connection ensure that you are maintaining ABAP stack hostname in the gateway parameters.

Additionally in SM59 also you define abap stack hostname in the gateway parameters.

Please check and revert back with your configuration details.

Regards,

Deepak Kori

Former Member
0 Kudos

Hi Deepak,

We provided all the required things in SM59.

And can you tel me what are the parameters required for Gateway?

----

Rgrds/Vijay

Former Member
0 Kudos

Hi,

can you please check the below two parameters.

Set parameter gw/keepalive and  gw/reg_keepalive to 0 as per SAP Note 1388694

Can you also explain what functionality is this JCO RFC about.

Thanks

Rishi abrol