11-16-2007 4:49 PM
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
11-16-2007 4:58 PM
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.
11-16-2007 5:10 PM
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