Skip to Content
avatar image
Former Member

CPIC error when calling a external c program

Hi All,

i Have a scenario where we call a C-Program(RFC api) to connect to and external system thru tcp/ip.

The issue here is when we call the c program from ABAP we get the below error in files

dev_rfc0

  • Trace file opened at 20091222 094649 TAIST, REL 46D,0,2464, VER 3

======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223

CPIC program connection ended (read error)

Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 2961

CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223

CPIC program connection ended (read error)

dev_w0

Tue Dec 22 09:46:49 2009

***LOG R49=> tskh_receive, CPIC-Error (020223) [thxxhead.c 6003]

***LOG R5A=> tskh_receive, CPIC-Error (80600115) [thxxhead.c 6008]

***LOG R64=> tskh_receive, CPIC-Error ( CMSEND(SAP)) [thxxhead.c 6013]

RFC 2959 CONVID 80600115

  • CMRC=20 DATA=1 STATUS=1 SAPRC=223 ThSAPCMRCV

RFC> ABAP Programm: ABAPXXXX (Transaction: SE38)

RFC> User: abc (Client: 300)

RFC> Destination: APIRFC (handle: 1, convid , {4B2E49E2-A088-0082-E100-80003517BA61})

RFC> Called function module: RFC_API

dev_rd

Tue Dec 22 09:46:49 2009

***LOG S23=> GwDisconnectClient, client disconnected (029) [gwxxrd.c 10609]

***LOG S74=> GwDisconnectClient, client disconnected ( ijkl211) [gwxxrd.c 10620]

***LOG S0R=> GwDisconnectClient, client disconnected () [gwxxrd.c 10636]

***LOG S0I=> GwDisconnectClient, client disconnected ( interfac) [gwxxrd.c 10657]

In sm21

R49 Communication error, CPIC return code 020, SAP return code 223

Can any one help me find wat might be the cause of this issue.We are using SAP R/3 and OS is AIX 5.3

Thanks,Rajesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 19, 2010 at 07:06 AM

    Dear Rajesh,

    This depends on what your program does. Based on the error message, it looks like the program ends abnormally, as the gateway writes an error while attempting to read/write data from the connection to the program. With what you have given, the error does not seem to lie with the SAP side. You will have to check your program, e.g. using a debugger.

    Best Regards,

    Tim

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 11, 2010 at 03:18 PM

    Hi ,

    you will have to analyze from different angles about this error.

    Check for other information relate to this error from SM21/log,traces.

    Below note may help you.

    Note 532918 - RFC trace generation scenarios

    regards

    Nagaraju

    Add comment
    10|10000 characters needed characters exceeded