Skip to Content

Often I’ve wanted some sort of notification that my long running batch job has completed so I can go take a look at the spool for it. To solve this problem, I’ve collected the steps and notes required to create a Output Device that creates and emails a PDF file to a user.

First, you must have SAPConnect previously configured.  You can find info on this by visiting this link: http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm

Secondly, you’ll need PDF printing support. Use can use SAP Note 317851 to implement the device types to use PDF. If you already have PDF output types in your system, you can skip this step.

The following procedure basically follows SAP Note 311037 to print via email, but to a PDF printer. 

To create a PDF email printer:

  1. Navigate to Transaction SPAD
  2. Configuration -> Output Devices
  3. Output Devices -> Create
  4. First, you’ll want to set the name. PFD1 is a fairly standard name that I’ll use in this example.
  5. For the Device Type, you’ll need to select a PDF printer. Select “PDF1 : PDF ISO Latin-1 4.6D+” if you have it available.
  6. Next you’ll need to select the correct Spool server. This depends on your landscape, but for this example it resides on our Central Instance.
  7. It’s important to fill in the location and Message so that non-technical users will understand what this printer does.

           Location: Virtual Printer

           Message: This printer emails a pdf file as an attachment.

    8.    Save your new printer and you should now be able to test!

 

Screenshots:

 image

 

It’s important to fill in the Location and Description so you don’t confuse end users that are expecting to get a save as dialog for a PDF.

image

You want to select access type M. This method uses SAPConnect to send the email.

 

Once you have everything set up, you can hit the print button from anywhere in the system and specify your printer name (PDF1) and you’ll be prompted for an email address.

image

If you don’t receive an email, you’ll need to check SAPconnect. To see the message queue, use Transaction SOST.  

Now you will be able to specify this printer when creating a batch job and you’ll get an email when the job completes with the job spool attached.

To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

  1. Michelle Crapo
    I love the pictures.  They help a lot.  I hope to see many more blogs!

    One “tip” – personal preference – I look for information in many ways.  When I’m looking specifically for Printer / PDF information I would go to the WIKI.  It would be cool if we could get this information there.   (Then if you haven’t done it – you would have your first WIKI post.)

    https://wiki.sdn.sap.com/wiki/display/Basis/Basis+HowTo+Guides

    Nice job!

    Michelle

    (0) 
  2. Sebastian Hock
    Hi Joe,

    just tired your instrution but there is still a problem. The Host Spool Access Method “M” is not avaiable in our system. The SAPConnect was allready configured in our system and i checked it again and again. Have you any idea what´s going wrong?

    Thanks for your help in advance.

    Sebastian

    (0) 
    1. Joe Markgraf Post author
      If the access method M is not available, you must first run report RSPO0075 in transaction SE38, to activate the access method. It will then be available to you in transaction SPAD.

      To do this, enter the name of the report in the Program field in transaction SE38, and choose  Execute. Select the option Add Access Method, and choose the access method M as the access method to be added.

      http://help.sap.com/saphelp_nw04/helpdata/en/ae/16193ce8fac413e10000000a114084/content.htm

      (0) 

Leave a Reply