This blog will explain the setup of the LOCL printer in SAP. Any output send to the LOCL printer will use the SAP GUI to call the windows printer list on your laptop or desktop and send the print there.
Setup of LOCL printer
Start transaction SPAD and create printer LOCL (with short name as well LOCL):
And on the access method tab enter this information:
How can I avoid large spool outputs in background jobs?
How can I setup LOCL printing?
Spool number range and status
If your spool system for printing is getting out of numbers, the printing stops and even endangers your complete system. The signal is shortdump COMPUTE_BCD_OVERFLOW as described in OSS note 2208342 – Shortdump COMPUTE_BCD_OVERFLOW.
You can store a print list in the data archive. For setup see this blog.
Avoiding large spool in background job output
If you have a batch job with large spool output and you never look at it, you can also setup device type NULL to immediately delete the output. This way the spool system is not filled up. For setup see this blog.
Transaction SPOOL contains links to most important spool transactions. See this dedicated blog.
Setup of LOCL printing
For setup of LOCL printing, read this dedicated blog.
Spool error for LOCL printing
When a user is trying to use the LOCL printer as printer for background job, off course the background job cannot reach the printer and will throw an error message:
For some batch jobs you want to have the execution done and don’t want to fill up your system with large spool files of this execution. This blog will explain to setup printer NULL to have a batch job suppress the output generation.
Questions that that will be answered in this blog are:
How do I setup printer NULL?
How to test the setup of printer NULL?
Where to find more background information on printer NULL?
Setup of printer NULL
Start transaction SPAD to define a new printer. Now create printer call NULL (with long and short name both NULL):
Select a simple windows driver. Fill the other mandatory fields. Add the message description clearly that the output will be lost.
Save the printer definition.
Testing the NULL printer
From the blog explaining the technical clean up we will take program RSWWHIDE. This program generates huge amount of output (per deleted item 3 to 10 lines). We will run the program twice in test mode: once with printer NULL and once with printer LP01 (default printer). Selection of printer NULL is same as with any printer:
Result in SM37:
The first run with printer NULL has suppressed the generation of the spool file.