Skip to Content
author's profile photo Former Member
Former Member

Need to backup the file before processing in XI

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:30 PM

    Hi,

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

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 06:42 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 07:06 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.