TYPES: BEGIN OF ty_lines,
line TYPE char255,
END OF ty_lines.
DATA: ti_lines TYPE STANDARD TABLE OF ty_lines,
wa_lines TYPE ty_lines.
DATA: title TYPE string.
* APPEND LINES TO ti_lines (body) and add a title (subject)
CALL FUNCTION 'EFG_GEN_SEND_EMAIL'
EXPORTING
i_title = title
i_sender = <sender_email>
i_recipient = <receiver_email>
i_flg_commit = 'X'
i_flg_send_immediately = 'X'
TABLES
i_tab_lines = ti_lines
EXCEPTIONS
not_qualified = 1
failed = 2
OTHERS = 3.
No comments:
Post a Comment