Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FTP under SAP ECC6

Former Member
0 Kudos

Hello Ladies and Gentlemen,

Does anyone can explain why when I use the FTP Function module with ABAP program the command PUT write the file in Unix Format with LF (OAx) rather than

CR LF(ODxOAx).

We use this program to put a file created under HPUX to Windows System.

Thanks for your help

Regards

Bernard Giannesini

email bernard.giannesini@smurfitkappa.com

2 REPLIES 2

Former Member
0 Kudos

Hi,

I don't know this FM but I had this problem once when I tried to transfer files from a linux server to a windows server through FTP protocol.

I think you should look for a parameter for switching the transfer mode. When transfering files in BYTE mode, no conversion is applied so if your file comes from a unix system, you'll get LF chacracter at end of every line, and the file will look weird in a windows system.

If you use ASCII mode, those special characters which are system dependent will be automatically translated.

Hope this helps.

Regards,

Nicolas.

Clemenss
Active Contributor
0 Kudos

Hi Giannesini,

use ftp mode binary. Otherwise it is text mode an will take note of unix system not using CRLF but LF only.

Regards,

Clemens