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 an email

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi...

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

EXIT_SAPMF02D_001.

0 Kudos

Swami,

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

Regards,

Ram.

0 Kudos

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.