Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
18Activity
0 of .
Results for:
No results containing your search query
P. 1
Send Spool List of Background Job to SAP Inbox & Outlook

Send Spool List of Background Job to SAP Inbox & Outlook

Ratings: (0)|Views: 1,047 |Likes:
SAP,Spool, Background, SAP Mail, Mail to Outlook
SAP,Spool, Background, SAP Mail, Mail to Outlook

More info:

Published by: Rajagopalan Muthukrishnan on May 17, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

04/18/2013

pdf

text

original

 
Rajagopalan M
Send Spool list of background job to SAP inbox
Send Spool list of background job to SAP Inbox
It was a requirement in one of the implementation project I worked, to send email to users with a report of success or errors that occured during a program execution. For example, a program that works on some datafrom SAP tables and it needs to report to user if any data is missing. If the program is run in online, theprogram can display the list of errors (due to missing data, etc.) in online via a simple basic list or simple ALV.But if the program is run in background, the program cannot produce a report in online and hence the reportoutput can be written into a spool. Spool requests can be viewed from transaction code SP01. But the usershave to check the spool request as and when the background program has been scheduled to run. In theproject, the requirement was to send the error report or success report to a list of users via email. SAP provides an easy way to acheive this without writing any coding for email functionality. Still the ABAPprogram has to produce report output using basic list or ALV. Please take care that your ALV usingCL_GUI_CUSTOM_CONTAINER does not throw short dump due to non-availability of screen in background. 1. While scheduling the job for the program using transaction code SM36, you can configure to send the spoolto SAP users inbox.2. Go to SM36, specify a jobname for example, YRECONKEYCLOSE. In the same screen of SM36, you willfind a button as "
Spool list recipient
".3. Click the button "Spool list recipient". A dialog box will appear that will request for the "
Recipient name
".Press F4 (value help) on Recipient name field. A dialog box similar to shown below will appear. Choose theoption "
Internal user 
" and enter the SAP user id in the "Find" field.17/May/20101 of 3
 
Rajagopalan M4. Press Enter. Now the "Recipient name" will be populated with user id SAKTHI. This is the SAP user id whowill receive the spool list in their SAP inbox after the execution of the background program. Press Copybutton. 5. Press "
Step
" button to specify the ABAP program name to be scheduled to run in background. Enter theprogram name in the field "
ABAP program Name
" and press Save button. For example, here we willschedule the program RFKKFIKEYCLOSE - a SAP standard program to close the reconciliation keys createdin SAP IS-U. 6. Press "
Start condition
" button to specify when the background program to be executed. For example,press "Immediate" button to run the program immediately after you complete the job scheduling. Press Savebutton. 7. Press "
Save
" button again to release the job. 8. Press "Own jobs" button to view the list of jobs scheduled by you. Check the job YRECONKEYCLOSEproduced a spool request. If a spool request was found in SM37, then an email would have been sent to theSAP inbox. 9. Go to transaction code SBWP -
SAP Business WorkPlace
. Expand Inbox node and click "
UnreadDocuments
". Hurray, you got the mail from SM36 with the spool request as attachment in htm format.10. Double-click on the mail displayed on the right pane of the window. You can view the attachment byclicking on the attachment and even you can save it to your desktop.17/May/20102 of 3

Activity (18)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Ana Alvarez liked this
rak617 liked this
r_ragavendra1621 liked this
huseink liked this
David Nguyen liked this
ayayppascribd liked this
ravi9441 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->