cancel
Showing results for 
Search instead for 
Did you mean: 

Need to backup the file before processing in XI

Former Member
0 Kudos

Hi all

I need to backup the incoming the file and then processing it in XI.(i.e)sender adapter picks the file and then backup that file and then send it onto IE.

I am aware that there is a option in sender file CC "Run operating system Command Before Msg Proceessing".We have to set one batch file in it.

Could you please explain whats the exact commands for this case?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rajesh,

>>>>backup

For you information you can archive the file details of the modes are below

Processing Mode as

A) Archive

Files that have been successfully processed are moved to an archive directory.

1) To add a time stamp to a file name, select the Add Time Stamp indicator.

The time stamp has the format yyyMMdd-hhMMss-SSS_. The time stamp ensures that the archived files are not overwritten and it enables you to sort them according to the time that they were received.

2)Under Archive Directory, enter the name of the archive directory.

If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system.

B) Delete

Successfully processed files are deleted.

C) Test

Files are not processed.

Only use this mode to test the configurations of the file/FTP adapter or the Integration Engine/PCK. It is not suitable for productive operation.

D)Set to Read-Only

Successfully processed files are given this attribute. Only writable files are processed. This selection is only available for the File System (NFS) transport protocol.

>>>>>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:

1) %f (file name)

2) %F(absolute file name including path)

3) 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.

4) 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.

for more information

http://help.sap.com/saphelp_nw04/helpdata/en/e1/a63d40c6d98437e10000000a155106/frameset.htm

****PS:reward points if useful**

Regards,

Sumit Gupta

agasthuri_doss
Active Contributor
0 Kudos

Hi,

>>I need to backup the incoming the file and then processing it in XI.(i.e)sender adapter picks the file and then backup that file and then send it onto IE.

In the Sender File Adapter go for Archive..that will resolve the backup and simintinously the file also sent to IE.

Regards

Agasthuri Doss

Former Member
0 Kudos

Hi,

You can archive the same file: Entries to be maintained in Communication Channel

Regards,