07-02-2007 9:10 AM
The man who did the purchasing request will be informed when the product has come to the stocks.
I need to test the user exit with firstly running me51n transaction then me21n and lastly migo.
I have written a function to send the mail and call this function at user exit include.
Do I need any table to send mail?
I did not create any user table.
Thanks in advance.
07-02-2007 10:09 AM
Hi Deniz,
I'm not exactly sure what the question is but to send an email from ABAP check out function modules
SO_NEW_DOCUMENT_SEND_API1 (Send an email)
SO_NEW_DOCUMENT_ATT_SEND_API1 (Send email with attachment)
The program RKSCMAMAIL gives a good example of the use of the send mail function. The recipients can be Sap Users, Distribution Lists or external email address (which can be held against each user or vendor in your case?).
To send mail externally check out transaction SCOT and the related documentation.
I hope this helps.
Darren