SAP Basis Automatic Email From Spool
SAP Basis Automatic Email From Spool
com/sending-mail-for-background-job/
Home
ABAP
Welcome
Register
Articles
Certifications
Downloads
Featured Article
What People Have To Say About Us!!
Forum
ADVERTISE HERE
Categories
ABAP Debugger
ABAP Interview Guide
Articles
Check out how to mail spool for a background job to a mail group without ABAP code. Certifications
Code Inspector
Coding Challenge
Data Dictionary
Downloads
Enhancement & User Exit
Featured Article
Free Access to SAP IDES system
GUI
Author : Ajay Home
SAP ABAP
Author's Website | Articles from Ajay SAP HANA
SAP Teched ( Dcode )
Ajay is a Functional Consultant in Supply Chain Management. He is a SAP Certified SCM APO Unicode
consultant and ABAP Developer. He is also involved in SAP implementations, Migration and Webdynpro For ABAP
Support activities as a Consultant. Follow me on Facebook What people have to say about us!!
INTRODUCTION:
Lately I came across a requirement for sending spool details of a report through mail which gets
executed in a background job.
1 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
On the first glance it looked like a cakewalk as it can be achieved with a couple of function modules
in the program.
But now for the following reasons I was wondering why modifying the program for such task is not
advisable.
2. What if multiple user want the mail? How frequent this list will change?
There is an option of spool list recipient in SM36 while defining a background job where we can
define the user id of the user who wish to receive the spool for the background job.
So any user who’s id is mentioned in the spool list recipient of the job would receive a mail in
SAPoffice: Inbox(Tcode-So01) / Business workplace ( Tcode-SBWP)
2 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Now once you schedule the job and the job is finished you will receive a message in your sap office
inbox.
Now most of the users don’t check their SAP Office inbox often and also I need a group of people
to be mailed for a single background job.
T-code : So23. You can also create it from Business workplace (T-code: SBWP).
3 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
In the distribution list content you can specify the external mail addresses which you want to
include in the mailing group.
4 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
2. Click on the SMTP node inside INT node. -> Go to maintain Node.
4. Ensure that in the address area either your mailid or wildcard * is maintained.
5. Here you can also change the Output format of SAP document. By default for ABAP List
the attachment would be in Html format.
Now every time a Spool is created for the job it will be immediately mailed to persons maintained
the Distribution list.
Related Posts:
No Related Posts
5 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Check out how to mail spool for a background job to a mail group without ABAP code.
">
Check out how to mail spool for a background job to a mail group without ABAP code.
">
6 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Check out how to mail spool for a background job to a mail group without ABAP code.
">
ADVERTISE HERE
User Comments
REPLY
REPLY
REPLY
Ajay
January 14, 2012
REPLY
7 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Hi John,
You have an option in tcode SCOT for “Output format of SAP
Documents” where you can define it as txt.
Please check the last screen shot of the article.
Thanks
Ajay
Hi,
Reshma I want to change the receipent in the spool list.
January 24, 2012
It’s a single user.
Please help me with how I can change the receipent in the existing
scheduled job?
Regards,
Reshma
REPLY
Hi Reshma,
You can very well do that as well. Please make sure that you can
only modify the scheduled jobs.
1. Select your job in SM37 and goto Job->Change.
2. Click on Spool List recipients and fill in the recipient name with
address type. i.e external mail address/ internal mail address etc.
Make sure that you have all your SMTP settings intact.
Let me know incase you are stuck somewhere.
Cheers
Ajay
[email protected]
Ajay
January 24, 2012
REPLY
Hi ajay,
I found ur article very useful. In my case i have to attach alv
report output in excel format to email,this excel contains mnay
columns, in sap inbox im getting mail,but format is not
proper.please suggest me what i have to do to get, my mail
attachment in proper excel format.
pratibha
February 27, 2012
REPLY
admin
March 1, 2012
Dear Pratibha,
REPLY
8 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Thanks
Ajay
hi Ajay,
Your Post is nice and very useful for me, but i don’t know how to set
Gurinder Singh
April 20, 2012 spool, when I run reports in the background as you told, after getting
the status as complete, I have to manually SPOOL it so that it can
mailed to my Workplace.
REPLY
Hi Gurinder,
I am not bit clear with your question. You can’t generate spool
manually it gets generated automatically in background.
You can check them with Tcode SP01.
Request you to elaborate a little on where exactly you are stuck
Thanks
Ajay
Ajay
April 23, 2012
REPLY
Hi Ajay,
I think you may be able to help me. when I use ME9F t-code to print
Praveen Kumar
Sharma POs in PDF format, it goes to my SAP inbox but I don’t have access
May 1, 2012 to my inbox(SBWP). I remember once I had entered into SAP
inbox(accidentally), but at that time I didn’t know that I didn’t have
access. I want it now. Is there any other way of going to SAP inbox?
Thanks in advance.
Praveen
REPLY
Hi Praveen,
You can use tcode : so01 which is for SAP Inbox. If you don’t
have access to this then go to se37 and run fm :
c160_transaction_call and execute to directly enter tcode. This
Ajay
May 7, 2012
helps
REPLYto skip the authority check maitained at tcode level.
9 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Cheers
Ajay
Praveen
May 26, 2012
REPLY
Hi Ajay,
Francis Talam I have a background job that send spool list to email recipients but
May 9, 2012
they are not receiving all the spool lists since these job produce 2
spool lists. They only receive the last spool list. The first spool list is
not mailed. Do you know how to send all the spool lists?
Thanks,
Francis
REPLY
Hi Francis,
The functionality is still missing in SAP. You can do the following
to solve your issue
1. In the print parameters of the step, use a printer of type ‘MAIL’.
For more information, see Notes 311037 and 513352.
OR
2. Implement note 1513987. You will then have the report
BTC_SEND_REMAINING_SPOOLLISTS. If you add this report
as the last step of a background job with a spool list recipient,
BTC_SEND_REMAINING_SPOOLLISTS will send the
additional spool lists to the recipient specified in the job. You can
also use these report parameters to
exclude individual steps from this process.
Cheers
Ajay
Ajay
August 23, 2012
REPLY
Hi Ajay,
i use this and it is great, but i have 1 problem:
yoss
July 4, 2012 i have a job with 5 steps, and the user want to get only the log of fifth
step.
REPLY
10 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Hi Yoss,
You can use report BTC_SEND_REMAINING_SPOOLLISTS
which is provided by OSS note 1513987 to exclude individual
steps from the process.
You need to add this as the last step in the background job.
Cheers
Ajay
Ajay
August 23, 2012
REPLY
Hi Ajay, This document is really very clear and detail. Thank you
very much.
An awesome
document
October 18, 2012
REPLY
Hello Ajay,
Sri Thank You for the post.. can I have output format in excel?
November 9, 2012
Regards
Sri
REPLY
Hi Sri,
We do have a setting in SCOT.
Cheers
Team SAP Ignite
admin
November 10, 2012
REPLY
Hi Ajay,
11 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Thank You
Srikanth
Hi Sridhar,
Unfortunately there is no standard option. You might have
to write custom code for this.
Thanks
Team SAP Ignite
admin
November 18, 2012
REPLY
REPLY
Derek
November 9, 2012
REPLY
Cheers
Team SAP Ignite
admin
November 10, 2012
REPLY
Hi Ajay,
We are in deep soup. We have created a z-report which works fine in
Sharmistha Biswas
November 15, 2012 the foreground, i.e gives the desired output. We need it run in in the
REPLY
12 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Hi Sharmista,
ABAP lists executed via a background job, the ‘List width’ is
always set to 255 which might be one of reason.I believe your
custom output report doesn’t have any print formatting and the list
is too wide that exceed the maximum spool width of 255.
Cheers
Ajay
Ajay
November 15, 2012
REPLY
Hello All,
KAPIL I am not able to create a infocube/DSO in MiniSAP N4S Client 500
November 17, 2012
(SAP BI).
Regards,
KAPIL
REPLY
13 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
Hi Kapil,
Thanks for noticing. This has been communicated to the team..
Will keep you posted in this.
Thanks
Team SAP Ignite
admin
November 18, 2012
REPLY
Hi Ajay,
The atricle is very helpful.
Madhav
June 2, 2014 We have to give the recipients list every time we run the job . Is there
any way to fetch the recipients lift from the report (Via select-
options).
REPLY
Dear all,
in ECC R/3 , we have n numbers of spool generated on daily as
Deep Dave
June 17, 2014 scheduled, Now my query is how can i find that how many jobs are
assigned to the particular id which they receive as spool or report.
for e.g.
user i d [email protected] is recipient, so is there any table or t code
which will list out that for [email protected] which are spool assigned?
Thanks in advance.
REPLY
Leave a Reply
14 of 15 15/8/2015 3:36 PM
Mailing Spool Details of Background job | SAP Ignite http://sapignite.com/sending-mail-for-background-job/
ั
FOFO ชนควํ
า จาน/ชาม ขาตรง
Copyright Terms Recent Comments ใหญ่
620 บาท
คลิกเลย
SAP IGNITE @ 2012 All product names on this nice work very helpfullby avinash
web site are trademarks of the companies that นอนสติก
Zebra หม้อชุด 4 ชิน
12 only :(by paneendra AEC4-164 - Pink
own them. Sapignite.com is not affiliated with
890 บาท
SAP AG in any way. SAP AG is the registered คลิกเลย
trademark holder of SAP, SAP R/3, mySAP, How may work sessions we can create
??by CHAITANYA Eye-On ลําโพง Bluetooth รุน
่
ABAP, xApps, NetWeaver, and other
TW-Miniboom (สีดํา)
proprietary terms. The technical information on 1,290 บาท
this site is verified to the greatest extent คลิกเลย
possible, however, any information found on lazada.co.th
this site is used at the site visitor's own risk.
Sapignite.com reserves the right to correct any
errors or omissions in any portion of this site at
any time without obligation.
15 of 15 15/8/2015 3:36 PM