You are on page 1of 11

Virtual Printer - Saving prints as a

file
This question is answered
Hi,

I need to setup a virtual printer such that, if anything is printed on that, it is saved as a file. This
file sould contain printer instruction, which can then be sent to 3rd party for printing.

Something like Microsoft Document Imaging.

All this has to run in background.

Can anyone help?

Regards,

Vikas
Tags:

 abap

Former Member
December 27, 2012 at 13:29 PM
0 Likes
Correct Answer

Former Member replied


December 14, 2006 at 18:17 PM
Here's how to set up a virtual printer:

Tx; SPAD-> create a device type -> in change mode clikck on access method tab -> from edit
menu select Command set-> command set id field shows up -> enter a letter, for ex:A , Doubble
click on the field-> give a description-> enter cp &F /tmp/vpfile in command to transfer print data
field -> enter echo ok in the last field.

Host spool access method should be L in the printer definition.

When you print using this printer, the output file copied to /tmp/vpfile folder.

Regards

Sridhar

Message was edited by:


Sridhar K
0 View this answer in context

Not what you were looking for? View more on this topic or Ask a question

10 replies

Former Member replied


December 14, 2006 at 15:48 PM
You can save spool requests as PDF documents and convert the print controls into an LPR
command which when executed will print the PDF document to the printer specified. Is this what
you mean?
0 likes

Former Member replied


December 14, 2006 at 15:51 PM
Hi Gill,

I do not want to save the spool as PDF.

I want to save that directly in printer language as a file.

Regards,

Vikas
0 likes

Correct Answer

Former Member replied


December 14, 2006 at 18:19 PM
Here's how to set up a virtual printer:

Tx; SPAD-> create a device type -> in change mode clikck on access method tab -> from edit
menu select Command set-> command set id field shows up -> enter a letter, for ex:A , Doubble
click on the field-> give a description-> enter cp &F /tmp/vpfile in command to transfer print data
field -> enter echo ok in the last field.

Host spool access method should be L in the printer definition.

When you print using this printer, the output file copied to /tmp/vpfile folder.

Regards

Sridhar

Message was edited by:


Sridhar K
0 likes

Former Member replied


December 15, 2006 at 10:05 AM
Thanks Sridhar.

This solves the problem.

Regards,

Vikas
0 likes

Former Member replied


February 02, 2007 at 19:50 PM
Can this be set up to output the file to a network folder?
0 likes

Former Member replied


February 22, 2007 at 13:16 PM
Yes, you can copy to any network folder that is known to the sapservicesid user.

Another alternative is to create the command file on your network folder and pass the spool
parameters to the command file. Instead of using the copy (cp) command on the command line
in the command set, call the command file.

Example

server\folder\xyz.cmd &F &P &C &N &T

The parameters are : &F = filename. &P = printer name. &C = number of copies. &N = spool
request number. &T = title.
0 likes

Guest replied
March 01, 2007 at 18:41 PM
Hi, How can i output a to a local drive on my pc or a network drive. I have created a virtual printer
on SAP but not sure what command to save to my local drive.

Thanks
0 likes

Former Member replied


March 06, 2007 at 17:18 PM
This method outputs a file in printer language? Is it possible to output a plain text file?
0 likes

Former Member replied


October 20, 2011 at 22:47 PM
enter cp &F /tmp/vpfile in command to transfer print data field -> enter echo ok in the last field.

This worked perfectly, thanks!


0 likes

Former Member replied


December 27, 2012 at 13:29 PM
Hi Sridhar,

I got a similar requirement to place the output of the printer into an AL11 directory for further
processing. I did exactly what you have advised earlier but unfortunately failed to get a copy of
the output on the AL11 directory.

Can you help advise what needs to be done? pre-requisites?

thanks!
0

Log On


o Edit My Profile
o Account Settings
o Notifications
o Followed Activities

 Logout

 Home

 Community

 Archives
 Discussions Archive

 ABAP Development

 Ask a Question

 Write a Blog Post

 Login / Sign-up

Archived discussions are read-only. Learn more about SAP Q&A

sending spool-list possible with


'virtual' printer ?
hi there,

is there a possibility where i can EMAIL an spoolfile (created in a sap-standard-abap) within a


scheduled job ?

i know from other systems that there is a possibility to have a special PRINTER defined, where i
can email

the created spoolfile directly.

is this possible in SM37 job scheduling ?

if not: how can i email a spool file directly without touching sap-standard-program ?

reg, Martin

Former Member
October 01, 2009 at 11:28 AM
0 Likes

Not what you were looking for? View more on this topic or Ask a question

3 replies
Vikranth Reddy replied
October 01, 2009 at 10:38 AM
Am not sure if you have a direct option of sending a spool file to email via background scheduling
though you can write a program by calling the standard abap program with SUBMIT command
and convert the spool to pdf and send the email.

You can have a look at this link for a sample coding

[http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm]
0 likes

Former Member replied


October 01, 2009 at 11:10 AM
okay, now i have found the solution:

There is a possibility for creating emails directly.

Firstly, I had created one printer (EMAIL-PDF) at transaction SPAD, with:

Device Type : PDF1

Device Class: Standart Printer

Access Method: M E-Mail to Receiver/Owner

Then you can enter a email-adress directly in spoolcontrol when defining the job.

it works perfect, BUT: does anybody know how to change the standard text (and the title) of

the email which is created ?

reg, Martin
0 likes

Former Member replied


October 01, 2009 at 11:28 AM
Hi,

If i have understood your question correctly then you want to email ur job output.

In that case follow the below steps:

Step 1: Go to SM36.

Step 2: In the General data there is one option: Spool List Request. Click on it.

Step 3: After clicking on it you will find a modal dailog box for Receiver Determination. Give the
Recipient name* and if required give he general attributes. Click on 'Copy'.
Step 4: Just save your work. And after saving it whenever that job finished successfully you will
receive the outout of ur job.

*Note: Here you will give any email id; either your internet adress or your organization address.

Please let me know if I am not clear in above steps. Also sorry if I am not understand your
requirement.

Thanks,

Anurag Singh Rathore

Log On


o Edit My Profile
o Account Settings
o Notifications
o Followed Activities

 Logout

 Home

 Community

 Archives

 Discussions Archive

 ABAP Development

 Ask a Question

 Write a Blog Post

 Login / Sign-up
Archived discussions are read-only. Learn more about SAP Q&A

Virtual printer
Hi, How can i output a to a local drive on my pc or a network drive. I have created a virtual printer
on SAP but not sure what command to save to my local drive.

i have setup a printer with Host spool access method L, with the host printer pointing to IP
address of my PC.

Thanks
Tags:

 abap

Guest
March 28, 2007 at 15:32 PM
0 Likes
Helpful Answer
by

 Former Member

Not what you were looking for? View more on this topic or Ask a question

4 replies
Helpful Answer

Former Member replied


March 06, 2007 at 12:27 PM
Hi

U don't need to insert the IP address, because the local printer has to work for every PC.

Insert __DEFAULT as HOST and F (FRONT END) as Host spool access method

Max
0 likes

Guest replied
March 06, 2007 at 13:06 PM
Thanks Max for the quick response.

I have a separate test printer setup with Host spool access method F. It works fine, but i need to
be able to automate this process without the user having to enter a file location.

Basically, i need to output a PCL file to an external location


0 likes

Guest replied
March 28, 2007 at 15:26 PM
We finally resolved this. All that is required is to set up SAP printer as Host spool access method
C, then enter file path to network folder.
0 likes

Guest replied
March 28, 2007 at 15:32 PM
All that is required is to set up SAP printer as Host spool access method C,(direct operating
system call) then enter file path to network folder.

Log On


o Edit My Profile
o Account Settings
o Notifications
o Followed Activities

 Logout

 Home

 Community

 Archives

 Discussions Archive
 SAP NetWeaver Administrator

 Ask a Question

 Write a Blog Post

 Login / Sign-up

Archived discussions are read-only. Learn more about SAP Q&A

PDF printing by SAPSPrint &


SAPPdfPrint
Dear All,

We are facing problem in printing pdf by SAPSprint. Whenever trying to print using any PDF
Printer software the SAPSprint service is crashing and SAPLPD window is opening (which
eventually not creating the PDF). We are using SAP GUI version 7.40.

Solution required.
Tags:

 sappdfprint
 pdf
 sapsprint

Former Member
February 24, 2016 at 03:41 AM
0 Likes

Not what you were looking for? View more on this topic or Ask a question

2 replies

S Sriram replied
February 20, 2016 at 11:36 AM
Hi Shruti.
In our environment we are using the third party tool Zan Image Printer from SAP release any
spools which is converting file format TIFF,JPEG,BMP,GIF,PNG,PDF,JPEG 2000

Zan Image Printer - a Windows print to image (TIFF,JPEG,BMP,GIF,PNG,PDF,JPEG 2000)


Virtual Printer Driver

Regards

SS
0 likes

Yiming Zhang replied


February 24, 2016 at 03:41 AM
Hello,

Have you installed SAPPDFPRINT as note 1444342?

Please also note that access method F cannot be used with GUI 740. See note 2028598.

Best regards,

Yiming