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: 

Triggering email with body from PO creation using message control?

Former Member
0 Kudos

Hi Gurus,

I have a urgent requirement.

Whenever a PO is created or changed a email needs to be sent to the vendor automtically.

As a standard functionality throuhg message control, it is possible to send PO form (MEDRUCK) as a attachement.

But our requirement is to add body to the email and then attach that pdf form to this mail and send.

What is the way to do it?

Output determination is done through message control.

(No Workflow is used, please don't suggest that this can be done through it!!).

Thanks in advance!!!

B S B.

2 REPLIES 2

Former Member
0 Kudos

Hi,

If not workflow then probably you need to use an appropriate exit or badi to do this, so you can trigger the mail manually with whatever body message you want.

Hope it helps.

Regards,

Siddhesh S.Tawate

b_deterd2
Active Contributor
0 Kudos

Hi,

Make a copy of your outputprogram RSNASTED or SAPFM06P and make a new subroutine in which you call a function module to send the mail.

Then in the customizing of the message control (tcode NACE) set medium 8 (special function) for the appropriate outputtype (for instance (ZNEU) with the program and subroutine made by you.

Regards,

Bert