Featured

How to Configure Printer in SAP and check via LPSTAT Command

hp-officejet-all-in-one-printer-photo
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 SAP system.
Click on Create button to add new printer.
 
In Device Attribute Screen below, put name of Output device, Device type, Device Class, Model and Location of Printer.
output device = put 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 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 be 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 system will show below message. Click yes to go ahead.
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 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.
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

Post a Comment

Any difficult to understand and implement this then don’t hesitate to ask me via comments Your comments are always appreciated except spam.

CodeNirvana
Newer Posts Older Posts
© Copyright Full SAP BASIS
Back To Top