cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI text file issue using SFTP

Former Member
0 Kudos

Hello

my scenario is to AL11 (using CC FTP sender ) --> PI (using CC SFTP receiver ) --> FTP server

I'm facing an issue with SFTP CC where the communication channel picks up the text file from the SAP directory(AL11) then convert the text file from multiple lines to single line.

does anyone knows why this is happening?

weberpat
Contributor
0 Kudos

This could simply be a display problem. How are you retrieving the files from the SAP application server vs. the target server and which operating systems are running on these machines? If your SAP system runs on Linux or Unix, the text file will be written with LF as the end of line character. If you download the file to your PC in ASCII mode, that character will be translated to CRLF so the correct line break is displayed in the standard windows editor. If you open the file on the target server directly or download it in binary mode, Notepad would not show an LF line break.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member190293
Active Contributor
0 Kudos

Hi Yazeed!

Did you try to open your result file in any text editor, rather than in Notepad? Notepad doesn't reflect on line breaks in some cases.

Regards, Evgeniy.

former_member186851
Active Contributor
0 Kudos

Try creating a new sftp channel and check once

manoj_khavatkopp
Active Contributor
0 Kudos

Yazeed,

Do you have any FCC/Module in sender or receiver channel ? If its just pass through scenario then you dont need any such conversion.

Br,

Manoj

Former Member
0 Kudos

Hello Manoj

If didn't use any module I get the below error.

and if I used the below module the channel won't pickup the file (no error in the log), it will only pickup if I used the "exit" module but it will convert the file content into a single line.

former_member190293
Active Contributor
0 Kudos

Hi Yazeed!

Manoj told about any additional modules, not the standard adapter modules that shouldn't be removed.

Regards, Evgeniy.