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: 

I have coded a user exit at mm module

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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