Port Type File: Maintaining Port Definition

Outbound

The regulations for generating the outbound file are defined in outbound processing. When you trigger the receiving system using RFC, you also make the command file known (shell script). In the trigger instructions screen it is called out.script.

The user environment in the operating system is not evaluated. This means that you must set parameters explicitly in the command files and all directories must be specified absolutely.

Wдhlen Sie SAP Menь ® Werkzeuge ® IDoc-Schnittstelle/ALE ® Administration ® Laufzeiteinstellungen ® Portpflege (WE21).

...

       1.      Position the cursor on File and choose .

       2.      Enter the name of your external system as the port. Enter a Definition and Version (See F1 Help) for the record types.

       3.      Choose outbound file and enter a directory.

Enter a slash (/) after the directory name, as the path and file are linked.

       4.      To generate the file names, choose an appropriate function module using F4 Help. We strongly recommend that you do not use a static file name, since this file is overwritten each time a new IDoc is sent. SAP recommends that you use the function module EDI_PATH_CREATE_CLIENT_DOCNUM.

To use “logical directories“ see the F1 Help for the corresponding field.

       5.      When you want to trigger: Choose Outbound: Trigger and enter the full directory name for the command file (without the name of the file itself). Enter a slash (/) after the directory name. You have defined the logical destination in the section Outbound: Triggering the receiving system Using RFC. Select Automatic start possible to activate triggering.

As well as the  Access test in the port definition you can test with the aid of report "Test, RFCEXEC" whether program rfcexec correctly executed the command file. Choose the option RFC_REMOTE_EXEC in the report and enter your RFC destination and your command file as the command (or an explicit command for a pre-test).

Inbound

If the upstream system triggers the SAP System using startrfc, the

-E PORT=

Parameter value of startrfc must be entered as the port name. You have already specified the name of the port in step 3 for outbound processing.

When the R/3 System is triggered, the name and path of the file are determined by the upstream system. The following settings only provide default values for the test programs that use the file port .Otherwise, they have no effect.

...

       1.      Choose inbound file and enter a directory as the input parameter for the data.

Enter a slash (/) after the directory name, as the path and file are linked.

       2.      Enter a file name.

Status files

If the upstream system triggers the SAP System using startrfc, the

-E PORT=

Parameter value of startrfc must be entered as the port name. You have already specified the name of the port in step 3 for outbound processing.

When the R/3 System is triggered, the name and path of the status file are determined by the upstream system. The following settings only provide default values for the test programs that use the file port .Otherwise, they have no effect.

...

       1.      Choose status file and enter a directory.

Enter a slash ( / ) after the directory name, as the path and file are linked.

       2.      Enter a file name.

Configure the following values:

Value...

For...

EXT

Name of the external system = port name

/usr/sap/C11/SYS/global/EXT/in

Directory for inbound IDocs

/usr/sap/C11/SYS/global /EXT/out

Directory for outbound IDocs

/usr/sap/C11/SYS/global /EXT/status

Directory for status data