cancel
Showing results for 
Search instead for 
Did you mean: 

End of file indicator in download or spool request - Unix server

a_meijer
Explorer
0 Kudos

We are on SAP ECC 6.0 / SAP Netweaver 7.0 and use an Unix server.

We execute a report in the background (program FAGL_ACCOUNT_ITEMS_GL, t-code FAGLL03). The spool / output request created in the background job is saved in a directory on the Unix server. The printer used to create the file is defined as ASCII printer (device type ASCIIPRI).

The file created contains an end of file character at the end of the report. In HEX it looks like:

In Notepad it looks like:

On the Unix server it looks like:

Anybody knows if / how it is possible to create the file without this end of file indicator? Without the need to write any custom ABAP code / program.

The file is retrieved from the Unix server and converted to a XML file. This end of file indicator causes errors when converting the file from flat file format to XML.

Thanks,

André

Accepted Solutions (0)

Answers (1)

Answers (1)

aidan_black
Active Contributor
0 Kudos

Hi,

There are commands in the actions "End of Page" and "End of Line" for each list format in the device type ASCIIPRI. See the command \r and \f which are for Carriage Return and Form Feed

SPAD -> Full Admin -> Device Types -> ASCIIPRI -> Formats -> e.g. X_65_132 -> End of Page
\r
\f

For action End Of Line there are commands \r and \n which are for Carriage Return and Line Feed

SPAD -> Full Admin -> Device Types -> ASCIIPRI -> Formats -> e.g. X_65_132 -> End of Page
\r
\n

You could copy the device type ASCIIPRI to a custom device type ZASCIIPRI and remove the commands from the "End of Page" and perhaps also the "End of Line" actions. The end of line action commands are necessary for a new line after each line of the report however.

Best regards,
Aidan