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

Email in Batch Job

Former Member
0 Likes
2,367

Hello All,

I need to set up a batch job and this would run daily. I can do this in SM36 and have done it.

But the question is I have couple of email ID's from the company I am working in and some email ID's for a different company.

The concern is when the JOB runs everyone has to receive a mail.

Please suggest.

Thanks.

Shreekant

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,930

Could you just create a custom program that sends the requisite email to a table of email adresses and add that as a final step to the background job? You could then use a custom table to control which email addresses are sent to.

Gareth.

8 REPLIES 8
Read only

Former Member
0 Likes
1,931

Could you just create a custom program that sends the requisite email to a table of email adresses and add that as a final step to the background job? You could then use a custom table to control which email addresses are sent to.

Gareth.

Read only

0 Likes
1,930

Thanks Gareth.

I dont want to do any custom development. I am intrested in creating a distribution list and use it in SM36.

Please suggest..

Ster

Read only

0 Likes
1,930

If you want to send an internal SAP message into SAP Inbox, than it is possible:

Please refer to this thread:

I don't think we have any provision for the "Spool Recipient" for the external email id.

Regards,

Naimesh Patel

Read only

0 Likes
1,930

HI

In Tcode-SBWP you can create a distribution list with both internal and external mail ids

Regards

Read only

0 Likes
1,930

May be creating events will help on this.

Please check this link.

http://searchsap.techtarget.com/general/0,295582,sid21_gci1156900,00.html

a®

Read only

0 Likes
1,930

Thanks All,

I have created the distribution list in SBWP and have used the same in SM36.

However I guess there is a program that needs to run to send all the emails.

ANy idea of what that program is.

Ster

Read only

0 Likes
1,930

Hi,

I'm not 100% sure but it's likely to be a basis setting against the SMTP config of your system. If you run the job and let the emails get sent you should be able to see them in transaction SCOT waiting to be sent - yuo can manually force a send from that transaction but I'm sure there is a setting on the system somewhere that controls how often the mails should go out.

Gareth.

Read only

0 Likes
1,930

Check this


SUBMIT rsconn01 USING SELECTION-SET 'INT' AND RETURN.

a®