cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Comunication Errors CPIC 20 SAP=474

Former Member
0 Kudos

Hi

We decide to go from kernel 7.00 to 721_ext on AIX 7.1. Locally on the same server we run c-program wich connect to GW of SAP.

Before we did not experienced no such kind of errors.

Now, the rfc start to die with the error:

** Trace file opened at 20150618 081107 CEST, by disp+work

**** Versions SAP-REL 721,0,500 RFC-VER nU 3 1575486 MT-SL

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

Verbindung wurde von Administrator gelöscht

ABAP Programm: SAPMSSY1 (Transaction: )

Called function module: Z_PRAEMIEN_BEZAHLT_BIS

User: VVEVBU (Client: 001)

Destination: SAPNODE (Handle: 1, DtConId: 5581FD902FD5D030E10080000A76840D, DtConCnt: 0, ConvId: 76767456,{5581FD90-2FD5-D030-E100-80000A76840D})

EPP TransactionId:

SERVER> RFC Server Session (handle: 1, 76767456, {5581FD90-2FD5-D030-E100-80000A76840D})

SERVER> Caller host:

SERVER> Caller transaction code:  (Caller Program: SAPCPIC)

SERVER> Called function module: Z_PRAEMIEN_BEZAHLT_BIS

Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3732

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

Verbindung wurde von Administrator gelöscht

Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1984

Just to be clear we do not terminate any connections manually.

Any help is welcomed.

Regards

Franco

Accepted Solutions (0)

Answers (7)

Answers (7)

former_member206857
Active Participant
0 Kudos

I had the same issue a few years ago, for the life I cant remember.

I believe the fix might have been an instance parameter I had to add.

Oh sorry I cant remember

Former Member
0 Kudos

A new 'feature' of SAP regarding the gateway is to look into parameter, gw/acl_mode and see if it is enabled as 1.  If so, change it to 0 via RZ11 as it is dynamic and then retest. 

You may also need to look into creating a secinfo and reginfo files and edit them at the OS level to enable security restrictions.  Check out the following link for more information:

http://help.sap.com/saphelp_nw74/helpdata/en/d0/a4956abd904c8d855ee9d368bc510b/content.htm?frameset=...

isaias_freitas
Advisor
Advisor
0 Kudos

I do not see how this would be related to the return code 474...

Former Member
0 Kudos

I was referring to the thread regarding the gateway settings.  Sorry, I should have responded to that thread rather than the main thread.

isaias_freitas
Advisor
Advisor
0 Kudos

Hello,

SAP note 63347:

C_MANUAL_CANCELD          474 Connection manually cancelled
former_member182657
Active Contributor
0 Kudos

Hi Franco,

Thanks for sharing the file.

GwICheckFrag: no write to client genadev0/SAPCPIC (idx 22, hdl 211) within 120 seconds, disconnect now

Have a look with SAP Note 1141791 - Gateway: Connections hang during fragmented write operations


Hope this will help you .


Regards,

former_member182657
Active Contributor
0 Kudos

Hi,

Could you share dev_rd log file.

Regards,

Former Member
0 Kudos

Hi Gaurav

Here The content of the file dev_rd when we had the interruption:

Thu Jun 18 07:34:21 2015

GwICheckFrag: no write to client genadev0/SAPCPIC (idx 22, hdl 211) within 120 seconds, disconnect now

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

***LOG S74=> GwIDisconnectClient, client disconnected ( genadev0) [gwxxrd.c     10724]

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

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

Thu Jun 18 08:11:07 2015

GwICheckFrag: no write to client genadev0/SAPCPIC (idx 29, hdl 370) within 120 seconds, disconnect now

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

***LOG S74=> GwIDisconnectClient, client disconnected ( genadev0) [gwxxrd.c     10724]

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

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

Thu Jun 18 11:17:08 2015

GwICheckFrag: no write to client genadev0/SAPCPIC (idx 23, hdl 124) within 120 seconds, disconnect now

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

***LOG S74=> GwIDisconnectClient, client disconnected ( genadev0) [gwxxrd.c     10724]

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

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

Regards

Franco

Former Member
0 Kudos

Pay attention to parameters gw/reg_info and gw/sec_info. For more info you can start read with Making Security Settings for External Programs - SAP Gateway - SAP Library.

Former Member
0 Kudos

Hi

Thanks for your respond, but what I understand you need to define this only for remote connections on a other server.

Regards

Franco

former_member185239
Active Contributor
0 Kudos

Hi Franco,

check the below things.

- Run the SMGW transaction and check whether your gateway is active or not.

- paste the screenshot of RFC details.

With Regards

Ashutosh Chaturvedi

Former Member
0 Kudos

Hi Ashutosh

On the SMGW the connections disappeard and are not active anymore.

So if you need some other detail let me know.

This could be for interest. The sideinfo file we use:

DEST=SAPNODE

LU=genadev0007

TP=sapdp00

PROTOCOL=I

GWHOST=genadev0007

GWSERV=sapgw00

KEEP_SESSION=1

Regards

Franco