cancel
Showing results for 
Search instead for 
Did you mean: 

About File Adapter

Former Member
0 Kudos

Hi all...

As iam new to XI can any one help me..

In File Adapter communication channel in processing parameters there is one attribute

as "Operating System Command" .

Can anyone explain for which purpose it is used.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

praneeth,

Operating system command is used when we need some operation to be done after or before successful file processing. some of the cases like running a batch file, renaming the file copying the file etc.,

Example

rsh <server> <file.bat> rename filename=%f notrigger

check these too,

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

%f - file name

Regards,

Yuva

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi,

Check this links which all about File Sender or Receiver adapter.

/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

- IDoc to File

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

- ABAP Proxy to File

/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30

- File to JDBC

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

- File to ABAP Proxy

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

- File to File Part 1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

- File to File Part 2

/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping

- Any flat file to any Idoc

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

- File to RFC

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]

- File to Mail

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

- Dynamic File Name Part 1

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

- Dynamic File Name Part 2

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

- Collection of IDoc to Single File

Check this links for File content convertion.

File content conversion sites

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns

/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem

/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

Regards,

Phani.

Reward points if Helpful

nisarkhan_n
Active Contributor
0 Kudos

Run OS command ( beofre the mesasge processing and after message processing)

this gives you the option to call any Script the the comand prompt level, before and after mesage processing.......

Former Member
0 Kudos

Hi

operating system command is used for doing some functionality to your file either for sending or reciving .

for example for zipping a file at the reciving side you can use this concept.

for more have a look on this blog.

/people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover

Thanks

sudhir sharma

Former Member
0 Kudos

Hi praneeth kuchana ,

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)

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

The following web-site gives a detailed information about usage of operating system command

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

*********Reward points if u find this useful

Regards,

gyanaraj

Former Member
0 Kudos

Hi

For Command Line -

An operating system command is specified here which gets 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).

For Variable Substitution- this is for target Directory/File Name Scheme

If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. You can enter each variable that you reference in the Target Directory and File Name Scheme fields Name of Variables

Also Refer the answers :

https://www.sdn.sap.com/irj/sdn/profile?userid=3644707

Thanks

santhosh_kumarv
Active Contributor
0 Kudos

Hi Praneeth,

This option is used to specify some OS commands that needs to be executed before/after the actuall message is processed.

Have a look at this Blog <a href="/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions: Command line sample functions</a> By Michal Krawczyk.

This has an example of copying and archiving a file using OS command.

Regards

San

Where there is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way.

Former Member
0 Kudos

You can specify if you want to run a specific command on the operating system.

Eg. On a unix system you might do something like.

mv /tmp/file/data.txt /tmp/file/used

Former Member
0 Kudos

Hi,

Just go through it:

<b>Configuring the Receiver File/FTP Adapter</b>

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Regards,

Sarvesh