1. 函數 : SO_NEW_DOCUMENT_SEND_API1
功能﹕向SAP 用戶的收信箱中發送Email(內容存與內表中)
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = email_send
document_type = 'RAW'
put_in_outbox = 'X'
put_in_outbox = ''
TABLES
object_content = it_data
receivers = email_rece.
說明﹕document_data : 發送Email 之屬性
object_content : 發送之內容
receivers : 收件者
2. 發送附件郵件 .
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
* objcont = text "信件正文內容
receivers = receivers
packing_list = packing_list
att_cont = text
EXCEPTIONS
OTHERS = 1.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9333231/viewspace-277704/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9333231/viewspace-277704/