Show TOC

 Defining Operating System Commands Before/After ProcessingLocate this document in the navigation structure

Use

You can define operating system commands that are to be executed by the file/FTP adapter before and after message processing.

Caution

Only those users with assigned role SAP_XI_CONFIG_FILE_OS_CMD_J2EE are authorized to define operating system commands.

If an unauthorized user defines operating system commands in the file/FTP adapter, an error message is displayed at activation of the communication channel.

When you have created a file/FTP communication channel with operating system commands in an earlier release without the required authorization and try to import the communication channel into Integration Directory in the current release, also a corresponding error message is displayed.

Procedure
  1. Enter the operating system command in Command Line.

    Default value: Empty string (no command)

    Note

    When the operating system command is called, you can specify the file name currently being processed with the following placeholders:

    %f(file name)

    %F (absolute file name including path)

  2. Under Timeout (secs), specify the maximum runtime of the command in seconds.

    When this time interval is exceeded, the adapter continues processing. The executable program continues to run in the background.

  3. If you want the adapter to terminate the program to be executed in the event of a timeout, select Terminate Program After Timeout.
Result

The adapter writes the output (STDOUT and STDERR) for the operating system command in the system trace.

Message processing is independent of any errors that occur during the execution of a configured operating system command.