Printer Setup and Process
Printer Setup and Process
Use
SAP provides its own remote printing solution for printing from Microsoft Windows
PCs. This solution uses the SAPLPD transfer program to transfer output requests from
the SAP spool server to the Microsoft Windows spooler. You can use SAPlpd in all
Microsoft Windows systems. With Microsoft Windows NT/2000, remote printing can
also be implemented using the TCP/IP Print Server.
However, SAP recommend that you use the SAPlpd transfer program, as the TCP/IP
Print Server can only forward data that has already been formatted for the printer, that is,
device-specific data, directly to Microsoft Windows without using Microsoft Windows
printer drivers. SAPlpd, on the other hand, can also interpret data streams that were
generated with the generic, that is device-independent, device type SWIN/SAPWIN, and
call the appropriate Microsoft Windows drivers that generate device-specific data
streams. You can therefore use printers with SAPlpd that are not specifically defined in
the SAP System, but which are addressed device-independently.
Procedure
To set up the print architecture for remote Microsoft Windows PC printing, follow the
procedure below:
Define the printers you want to use in the Microsoft Windows spooler.
You can use both locally connected and shared network devices.
Example:
Assume you have the following configuration:
· An application server named HPUX_C11_11 on a UNIX workstation with the
host name HPUX.
· A Microsoft Windows NT PC called PC0033.
There is not an SAP application server with a spool work process on the Microsoft
Windows PC PC0033. You therefore want to use HPUX_C11_11 as a spool server
for printing SAP data.
The SAP spool server (application server with a spool work process) with the ID
HPUX_C11_11 must provide the spool processing and therefore requires at least
one spool work process.
The number of spool work processes is defined by the parameter rdisp/wp_no_spo,
and this must always be set to at least 1.
On the Microsoft Windows PC PC0033, start the transfer program SAPlpd that is
installed together with the SAPGUI frontend software.
SAPLPD is the Line Printer Daemon (LPD) developed by SAP for Microsoft
Windows. In this way, you can also use the functions that an LPD provides in
UNIX in Microsoft Windows.
You can automatically start SAPLPD by adding the program icon to the start
program group.
Starting SAPlpd
You need to start only a single instance of SAPlpd on a Microsoft Windows PC.
This instance of SAPlpd can accept output from any of your SAP Systems, if the
Microsoft Windows printers are defined in more than one system. For example, you
can use a single SAPlpd instance to accept output data from both your production
and test SAP Systems
Define printer \\PC0035\LPT1 in the Microsoft Windows spool system for the PC
PC0033 as an output device.
A target device must be specified for the output for every document to be printed in the
SAP System. As the document can be output using not only printers, but also archiving
devices, these devices are called Output Devices in the SAP System, output devices are
the logical representations of the real output devices
Example: In the instance profile of the spool server mn1234_YXZ_99, the number
of spool work processes is defined as 2 using the profile parameter
rsdisp/wp_no_spo, and the number of spool work processes reserved for front-end
printing is defined as 2 using the profile parameter rdisp/wp_no_spo_Fro_min.
Increase the value of rdisp/wp_no_spo to at least 3.
For more information, see SAP Note 351492 in the SAP Service Marketplace.
Spool / Print Process Praveen Bheemarapu
Procedure:
There are two types of front-end printing. Front-end printing with access method F,
which works with the transfer program SAPlpd, is the traditional type of front-end
printing. Since SAP Web AS 6.20, there is also a new procedure for front-end printing
available to you, which you can use in parallel: front-end printing using control
technology with access method G. This no longer requires SAPlpd. The printer selection
is also no longer displayed in the SAP system. Instead, a Microsoft Windows printer
selection window is called directly from the control. The restriction on the length of
printer names therefore no longer applies
Prerequisites:
Authorizations
In addition to the general print authorizations, every user requires the following
authorizations for front-end printing:
Authorization object S_SPO_DEV, authorization field SPODEVICE, authorization
%LOC
Authorization object S_RFC:
Field Value
RFC_TYPE FUGR
RFC_NAME LPRF
ACTVT 16
Architecture Prerequisites
You can find the newest versions in the Software Center of the SAP Service Marketplace
(http://service.sap.com/patches).
Spool / Print Process Praveen Bheemarapu
To be able to address users’ front-end printers from the SAP system, the corresponding
device definition must contain the following details:
If you define an output device in an SAP system, specify the type of connection
with which the output device is to be addressed. This connection type is known as
the access method and is identified by a letter.
In the case of an output device for front-end printing, this is access method F or G,
depending on whether you want to use front-end printing with SAPlpd or front-end
printing with control technology.
So that the default printer at every host can be primarily addressed, you must
specify the host printer __DEFAULT (two underscores) in the device definition.
__DEFAULT calls the relevant default printer name.
Of course, you still have the option of selecting another printer:
In the case of front-end printing with control technology (access method G), the
printer selection window of the Microsoft Windows operating system is displayed.
You can choose a printer other than the default printer in this window.
In the case of front-end printing with SAPlpd (access method F), you can select
another operating system printer in the printer selection window of the SAP system.
However, to be able to do this, the option No Device Selection at Frontend must
be inactive in the device definition.
We recommend that you specify the device type SWIN or SAPWIN, or the relevant
language-dependent version of SAPWIN to ensure that the system sends a printer
format that any Microsoft Windows driver can interpret (see SAP Note 423003 in
the SAP Service Marketplace).
However, you can also use any other SAP device type for front-end printing.
Follow the procedure below to create a device definition for front-end printing:
...
Call transaction SPAD, and choose Output Devices.
If you are not in change mode, switch to this mode by choosing Change.
You can now do the following:
You can create a new device definition by choosing Output Device ® Create.
You can use an existing device definition as a template.
To do this, click the entry for the output device that is to be used as a template, and
choose Output Device ® Create Using Template.
Spool / Print Process Praveen Bheemarapu
Fill out the mandatory fields of the device definition as follows for front-end printing:
Field Entry
Device Enter a name for the output device that makes it
Attributes Output device clear to your users that this is the front-end
Tab Page printer, such as LOCL.
We recommend that you use the device type
SWIN, SAPWIN, or a language-specific version
for Microsoft Windows PCs. However, you can
Device type use any device type.
Use the device type pdf1 or a language-specific
version for Front-End Printing Using SAP GUI
for HTML.
Host Spool Enter the access method F or G for front-end
Access Access printing, depending on which type of front-end
Method tab Method printing you want to use.
page
Enter the name __DEFAULT to use the default
printer at a Microsoft Windows system.
In the case of front-end printing with control
technology (access method G), the printer
selection window of the Microsoft Windows
operating system is displayed. You can choose a
printer other than the default printer in this
Host Printer
window.
In the case of front-end printing with SAPlpd
(access method F), the option No Device Selection
at Frontend must be inactive for the user to have
the option of selecting a printer other than the
default printer in the print window of the SAP
system.
Save your entries.
Result
When you save the device definition, it is available for your users’ use. To print
documents using their front end, users must enter the name of the output device that you
have just created in the Output Device field of the print window.
Spool / Print Process Praveen Bheemarapu
Example
The following example shows the device definition for front-end printing with the output
device LOCL (access method F). If users enter LOCL as the output device, their
operating system default printer is used.
As the option No Device Selection at Frontend is not selected, the user can enter the
output device LOCL in the print window and choose enter. A list then appears showing
the other printers defined on his or her work station PC, from which the user can then
select the printer that he or she wants to use.
Spool / Print Process Praveen Bheemarapu
General
No print output
Output incorrect