5.4 Creating a Port Definition

The port is the communication channel to which IDocs are sent. The port describes the technical link between the sending and receiving systems.

The driver can be configured to support a connection via a TRFC port or to consume IDocs distributed via a File port. The default driver configuration assumes that you use the TRFC port configuration.

5.4.1 Creating a TRFC Port Definition

A Transactional Remote Function Call (TRFC) can be used in the integration solution. IDocs are transferred to a specified application process (such as the driver) via the SAP Gateway.

Complete the following two tasks to create a TRFC port definition:

Creating the RFC Destination

If you are distributing data to multiple drivers, each driver must have a unique RFC destination and program ID.

  1. In SAP, enter transaction code SM59.

  2. Click the Create icon.

  3. Name the RFC destination (use the driver’s logical system name, such as, DRVCLNT100.)

  4. Select T as the connection type (for a TCP/IP connection.)

  5. Add a description for the destination (such as JCo Server in IDM User Driver.)

  6. Save your entry.

  7. Select the option for Registration or Registered Server Program. Type the program ID to be used for the driver. In the default driver configuration, this value is set to IDMUser100.

  8. (Conditional) If the SAP server is configured to use a Unicode* database, complete the following steps:

    1. Select the Special Options tab.

    2. Select Unicode.

  9. Save your entry.

Creating the TRFC Port Definition

If you are distributing data to multiple drivers, each driver must have a unique TRFC port.

  1. In SAP, enter transaction code WE21.

  2. Select Transactional RFC, then click the Create icon.

  3. Select Own Port Option Name.

    1. Type a port name (such as IDMPORT).

    2. Type a description for the port definition (such as Port to IDM User Driver).

    3. Select a version (such as IDoc record types SAP release 4.X)

    4. Specify the RFC destination. This is the name of the RFC destination representing the driver (such as DRVCLNT100.)

  4. Save your entry.

5.4.2 Creating a File Port Definition

A file port can be used in the integration solution. IDocs are transferred to a file in a specified file system location accessible by the SAP host system.

If you are distributing data to multiple drivers, each driver must have a unique file port.

  1. In SAP, type transaction code WE21.

  2. Select File, then click the Create icon.

    1. Type a port name (such as IDMFILE).

    2. Type a port description (such as File Port to IDM User Driver).

    3. Select a version (such as SAP release 4.X).

  3. Define the outbound file:

    1. Select the physical directory. This is the directory where you want IDocs placed. You might need to create this directory.

      Type the directory where the outbound files are written, for example: \\sapdev\nov\sys\global\sapndsconnector.

    2. Type the function module name. This names the IDoc file in a specific format. Use the following format: EDI_PATH_CREATE_CLIENT_DOCNUM.

  4. Save your changes.

    You do not need to configure the other three tabs for the port properties (outbound:trigger, inbound file, and status file).