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.
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:
If you are distributing data to multiple drivers, each driver must have a unique RFC destination and program ID.
In SAP, enter transaction code SM59.
Click the
icon.Name the RFC destination (use the driver’s logical system name, such as, DRVCLNT100.)
Select
as the connection type (for a TCP/IP connection.)Add a description for the destination (such as JCo Server in IDM User Driver.)
Save your entry.
Select the option for
or . Type the program ID to be used for the driver. In the default driver configuration, this value is set to .(Conditional) If the SAP server is configured to use a Unicode* database, complete the following steps:
Select the
tab.Select
.Save your entry.
If you are distributing data to multiple drivers, each driver must have a unique TRFC port.
In SAP, enter transaction code
.Select
, then click the icon.Select
.Type a port name (such as IDMPORT).
Type a description for the port definition (such as Port to IDM User Driver).
Select a version (such as IDoc record types SAP release 4.X)
Specify the RFC destination. This is the name of the RFC destination representing the driver (such as DRVCLNT100.)
Save your entry.
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.
In SAP, type transaction code WE21.
Select
, then click the icon.Type a port name (such as IDMFILE).
Type a port description (such as File Port to IDM User Driver).
Select a version (such as SAP release 4.X).
Define the outbound file:
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.
Type the function module name. This names the IDoc file in a specific format. Use the following format: EDI_PATH_CREATE_CLIENT_DOCNUM.
Save your changes.
You do not need to configure the other three tabs for the port properties (outbound:trigger, inbound file, and status file).