cancel
Showing results for 
Search instead for 
Did you mean: 

FTP_TO_FTP

Former Member
0 Kudos

Hi All,

How can i make sure all the files in the source folder are transferred to the target ftp server, to launch a script to process those files?

Thank you

Ganges Leaves

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

From what I undrerstand you wan to use SAP XI as ftp for transfering files.

You can do this by just creating a data type with one segment and field called row.

Do not create message mapping and just read the file and write it to destination directory.

If you are using shell script then u don't need SAP XI.

Regards

Vijaya

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

if you want to use the XI for ftp transfet

(without any conversion)

I suggest using java proxy for that

you can call the proxy with BPM

and just copy the file within the proxy

this way you can save much performance

in your solution and you will know if all

files where transferred or not

(as you can transfer all with one proxy call)

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Michal,

Is there any java api for FTP ftom SAP?

Can I use any open source libs to do this file transfer.

Thnak you

Ganges Leaves

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>Can I use any open source libs to do this file transfer.

of course you can

all you need to do it to generate proxies from the XI

and use free libs for FTP as you say

that's what we did

but there's a trick

it's better do use 2 proxies in your BPM

(you can correlate them)

so in your BPM you have on send step to java proxy

and inside this java proxy you call the other java proxy

(with correlation value) - receive step

if you use one sync java proxy you may have timeout problems and with that 2 proxy approach you won't

Regards,

michal

Former Member
0 Kudos

Hi Michael,

Can we do this without using BPM?

I have a scenario in which I just need to transfer a flat file to an external system. No mapping is required. We are not using BPM. I read your comments on using Java proxies to transfer large files. I know that we can use standard Java IO APIs to copy the file over. However, I don't know how to implement this.

In my scenario an SAP tranaction will create the file. I just need XI to pick it up and FTP it to another server. Can you point in the right direction as to how i should go about imlementing this?

1. I assume i will still have to use file adapter to pick up the file.Right?

2. Then, i use Java server proxy to FTP it to the target system?

3. In order to generate the proxy i need a message interface. Should i use a dummy MI as my inbound and outbound that points to a dummy message type?

Appreciate your help on this.

Thanks,

Birla.