cancel
Showing results for 
Search instead for 
Did you mean: 

Copying n files

Former Member
0 Kudos

Hi,

I have a directory with a 10-20 files.

i would like to have a scenario wich will once a day copy this directory to another server and keep all files with the same name. how is hte best way to do it?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

java proxy started with anything (schedules abap report or from www etc.)

inside the java proxy you only copy files

(no need to put them into XI)

this way the proxy will be able to handle

as big files as you wish very quickly

you can have configuration on WWW for this (ftp pass user, directory etc.)

Regards,

michal

Former Member
0 Kudos

thank for both answers/

but if i choose to use XI ? (my files are not so big?)

how do i create one scenario generic to copy each file with and keep its name ?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if you choose XI (java proxy)

then you can copy .

from one folder

(you can do the configuration - directory, filename for this proxy

on www so it can be handled easier)

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

Udi,

AM assuming you do not need any mapping etc.

So, create a Dummy Datatype, Dummy Message Type and use the same Message type in your inbound and outbound message interfaces..

No message and interface mapping is needeed.

In your ID, create the necessary configuration.

If you need the same file name as the sender, you can use Adapter Specific Identifiers in your File adapter and poll using . like mentioned by Michal.

Regards,

Bhavesh

Former Member
0 Kudos

i agree i don't need any mapping, but in the receiver communication channel , don't i have to give the destination file name? BYT what do you mean by WWW ?

bhavesh_kantilal
Active Contributor
0 Kudos

Udi,

<i>would like to have a scenario wich will once a day copy this directory to another server and keep all files with the same name. how is hte best way to do it?</i>

<i>but in the receiver communication channel , don't i have to give the destination file name</i>?

This is what you need to do.

Sender File Adapter

1. Adapter Specific Identifers -- Select File Name

Receiver File Adapter

1. Adapter Specific Identifiers -- Select File Name

In your Receiver File adapter ~~ FIle Name , give some dummy value . Now, when the Interface is run, the name of the File from the Source will be taken as the File Name for the target as well.

Regards,

Bhavesh

Former Member
0 Kudos

How will it take th name dinamiclly ?

if i put a dummy file name it creates it with a dumy name

bhavesh_kantilal
Active Contributor
0 Kudos

Udi,

Can you confirm this is what you did,

1. In the Sender File adapter -- You selected ADAPTER SPECIFIC MESSAGE ATTRIBUTES --> FILE NAME

2. In the receiver File adapter -- You selected ADAPTER SPECIFIC MESSAGE ATTRIBUTES --> FILE NAME

You gave a dummy name for the filename..

and you are on SP 14 and above. I have tried this and i can confirm if this is what you have done, it will work.

You can also take a look at michal's blog,

<a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14">Same filename from sender to receiver</a>

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Udi,

When I tried this scenario, what I did was in my sender file adapter I did not have . but, the actual filename as XYZ>.XML.

So , maybe adapter specific identifiers work only with specific file names.

Regards,

Bhavesh

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

Mike solution sounds good ...

maybe you can also have this as a alternate solution if the file size aint that big - /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp