Skip to Content
author's profile photo Former Member
Former Member

TCP / IP - RFC Error in ABAP Stack

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 Details program state check for conversation 84774966 / CPIC-CALL: 'ThSAPCMRCV' : cmRc=2 Error Details ERROR: program state check for conversation 84774966 Error Details LOCATION: SAP-Gateway on host vbiwprd / sapgw00 Error Details DETAIL: program sapgw00 on host vbiwprd called function SEND_DATA in state INI Error Details COMPONENT: SAP-Gateway Error Details COUNTER: 39093 Error Details MODULE: gwr3cpic.c Error Details LINE: 3617 Error Details RETURN CODE: 471 Error Details SUBRC: 0 Error Details RELEASE: 701 Error Details TIME: Tue Sep 10 11:05:17 2013 Error Details VERSION: 2

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

Kindly suggest.

---

Thanks & Regards,

Vijay

Add a comment
10|10000 characters needed characters exceeded

Related questions

9 Answers

  • Posted on Sep 10, 2013 at 07:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2013 at 07:20 AM

    HI Vijay,

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

    BR

    Aj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Posted on Sep 10, 2013 at 07:20 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2013 at 10:33 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2013 at 07:21 PM

    Hi vijay,

    From portal server , please check below command

    telnet vbiwprd 3300(gateway port number)

    Provide your feedback.

    With Regards

    Ashutosh Chaturvedi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2013 at 09:41 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 12, 2013 at 09:48 AM

    Hi Vijay

    Kindly refer the SAP Note 353597 - Registering RFC server programs

    Regards

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2013 at 09:51 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • Posted on Sep 26, 2013 at 12:26 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.