cancel
Showing results for 
Search instead for 
Did you mean: 

File transfer using PI - unchanged files from filesystem to FTP

Former Member
0 Kudos

Hi guys,

do you have any suggestion how to move files (whatever format, .doc, .mov, .csv...) from a local filesystem to FTP without changing even it's name?

I saw a couple of threas but noone resolves this type of scenario.

Thanks in advance, any suggestion welcome.

Andrzej

Accepted Solutions (1)

Accepted Solutions (1)

jagdishwar_b
Active Participant
0 Kudos

>>to move files (whatever format, .doc, .mov, .csv...)

to send any data (even binary) through XI, see http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4383

>>without changing even it's name?

Use ASMA. see http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2664

regards,

BJagdishwar.

Former Member
0 Kudos

Hi,

I have tried the scenario w/o repository objects. It picked up the file, transferred it, named it correctly based on ASMA. But this works well only for text files. When I try to pass a binary file (I tried a Word document), the target file was corrupted. It was smaller than the original one. 39702kB vs 39505kb. Both CCs were set for binary transfer.

One more info: I have not transferred it as an attachment, but in the payload.

Any idea, why it produces smaller/corrupted files?

Thanks,

Andrzej

Former Member
0 Kudos

Good news guys! I found the problem. There are actually 2 places in CC to set the file type.

You need to set file type to Binary and file transfer type to Binary as well. It works fine.

I created it as a Integrated Configuration for a better performance. Works perfectly!

Thanks to all.

Andrzej

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can use "Integrated Configuration" to configure the scenario that will process messages locally in the Advanced Adapter Engine.

And to keep the original file names just tick the File Name parameter in Adapter Specific Message Attribute.

find the below link on guide to Integrated Configuration:

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/700058f0-b1a1-2a10-39a8-ab2627b87...

Regards,

Aravind

Former Member
0 Kudos

Dear Alakov

Did you tried any of the following approaches

1. Create a file to file scenario: sender side NFS to pick the file from your local folder and receiver side FTP

Enable Adapter specific Message attributes in both the adapters to retain the same file name.

2 . Use adapter module to send the file as an attachment and retain the attachment name

3. Try using scripts to move the file

Sourabh