How to Configure Printer in SAP and check via LPSTAT Command

By | 22/12/2013

Configure Printer in SAP and check via LPSTAT Command

 

Configure Printer in SAP and check via LPSTAT Command

Create Printer
Enter the T Code -SPAD.
In Spool Administration screen, click on Display against Output devices. This will list out all output devices configured in the SAP system.
Click on the Create button to add a new printer.

In Device Attribute Screen below, put the name of the Output device, Device type, Device Class, Model and Location of Printer.
output device = put the name of the printer
short name = put any short name
device type = select printer type like epsio,hp etc.
spool server = select spool server name
device class = select class otherwise standard

In Access method screen, select Host Spool Access Method and Host Printer.
In Host Printer, you can attach default printer of the machine where the user has logged in, by writing “__DEFAULT”.
Check or uncheck “No Device Selection at Frontend” as per requirement.
host spool access method = S: Print using sap protocol
host printer = printer name which is given by you
destination host = IP address of the printer
connection option
connection time = 0
port number = 515 may differ as per printer
response time = 0

Output attributes
host spool cover page = do not print host spooler cover page
in below of process request sequentially
press copy counter to host spool system
print mode = default printer default setting
printer tray = default tray
Click on save button to save settings.
If you have not selected short name in device attribute screen then the system will show below message. Click yes to go ahead.
The system will show below Message.

Delete Printer
In Spool Administration screen, click on Display against Output devices. This will list out all output devices configured in SAP system
Select the printer you want to delete and click on delete button.

Delete Old Spool Log
Enter the T Code -SPAD.
In Spool Administration screen, go to the admin tab.
Click on Delete Old Spool requests.
Check “Old Spool requests older than the maximum set age”. Enter the minimum age. And press Enter. It will delete the old spool requests.
The system will display log as below.

LPSTAT Command
The status of the Print Queue in using the command LPSTAT
lpstat -p < Print Queue Name>
There you will get status of Print (Ex: Running, Sending and failed).
Commands like lpstat -p and lsque -q or for that matter lssrc -g spooler (AIX) will be valid also on the Type of Printing you use (Access method)

For more information, please read S Note 118057 – Flexible Configuration of the Spool Service

Source: wiki.scn.sap.com


Click on the following link to read more blog posts

 

One thought on “How to Configure Printer in SAP and check via LPSTAT Command

  1. Pingback: Netweaver license key - SAP Wine

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.