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: 

Inserting blank line in application server file

Former Member
0 Kudos

Hello Everyone,

I am downloading the data into application server by using transfer command.

Interesting thing is coming.

Automatically blank line is getting inserted at the end of the file if i open the file in edit plus or third party software.

I am downloading text file in application server.

Any clue how to get rid of blank line.

Waiting in anticipation.

Regards,

Tarun

4 REPLIES 4

Former Member
0 Kudos

did you debug to check how your code is transfer from (assuming) internal table.

Ie is there a blank row in your internal table?

0 Kudos

There is no blank row in my internal table.

Thanks,

Tarun

andreas_mann3
Active Contributor
0 Kudos

hi,

i know this phenomenon (e.g. with program ultra edit)

-but this is not an error from sap (command transfer)

and i think it's not important

A.

former_member182371
Active Contributor
0 Kudos

Hi,

i don´t know if it is useful in your case but here it goes:

in an OO environment (using classes and methods) whenever i want to download a file to the application server i create the internal table to be downloaded thus:

DATA:

BEGIN OF ITAB,

field1(2) TYPE C,

...............

fieldn(14) TYPE C,

CRLF(2) TYPE C VALUE cl_abap_char_utilities=>cr_lf

,
END OF ITAB.
Note that the key here is CRLF which stands for "Carriage return/line feed ".

Maybe there is a CRLF somewhere in your code.

Best regards.