The example demonstrates how you can capture a report output from an arbitrary report ans output its lines in SapScript format.
This is useful, if you want to make use of special fonts that are supported by SapScript. SapScript - contrary to normal list printing - can use all fonts supported by your print server. Those are usually all fonts supported by Windows NT. Standard report printing supports only the printer built in fonts.This does not only restrict the number of fonts you may use with your report. It can also lead to differently looking output on different printers. With SapScripts outputs look the same on all well-installed printers.
The example print form has one window defined:
The window MAIN is the default window and exists in all SapScripts. You cannot remove or rename that window.
If the list is very wide, you would set the page format to landscape as it is in the example.
The controlling ABAP will do the following steps: