3.3 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.

3.3.1 Creating a TRFC Port Definition

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, specify transaction code SM59.

  2. Click the Create icon.

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

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

  5. Specify 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. Specify 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, specify transaction code WE21.

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

  3. Select Own Port Option Name.

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

    2. Specify 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.

3.3.2 Creating a File Port Definition

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

  1. In SAP, specify transaction code WE21.

  2. Select File, then click the Create icon.

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

    2. Specify 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.

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

    2. Specify the function module. 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).