2005 May 26 1:59 PM
Hello everybody,
Can anyone tell me what function's module are available in SAP for sending e-mails.
Regards,
Oli
2005 May 26 2:23 PM
Hi Oli;
Checkout these excellent weblogs from Thomas Jung depending on your r/3 version:
Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface:
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
Sending E-Mail from ABAP - Version 46D and Lower - API Interface
/people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
Brant
2005 May 26 2:04 PM
Here is a sample program.....
report zrich_0003 .
data: maildata type sodocchgi1.
data: mailtxt type table of solisti1 with header line.
data: mailrec type table of somlrec90 with header line.
start-of-selection.
clear: maildata, mailtxt, mailrec.
refresh: mailtxt, mailrec.
maildata-obj_name = 'TEST'.
maildata-obj_descr = 'Test'.
maildata-obj_langu = sy-langu.
mailtxt-line = 'This is a test'.
append mailtxt.
mailrec-receiver = 'someone@somewhere.com'.
mailrec-rec_type = 'U'.
append mailrec.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata
document_type = 'RAW'
put_in_outbox = 'X'
tables
object_header = mailtxt
object_content = mailtxt
receivers = mailrec
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Rich Heilman
2005 May 26 2:06 PM
Hi,
Check this.
http://www.sap-img.com/abap-function.htm
Use can use
SO_NEW_DOCUMENT_ATT_SEND_API1
SO_NEW_DOCUMENT_SEND_API1
SO_OBJECT_SEND.
2005 May 26 2:23 PM
Hi Oli;
Checkout these excellent weblogs from Thomas Jung depending on your r/3 version:
Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface:
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
Sending E-Mail from ABAP - Version 46D and Lower - API Interface
/people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
Brant
2005 May 26 6:54 PM