Application Development 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: 

Create mails from a Z program

Former Member
0 Kudos

Hi all,

I am trying to do something done with a Z* program and I would like to hear some ideas that may help me. I have already a way to build this but would like to listen to experts.

I have a Z program that is executed in background by an scheduled job with a log in a spool request.

What I would like to implement is what follows:

Everytime the program is executed by a job in background I would like to send an email to a user telling him the program has been executed and attaching a PDF with the spool request printed (this can be easily done with standard report RSTXPDFT4

Thanks in advance for your interest and help,

best regards.

4 REPLIES 4

brad_bohn
Active Contributor
0 Kudos

Did you search the forum? I believe I've answered this one before, as have others.

Former Member
0 Kudos

There are so many threads on this subject. Refer demo program BCS_EXAMPLE_6. This will give you some direction.

Regards,

Pranav

Former Member
0 Kudos

Hi,

I have looked in the forum but don't finde anything. If you have posted the solution, would you be so kind as to post a link to this thread?

Thanks and regards.

Former Member
0 Kudos

Dear,

Its Very simple... While creating a background job (wizard option) you get an option to enter spool list recipients.

As soon as the background job completes an email will be triggered.

Step 1.

Go to SM36

Step 2.

Click on Job Wizard

Step 3.

Enter Job Name

Step 4.

ABAP Prog Step

Step 5.

Enter Prog name, variant if any & Click on spool list recipient...

Then creat the background job...

Edited by: SHREE WADEKAR on Oct 26, 2010 4:32 PM