I presume you want to send the email as part of the standard SAP output determination process... if so, you will need to do the business configuration (SPRO) to generate the correct message type in the application. You will also need someone in BASIS to set up the SMTP server.
Have you configured SAP to talk to an external mail system?
You can do this using SAPConnect (transaction SCOT).
You will need to set up an internet node (you can connect to the mail server using RFC, and also HTTP from 6.2 onwards). Once you have done this, you will be able to send mail to your outlook. To look at your 'stuck' messages (the ones that you have sent, but which have not gone anywhere), run transaction SOST.
If you are talking about writing an ABAP program to send email, you can use Function Module 'SO_NEW_DOCUMENT_SEND_API1'or 'SO_NEW_DOCUMENT_ATT_SEND_API1' of you want to send an attachment with the email.
Here are some sample code:
report ztest_0001 .
data: maildata type sodocchgi1.
data: mailtxt type table of solisti1 with header line.
data: mailrec type table of somlrec90 with header line.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.