Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

appending '#' in text file while uploading through CG3z

Hi ,

I created a text file with following parameters

filename: abc
Save as type : Text documents
Encoding : UTF-8

I tried  to upload the abc text file from my PC  to a path in  AL11 tcode  through CG3Z tcode . It got uploaded,but

all lines in the text file ended with '#' which i do not want.Kindly help to avoid '#' character after end of the line.

data is as follows after uploading text file in application server.

2|01.01.2013|31.01.2013|Remarks|jp|||#

2|01.01.2013|31.01.2013|Remarks|jp|||#

2|01.01.2013|31.01.2013|Remarks|jp|||#

2|01.01.2013|31.01.2013|Remarks|jp|||#

Former Member
Former Member replied

Jayaprakash, when uploading a text file with CG3Z, use text mode (ASC), not binary mode. The special sign is x0D. When transferred binary, the Windows newline bytes (x0D0A) will be transported as-is on the server. In a Unix system, the newline character is just '0A'. The '0D' remains as orphan. It will be displayed with the replacement character '#' in the debugger (and elsewhere). Regards, Rüdiger

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question