cancel
Showing results for 
Search instead for 
Did you mean: 

Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=676)

Former Member
0 Kudos

Dear experts,

Since a couple of hours this error occurs in our BI system:

LogonConnection Error
Error DetailsError when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679
Error DetailsERROR: program Trex_SID_20120228124608 not registered
Error DetailsLOCATION: SAP-Gateway on host server.domain.tld / sapgw00
Error DetailsDETAIL: TP Trex_SID_20120228124608 not registered
Error DetailsCOMPONENT: SAP-Gateway
Error DetailsCOUNTER: 2486
Error DetailsMODULE: gwr3cpic.c
Error DetailsLINE: 1789
Error DetailsRETURN CODE: 679
Error DetailsSUBRC: 0
Error DetailsRELEASE: 720
Error DetailsTIME: Wed Dec  5 14:18:03 2012
Error DetailsVERSION: 2

After some minutes noone can log into the system, an error occurs which says all processes are in use. Any help will be apreciated!

Kind regards,

Jann

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Please read CPIC Return Code 679 - Transaction Program not Registered. Hope it help to resolve your issue.

Regards,

Roman

Former Member
0 Kudos

Hello Roman,

Thank you for the advise. I already read the article. Nevertheless the gateway should be connected already. It worked for month without any problems. After I restarted the server today, the gateway was registered correctly. Unfortunately the problem occured again after a couple of hours. I now set parameter rdisp/tm_max_no a little higher, because in the sys-log I could see that there are not enough connections available.

I hope this solved the problem, I guess I will have to wait....

Thank you,
Jann

Former Member
0 Kudos

Gateway is not registered anywhere, you need to register program in gateway. Gateway is only communication layer in network. If you have problems with gateway please check dev_rd log file for errors.

Regards,

Roman

raquel_gomez
Employee
Employee
0 Kudos

Hi Jann,

As you may know, the error message "program not registered" is the result of the missing registration of the server function (in this case, program

TP Trex_SID_20120228124608). Either the external program did not try to register itself to the abap gateway or it failed (e.g. because the

registration is not allowed). Do you get any error when registering the program?

See Note:

1998384 - Troubleshooting RFC Connection to TREX Engine

Regards,

Raquel

Answers (8)

Answers (8)

Check has not been executed due to communication failure: Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT', communication rc: CM_ALLOCATE_FAILURE_RETRY (cmRc=2)).

Former Member

This could be due to misconfigured RFC settings. Go the the source system, check if load balancing is enabled. Check for the correct host name and perform test. It should work fine.

0 Kudos

Issue:

It so simple restart IDoc_AAE inbound RA parameters services

it will work for sure

linusillisunil
Newcomer
0 Kudos

No issue while creating the IDOC .I'm facing issue while connecting to the destination and the error showing "program is not registered"

0 Kudos

while doing SAP Solution manger configuration 7.2 : Application Operation - system monitoring

we are facing error,please help me if any one know about this.

Former Member
0 Kudos

Hi Jann,

Did you come right with the mentioned error?

Rgds

Former Member
0 Kudos


Check RFC connection in the source system if load balancing is enabled and the hostname, group, etc are configured correctly.

Former Member
0 Kudos

Hello,

I had a similar error and we did what is written in the SAPNote 1065406 - BWA 7.0: Raise number of TREXRfcServer threads, but after 1 one month we had again the problem. Did you manage to solve this? What kind of changes do we need to do?

Thanks in advance,

Florin

Former Member
0 Kudos

Jann,

You need to go to the TREX host and run the TREXAdmin.sh.

Under connectivity tab, you need to check the connection,check for the user account corrent and repair the connection.

I presume, the registered program is incorrect in RFC destination when compared to its in TREX or the password for the user account to connect to SAP is wrong/locked.

Post us what you see there.

Former Member
0 Kudos

Hi

Even i also encounter this error once .when i killed GWRD process automatically issue got resolved .

not sure this works in all cases , coz there might be another configuration problems tooo.

BR-Shantagouda