Skip to Content
avatar image
Former Member

TCP/IP RFC configuration issue

Hi All,

I am doing TCP/IP RFC configuration since I am new to SAP, I am facing issue during configuration.

Error Detai from SAP (SM59)

  • Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=67
  • RETURN CODE: 679

I followed few threads related to TCP/IP RFC configuration

here I am mention the process

To register the program login into the OS level as sudo su – <sid>adm and execute the following command.
 rfcexec –g<program id> -a<gateway host name> -x<gateway service>
rfcexec is the server program name, the <program id> can be obtained from SM59, it is case sensitive and should match with the entry in SM59. The <gateway host name> and <gateway service> can be obtained from the transaction SMGW.
The connection will fail once this command is terminated or the user executing this command logs off
To avoid this, instead of using the above mentioned command an entry should be made in the file saprfc.ini
To do this, execute the following command 
sudo su – <sid>adm
 rfcexec –D<destination name>
<destination name> is the RFC destination name in SM59
Eg: rfcexec –DXYZ
 Where XYZ is the name of the RFC destination in SM59

Also I referred SAP Note 353597

Can anyone guide me to fix the issue.

Thanks in advance,


capture.png (13.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 06, 2017 at 11:28 AM

    Hi Arun,

    Su - <sid>adm


    Then use the rfcexec.



    Add comment
    10|10000 characters needed characters exceeded