Редактиране

Споделяне чрез


SAP front-end printing with Universal Print

Printing from your SAP landscape is a requirement for many customers. Depending on your business, printing needs can come in different areas and SAP applications. Examples can be data list printing, mass- or label printing. Such production and batch print scenarios are often solved with specialized hardware, drivers and printing solutions. This article addresses options to use Universal Print for SAP front-end printing of the SAP users. For backend printing, see our blog post and GitHub repos.

Universal Print is a cloud-based print solution that enables organizations to manage printers and printer drivers in a centralized manner. Removes the need to use dedicated printer servers and available for use by company employees and applications. While Universal Print runs entirely on Microsoft Azure, for use with SAP systems there's no such requirement. Your SAP landscape can run on Azure, be located on-premises or operate in any other cloud environment. You can use SAP systems deployed by SAP RISE. Similarly, SAP cloud services, which are browser based can be used with Universal Print in most front-end printing scenarios.

Prerequisites

SAP front-end printing sends an output to a printer available for the user on their front-end device. In other words, a printer accessible by the operating system. Same client computer runs SAP GUI or browser. To use Universal Print, you need to have access to such printer(s).

  • Client OS with support for Universal Print
  • Add Universal Print printer to your Windows client
  • Able to print on Universal Print printer from OS

See the Universal Print documentation for details on these prerequisites. As a result, one or more Universal Print printers are visible in your device’s printer list. For SAP front-end printing, it's not necessary to make it your default printer.

Example showing Universal Print printers in Windows 11 settings dialog.

SAP web applications

A web application such as SAP Fiori or SAP Web GUI is used to access SAP data and display it. It doesn’t matter if you access the SAP system through an internal network, public URL or if your SAP system is an ABAP or Java system, or SAP application running within SAP Business Technology Platform. All SAP application data displayed within a browser can be printed. The print job creation in Universal Print is done by the operating system and doesn't require any SAP configuration at all. There's no SAP integration and communication with Universal Print directly.

Diagram with connection between user's client device, Universal Print service and printer.

SAP GUI printing

For SAP front-end printing, Universal Print relies on SAP GUI and SAP printer access method G. Your SAP system likely has one or more SAP printers defined already for such purpose. An example, SAP printer LOCL, defined in SAP transaction code SPAD.

Example dialog in SAP transaction SPAD entry screen.

Example dialog in SAP transaction SPAD showing printer definition.

For Universal Print use, it’s important the access method (1) is set to ‘G’, as this uses SAP GUI’s integration into the operating system. For host printer field (2), value of __DEFAULT calls the relevant default printer name. Leaving option “No device selection at front end” unchecked (3), you're prompted to select the printer from your OS printer list. With the option checked, print output goes directly to the OS default printer without extra user input.

With such SAP printer definition, SAP GUI uses the operating system printer details. The operating system already knows your added Universal Print printers. As with SAP web applications, there's no direct communication between the SAP system and Universal Print APIs. No settings to configure for your SAP system beyond the available output device for front-end printing.

When using SAP GUI for HTML and front-end printing, you can print to an SAP defined printer, too. In the SAP system, you need a front-end printer with access method ‘G’ and a device type of PDF or derivate. For more information, see SAP’s documentation. Such print output is displayed in browser as a PDF from the SAP system. You open the common OS printing dialog and select a Universal Print printer installed on your computer.

Limitations

SAP defines front-end printing with several constraints. It can't be used for background printing, nor should it be relied upon for production or mass printing. See if your SAP printer definition is correct, as printers with access method ‘F’ don't work correctly with current SAP releases. More details can be found in SAP note 2028598 - Technical changes for front-end printing with access method F.

Next steps

Check out the documentation: