Port Type CPI-C: Linking an R/2 and SAP System

The SAP system logs on to the R/2 System to send or retrieve IDocs. The necessary logon data is maintained in the SAP system under an RFC destination. The target system (R/2) and the technical communication attributes are maintained in the table TXCOM.

Maintaining the RFC destination


       1.      To create an RFC destination, select Tools ® Administration ® Administration ® Network ® RFC Destinations(transaction SM59). Position the cursor on R/2 connections and select Create.

       2.      Name the RFC destination (for example K50-Test) and the connection type 2 (connection to R/2). Enter a description of the RFC destination. This data only has to be entered once before you can save the destination. The data is not relevant to the CPI-C connection. The following logon data, however, is important:

· Client in the R/2 System

· User and password in the R/2 System

Save your entries.

This transaction is called “Maintain RFC Destinations”, but only the logon data (client, user name, password and logon language) is entered for port type CPI-C, not the target system itself. For this reason, the connection test for this transaction does not have to be successful. The actual name of the target system is read as a “symbolic destination” from table TXCOM.

       3.      If you want the system to make a connection log when sending IDocs, then you must select the field Trace.

Maintaining entries in table TXCOM


       1.      Choose Tools ® Administration ® Administration ® Network ® Maintain TXCOM (transaction SM54). Choose .

       2.      Maintain the R/2 System name (for example, K50) as the destination. Enter the following parameters, in addition to the name:

·   Gateway host and gateway service

·   Protocol C ( = partner can be reached via CPI-C)

You can determine the gateway host and service via the gateway monitor or the report RSPARAM.

       3.      Save your entries.

The “logical unit” (LU column) and the transaction program (TP column) are not read from TXCOM, but from the sideinfo file on the SNA-compatible gateway server.


The SAP system recognizes the R/2 System (TXCOM entry) and vice versa (logon data). Continue with

·       Set Up CPI-C Port: Port Definition