Show TOC

Procedure documentationDefining OS Commands for Message Processing by SFTP Adapter Locate this document in the navigation structure


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


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

Note 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.

End of the note.


  1. On the Display Configuration Scenario screen, choose the Objects tab page.

  2. In the Type column, double-click the Communication Channel.

  3. Choose Switch Between Display and Edit Modes icon (Switch Between Display and Edit Modes icon) to edit the adapter details.

  4. In the Edit Communication Channel screen area, configure the sender and receiver SFTP adapters.

    Note 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.

    End of the note.
  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 substeps below:

    Note 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)

    End of the note.
    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.


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.