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

Triggering an email

Former Member
0 Likes
666

HI Experts,

I am assigned a task, where in a email must be triggered, containing a message that ‘Customer data is changed’ to my mail id on change of customer data through XD02 transaction upon pressing SAVE icon.

Regards,

Ram.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
625

Hi,

Get the BADI which is getting triggered on pressing SAVE button and create an implementation for it. In this implementation write the code for sending Emails. You can use FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> to send mail.

Regards,

Amit

4 REPLIES 4
Read only

Former Member
0 Likes
626

Hi,

Get the BADI which is getting triggered on pressing SAVE button and create an implementation for it. In this implementation write the code for sending Emails. You can use FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> to send mail.

Regards,

Amit

Read only

0 Likes
625

Hi...

Call this FM SO_NEW_DOCUMENT_SEND_API1 for sending an email in the below exit:

EXIT_SAPMF02D_001.

Read only

0 Likes
625

Swami,

Can you please send me any sample code if you have any.

Regards,

Ram.

Read only

0 Likes
625

Ram,

Right now i dont have any sample code...

but i will breif u the steps...

Jus check the required condition whether the customer is changed or not...

if changed then call the FM which i mentioned by passing the required parameters...

So by saving the TCODE XD02..definitely the exit will get called and your code will get executed.