cancel
Showing results for 
Search instead for 
Did you mean: 

multiple archieve

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

thanks Rajesh for the response.

Can you explore litle more.

I have no idea about this..

Thanks

Jaideep

former_member183908
Active Contributor
0 Kudos

Hi

Refer This articel which explains about the Archiving of the messages.

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a23...

Thanks

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

thanks for your quick response.

My question is:--

Is it possible to archieve the files at different directories.

Thanks

Jaideep

prateek
Active Contributor
0 Kudos

Is it possible to archieve the files at different directories.

Using a single channel, answer is No. Try using multiple channels.

Regards,

Prateek