Vous êtes sur la page 1sur 8

SAP NetWeaver Administrator: How to email

output from Background Jobs


Posted by Martin English Feb 25, 2010
One of my Customers has a regularly scheduled job with spool (SP01) output. They have asked if it could be
be emailed to a group email address. The address management is nice and easy in this case; they manage
the mail group, adding and deleting email addresses as people move in and out of the group. But how do we
send the spool output as email ?
Go into transaction SM37 (Job Overview) and search for the job that creates the output you wish to mail. You
need to make sure you find a scheduled, released or ready version of the job as you can't do this with an
existing spool output.

Select the job in question, then select Job --> Change from the menu (or CTRL+F11). This gives you the
Change Job detail screen. Select the button labelled Spool list Recipient This will show the Recipeint
Determination Dialog.

Generated by Jive on 2016-07-11Z


1

SAP NetWeaver Administrator: How to email output from Background Jobs

Put the target address into the Recipient field. Note that this doesn't have to be an email address; you can
use email, fax or X.400 messaging. Depending on which method you choose, you can add extra options by
selecting the appropriate button at the bottom of this dialog. Select the tick when you're done and you'll be
returned to the Change Job detail screen.
Don't forget to save your changes on this screen as well.
Troubleshooting
There's lots of errors possible with email. If the users don't get the email, or there is a problem with it,
checking that the output was written to the spool (use transaction SP01 or SM37).
If the email is truncated when compared to the spool output, check OSS Note329537 - Spool cut off at 1000
lines when sent to recipient.
31233 Views

French consultant in response to Sharad Patel on page 2


Nov 27, 2015 7:54 AM
Hi Sharad , for multiple email addresses create via SO23 a distribution list. and assigned it the same way in
the job.In recipient field instead of entering the email address you entered your ditribution list name.

Having an excel file is also pretty easy. The email received will contain an html file(this is normlly what
is customized in SCOT ). Just open the htm file in excel and the conversion is automatic, nothing to be
developped.

Generated by Jive on 2016-07-11Z


2

SAP NetWeaver Administrator: How to email output from Background Jobs

Sharad Patel
Nov 13, 2015 9:30 PM
I need an email output from Background Jobs in excel/alv format and send it to multiple id's. Is there any way
to do this?
Did get email to only one user but its in html format.
Thanks
Sharad
Ning Li
Feb 4, 2015 6:27 AM
amazing!
I followed the instruction, it works.
But I got two documents for one job. one is pdf, the other one is htm.
Is there an existing parameter to specify it?
Best regards,
Carlos Oliveira
Aug 8, 2014 3:59 PM
Hi Martin,
I have setup a job in SM36 with "Spool List Recipient" containing my yahoo email (below).

Generated by Jive on 2016-07-11Z


3

SAP NetWeaver Administrator: How to email output from Background Jobs

Then I setup the Print Parameters to Spool only, but I do not get any email with the report. I just see the spool
created.

Generated by Jive on 2016-07-11Z


4

SAP NetWeaver Administrator: How to email output from Background Jobs

Then if I change the "Time of Print" to "X Print out Immediately", I get the error below.

Generated by Jive on 2016-07-11Z


5

SAP NetWeaver Administrator: How to email output from Background Jobs

Do you know what this issue could be?


Anything would help.
P.S. I dont see anything in SOST
Thx
Carlos
Shen Wang in response to Muthuraman Govindasamy on page 6
Sep 23, 2013 10:56 AM
SM37 cannot sent the email accordingly.
I could not see the records in SOST.
Muthuraman Govindasamy in response to Martin English on page 7

Generated by Jive on 2016-07-11Z


6

SAP NetWeaver Administrator: How to email output from Background Jobs

Mar 4, 2010 9:15 AM


Thanks Martin. I could see in SOST. Great. Appreciate good work.
Muthu
Muthuraman Govindasamy in response to Muthuraman Govindasamy on page 7
Mar 1, 2010 2:45 PM
Hi
I have cancelled the job but i could not see entry in SOST itself. Why?
-spl question.
PS:-Do you know what are the events are pushed to SOST/ i am interested to find out those.
br
Muthu
Muthuraman Govindasamy in response to Martin English on page 7
Feb 28, 2010 4:48 PM
Hi
you might be correct. I could not check SOST since i dont have access. Then only i can confirm you. I will work
it out with basis onSCOT and RSCON JOB. Thanks. I keep trying ..appreciate your reply.
Muthu
Martin English in response to Martin English on page 7
Feb 28, 2010 4:20 PM
Sorry - I haven't worked out how to edit replies :)
This may sound stupid, but I fell for it once before.... if your Job Scheduling is being run from a Solution
Manager system, make sure you are doing the trouble shooting on the system that the job ran on :)
Martin English in response to Muthuraman Govindasamy on page 7
Feb 28, 2010 2:52 PM
Hi Muthu,
A couple of things to check...
1) did the job produce any output to be mailed ?
2) is there anything in transaction SCOT indicating whether the SAP system actually sent a mail ?
If your SAP system did send the mail, then you need to start looking at the email subsystem. Unfortunately, I
can't really help wit that - I've set them up on both UNIX and Windows servers, but I'm definitely not an expert
on them.
Muthuraman Govindasamy
Feb 28, 2010 6:27 AM
Hi martin
very informative. I tried to receive when the job is failed.but that job never failed so i have cancelled the job. but
still i did get get an email from sap.
i followed all your steps.

Generated by Jive on 2016-07-11Z


7

SAP NetWeaver Administrator: How to email output from Background Jobs

Muthu

Generated by Jive on 2016-07-11Z


8

Vous aimerez peut-être aussi