cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Line feed at the end of the file while using file adapter

Former Member
0 Kudos

Hi All,

I have a requirement. We are sending a file from SAP to FTP using file adapter. we are successful in sending the file to FTP but at the end of the file a extra blank line is created .

Can anyone please suggest how to remove the extra line feed at the end of the file.

Thanks and Regards,

LRK.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

My Query is for Receiver File Adapter.

Thanks and Regards,

LRK

former_member200962
Active Contributor
0 Kudos
My Query is for Receiver File Adapter.

endSeparator can be used in receiver File FCC also...no problem....check this help section:

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

Regards,

Abhishek.

prasannakrishna_mynam
Contributor
0 Kudos

Hello Ravi,

Try this, In Sender/Receiver Communication Channel use 'endSeparator as ´0´ ', when you are performing FileContentConversion.

Regards,

Prasanna

former_member200962
Active Contributor
0 Kudos

check this:

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).

Also there are solved threads which deal with same problem....you can even check them out...

regards,

Abhishek.

Shabarish_Nair
Active Contributor
0 Kudos

1. try giving no endseparator argument for the last record in the file in FCC and try. This will work if the last record say the trailer has occurrence of 1:1 and is not unbounded.

2. If not, then the option is to remove that line feed with a simple module or a OS command/script

Can you also post the FCC parameters you have given?