04-14-2013 2:38 PM
Hi
I need to send an email to the customer, immediately after the sale order creation. On searching SCN, I got to know that in MV45AFZZ under USEREXIT_SAVE_DOCUMENT we need to add code, as this exit will be invoked each time when we create or change any sales order. My question is do we have any FM to send the email to the particular customer. It would be really helpful if some one can provide the pseudo code.
Regards
Shravan.
04-14-2013 5:58 PM
Hi,
Hope this will help u some extent!
http://wiki.sdn.sap.com/wiki/display/ABAP/Send+Message+to+External+email+id+and+SAP+User+id+via+ABAP
-Satya
04-14-2013 7:34 PM
04-15-2013 7:07 AM
Hello Shravan Kumar,
There are two ways to handle this.
1) Create a custom table holding the customer number for which the email has to be send after creation of sales order. on creation sales through custom exit MV45AFZZ match the customer of the sales order with custom table if a match found create a mail and send it through function module SO_NEW_DOCUMENT_ATT_SEND_API1
2) Create output types for customer with medium as email.
Regards
Suresh Nair