cancel
Showing results for 
Search instead for 
Did you mean: 

operating system field in comm channel

Former Member
0 Kudos

hi

what is the purpourse of operating system field in comm channel, when will we use it.

regards

raghu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In file adapter has an option of writing an unix script for performaing certain tasks.

Refer the below link for better understanding with example.

/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

Run Operating System Command Before/After Message Processing

● Command Line

An operating system command specified here is executed before or after the message processing of a file that was found in a run. The default value is an empty character string (no command).

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

● %f (file name)

● %F(absolute file name including path)

● Timeout (secs)

This specifies the maximum runtime of the executing program in seconds. When this time interval is exceeded, the adapter continues processing. The executing program continues to run in the background.

● Terminate Program After Timeout

Set this indicator if the adapter is to terminate the executing program when the timeout is exceeded.

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.

Thnx

Chirag

Former Member
0 Kudos

Hi,

Chirag have already given the explanantion available on SAP help about the usage of Operating system commands in communication channels.

Its very helpful.

Just extending to it

OS commands are used for File adapter

Operating system command can be used in two ways

1. Before Message processing

2. After Message Processing

You could trigger or schedule the events on FTP adapter as per the requirments of the file processing. For e.g. suppose you need to creaet the mirror image of the file to be processed by XI, then you could add the Operating system command in under After processing tag.

It will keep the file as per the target directory of communication channel and then will process the commmands on FTP.

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

You could trace it in RWB monitoring.

Remeber failure of Operating system commands will not affetc the processing of file from XI. You will get the trace in RWB on that basis you could rectify it.

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

Refer

http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/frameset.htm

XI: Operation system command - error catching

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

Thanks

Swarup

Edited by: Swarup Sawant on Feb 18, 2008 7:27 AM

Answers (0)