Show TOC

Defining OS Commands for Message Processing by SFTP AdapterLocate this document in the navigation structure

Prerequisites

You are assigned the role SAP_XI_CONFIG_FILE_OS_CMD_J2EE to authorize you to define operating system commands.

Note

If you are not authorized, you cannot import communication channels from earlier releases into the current release or create the communication channels in the current release of Integration Directory using the operating system commands.

Context

You define the Operating System (OS) commands to allow the SFTP adapter to execute message processing.

Procedure

  1. On the Display Configuration Scenario screen, choose the Objects tab page.
  2. In the Type column, double-click the Communication Channel.
  3. Choose Edit to configure the adapter.
  4. In the Edit Communication Channel screen area, configure the sender and receiver SFTP adapters.
    Note

    For more information on how to configure the sender and receiver channels with the SFTP adapter, see Configuring the SFTP Sender Channel and Configuring the SFTP Receiver Channel.

  5. On the Processing tab page, enter details for Run Operating System Command Before Message Processing and Run Operating System Command After Message Processing by following the sub-steps below:
    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)

    1. In the Command Line field, enter the operating system command.

    2. In the Timeout field, enter the maximum runtime of the command in seconds.

    3. Select the Terminate Program After Timeout option to allow the adapter to terminate the program to be executed in an event of a timeout.

Results

The following results achieved after executing the operating system command:

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

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