Skip to end of metadataGo to start of metadata
Introduction
Specifying different Paper Trays of the Printer for different pages of the print output can be done by the 'Resource' options on SAP Scripts and Smartforms. But we do not have a straight forward solution for the same requirement while working on Adobe Forms.
This article describes how to configure Adobe Document Services to specify a paper tray of the postscript printer to a print output page in Adobe Forms.
- The SAP Support Portal is SAP's award winning customer-facing website, which provides access to support tools, services and. SAP Enterprise Support Setup Service (PDF).
- Developing Enterprise Services For Sap Pdf Output Sas HP Output Management Implementation Services for SAP What we do: We provide consulting services that include an assessment of your SAP output environment as well as solution development, deployment, management, and support.
- If the printer you prefer to use is set up with an SAP print queue, you can configure SAPgui to send print jobs directly to this 3- or 4-letter print queue. Jobs will be spooled directly from the SAP back-end system to the printer queue.
- Developing Enterprise Services For Sap Pdf Output Sas HP Output Management Implementation Services for SAP What we do: We provide consulting services that include an assessment of your SAP output environment as well as solution development, deployment, management, and support.
Enterprise Software. Print PDF to LOCAL Printer. Tech Sign In Page. SAP Data Services Connectivity with MapR DB [Solman - MSC.
1.Why do we require Multiple Tray Option?
Business may require using multiple paper types (like Letter, Plain, Preprinted etc.) for the same print document. In such a case, we need each tray to be loaded with papers of specific paper type, and the printer can select corresponding tray as needed, while printing the document.
SAP Adobe Forms achieves many document handling capabilities by deploying Adobe document services (ADS) to SAP NetWeaver AS. Adobe document services allow SAP applications to take advantage of the full range of Adobe Acrobat capabilities.
SAP Interactive Forms by Adobe can render different formats (PDF, PCL, PostScript, ZPL) by using a special print driver and an XML based configuration file called an XDC. These XDC files reside on the ADS server. XDP is the file with the XML code of the print layout/template. It is generated when the layout is designed. When a template (XDP) and data (XML) are rendered, part of the configuration specifies which XDC to use.
In order to direct printed output to a specific input tray on a printer, modifications to the appropriate XDC configuration file residing on the SAP server must be made. These changes can be made using the Adobe XDC Editor. In order to make these changes, certain information about the printer will first have to be acquired.
Detailed procedure is explained in the below steps.
2.1. Assigning paper Types in Adobe Forms
The pages are assigned with different Paper Types in Adobe Forms using the LifeCycle Designer, as below.
!Form_trayassignment.jpg!
This results in the following syntax in the XDP file (the 'XML Source' tab on the layout seen above). The Paper Type is termed as 'stock' in the <medium/> element of XDP file.
id=Page1
initialNumber=1
name=Page1
h=257.182mm
id=CA1_ID
name=CA1
w=190.092mm
x=8.108mm
y=4.926mm
long=279.4mm
short=215.9mm
stock='letterPlain'
initialNumber=1
name=Page1
h=257.182mm
id=CA1_ID
name=CA1
w=190.092mm
x=8.108mm
y=4.926mm
long=279.4mm
short=215.9mm
stock='letterPlain'
2.2 Modifying XDC file and Job Profiles
The Form Paper Type mentioned in the form layout can be used to determine the Printer Tray to be selected. This is achieved by modifying XDC file and Job Profiles that reside on the ADS server. By modifying the XDC files and job profiles, we can customize the way we handle the trays to print documents.
If the Form Paper Type is not supported by the printer, the Form Paper Type as to be mapped to Printer Paper Type (Printer Paper size) in Job Profiles.
When you deploy Adobe document services to SAP NetWeaver AS, the XDC files are located in the <GLOBAL_DIR>/AdobeDocumentServices/lib directory, and the Job Profiles are located in the <GLOBAL_DIR>/AdobeDocumentServices/lib/JobProfiles/Adobe/Print directory.
The mapping of Form Paper Type to the Printer Tray is specified in the XDC files.
Following are the steps to be followed to map specific Printer Tray to the Form Paper Type.
2.2.1. Determining the XDC file for the Device Type
Note: Report
2.2.2. Changing the XDC file
Hp Enterprise Services For Sale
The XDC files are modified with the Adobe XDC editor. The Adobe XDC Editor is an Eclipse based editor and can be downloaded from the following link:
To access the XDC files, follow the instructions in the XDC editor documentation.
XDC files contain data that instructs a printer to create the final representation of a form so that it can be printed or displayed in Adobe Reader.
It is in the XDC files, that the Printer trays are assigned to the Paper Types, as shown in the below screen of the XDC editor. For this, the tray information and the Paper Types (identified as 'stocks' in the XDC file) are required. The stock names must match the names of the stock specified by the <medium/>element in the XDP file. The table shown below is known as the 'Tray Mapping Table'.
The changes to be made to the XDC file vary with the printer driver, which can be known from the printer configuration. The Printer configuration is known from the Printer Manual, or can be examined by printing out the details via menu items on the front panel of the printer.
Tray information mainly includes 'Tray Number' which is available in the reference manual. In addition to the tray number, PostScript printers can accept a 'Tray Type' value. Tray Type is the PostScript media type, which can be either a predefined printer value or a value defined by using the front panel of the printer. Examples of Media Type include PLAIN, COATED and GLOSSY.
PostScript level 3 printers support both 'Tray Number' and 'Tray Type'. Older PostScript level 2 printers do not support 'Tray Number'. If both 'Tray Number' and 'Tray Type' are specified in the XDC file, then 'Tray Number' will take precedence.
In the XDC editor, modify the 'Language Level' field in the 'Printer Capabilities' tab based on the Printer level.
The process for entering the tray number and tray type for PostScript printers would be as follows:
For a PostScript level 3 printer:
- Set the Language Level to '3' in the 'Printer Capabilities' tab.
- Set the Tray Number value and leave the Tray Type blank in the 'Medium and Tray Mappings' Tab.
Developing Enterprise Services For Sap Pdf Printers
When the options are set as described above, following code is added in the XDC file.
For a PostScript level 2 printer:
- Ensure that the Language Level is set to '2' in the 'Printer Capabilities' tab.
- Leave the Tray Number field blank and set the Tray Type value.
When the options are set as described above, following code is added in the XDC file.
2.2.3. Changing the Job Profiles
Job profiles are mainly used to map the Form Paper Type to Printer-specific Paper Type (or Paper Size), when the Form Paper Types are not supported by the Printer.
Job profiles contain job-specific configuration settings in XML format. When your application calls Adobe document services, you can optionally specify a job profile. If you do, the profile is found and used to modify the way Adobe document services process that job.
Once the input trays are defined, you specify the type of paper you want to print on in a job profile. Adobe document services use the tray mapping table to determine which input tray contains that type of paper.
Following is the screen shot of the Printer properties, which displays the Size as 'Letter' and Paper Type as 'Letterhead'. (The term 'Size' implies the 'Paper Type' in SAP) The Job Profiles are XML files, with the mapping mentioned in the<map/> element, as below.
Skip to end of metadataGo to start of metadataHow to print from SAP to a PDF file without any third party software is explained below.
In the transaction SPAD (spool administration) set up an output device (ZPDF) as follows:
In order for this configuration to work, you need to set up a 'Print to File' printer in the Windows print manager of your Frontend PC as follows:
- 'Settings' -> 'Printer' -> 'Add Printer'
- On the window that appears, click on 'Next' button.
- Select 'Local Printer' and click on 'Next'
- Select the port 'FILE Print to File'
- Select 'Generic/Text Only' driver
- Enter 'Printer Name' eg: PDFTEST
- Share as: eg: PDFTEST
- Select 'Finish'.
Then in the output device definition in transaction SPAD, you need to set the Host Printer field to the same name as you defined your 'Print to File' printer in the Windows. i.e. In the example above, the setting would be: Host Printer (field) : PDFTEST.
Use the setting 'Print Immediately' in the field area 'Time of Printing' in the print dialog pop-up. When you do this, you should get a pop-up on your Frontend PC asking you for name and path of the PDF file. You must give the file name a '.pdf' extension.
Page:SAP PVP