Skip to Content
avatar image
Former Member

multiple archieve

hi experts,

My entire requirement here is 😔

In repository I created dummy data types, message types and message interfaces. No mapping programs and interface mappings!

Well, in this case I am using XI as a mere FTP service.

I am picking multiple files from multiple location of same FTP server using advance file selection.

So I am using only one sender communication channel.

And sending to target location.

My problem is:-

At sender communication channel I want to archieve the files at multiple location of same FTP server based on file name.

Is it posible to archieve at multiple location based on input file name?

Let me know if i have explained the requirements correct. and feasible solution for my requirment.

Regards,

Jaideep

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 22, 2009 at 07:35 AM

    Baid,

    Since you are using FTP I dont think you can be able to run OS commands like move etc. So the best thing would create different sender communication cahnnels for each file so that you can archvie and send it across. Also for this you dont need dummy data types etc. You dont need anythign in IR. Only ID is needed.

    Regards,

    ---Satish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 22, 2009 at 05:43 AM

    Hi ,

    According to your scenario IR is not needed . Only ID is needed

    In ID you are picking files from multiple location using advance file selection good. But while archiving you can have a common directory where you have to place the files .

    Also you have an option to place the error files seperatly in error archive file folder.

    Solution for your case may be you can use time stamp and Dynamic file name concept so that you can get the original file name and the date and time when its processed in the archive folder

    Regards,

    Jude

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 22, 2009 at 05:56 AM

    you need to write the script in such a way that file name has to be passed to the script and script should fetch the folder and where you need to archive the same

    Try like below

    do a transfer of file to common folder using ftp commands in normal file (you can check wiki link for the same)

    then write a vb script for copying the file to target folder based on the file name...

    Catch hold some vb guys (its a very simple..)

    Hope you got ...

    Rajesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      oops the above logic will work only for NFS

      if you want to archive the data received from FTP to NFS folders then do the below

      https://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature

      Copy file to NFS using code in link and after that need to write VB script for the copying to different folders based on filename

      fo FIle system I dont think its possible to execute the script there

      Rajesh