on 2022 Feb 23 2:36 PM
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é
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
51 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.