寄信給SAP User(到SAPOffice Index)
1. FM名稱: CATS_SEND_MAIL
2. FM用途說明: 寄信給SAP User(到SAPOffice Index)
3. 輸入參數:
AENAM = 收件者ID
HEADER = 文件屬性(ex. 標題...)
4.輸出參數:(略)
5. Tables:
OBJCONT = 信件內容
6.範例程式/自訂(add-on)程式碼:
---------------------codes--------------------------------
DATA: BEGIN OF ITAB OCCURS 0,
CONTENT LIKE SOLI-LINE,
END OF ITAB.
REFRESH ITAB.
ITAB-CONTENT = 'TEST LINE 1'. APPEND ITAB.
ITAB-CONTENT = 'TEST LINE 2'. APPEND ITAB.
CALL FUNCTION 'CATS_SEND_MAIL'
EXPORTING
AENAM = 'FREDWANG'
HEADER = 'TESTING TITLE'
EXECUTE = 'NONE'
* CPERNR =
* DATE =
TABLES
OBJCONT = ITAB
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC = 0.
MESSAGE I001 WITH 'SEND OK!'.
ELSE.
MESSAGE I001 WITH 'SEND ERROR!'.
ENDIF.
----------------------------------------------------
7. 類似的功能模組有 SO_NEW_DOCUMENT_SEND_API1
沒有留言:
張貼留言
歡迎提供意見, 謝謝 (註 : 留言經過版主審核通過才會發布)