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.
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, type transaction code SM59.
Click the
icon.Name the RFC destination (use the driver’s logical system name, for example, 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, type 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.
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. This names the IDoc file in a specific format. Use the following: 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).