Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sending spool-list possible with 'virtual' printer ?

Former Member
0 Likes
675

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

3 REPLIES 3
Read only

Former Member
0 Likes
460

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]

Read only

0 Likes
460

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

Read only

0 Likes
460

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