Hi Gurus,
My requirement is to send email to consern team if their are any Failed in a Tbale called XXXXX.
So for sending an email i used CL_BCS and SEND_email ( Method ), But here my cocern is i could not able to receive an email with header text details.
Could some suggest me any method from CL_BCS to call the header deatils in my attached file.
Sample code which i am using:
* Create Attachment
lo_email = cl_bcs=>create_persistent( ).
lo_email_body = cl_document_bcs=>create_document(
i_type = 'TXT'
i_subject = lv_sub
i_text = lt_text
i_language = sy-langu ).
*code for attachment
IF lt_binary_content[] IS NOT INITIAL.
TRY.
*-- Add Attachment to the Document
lo_email_body->add_attachment(
i_attachment_type = 'XLS'
i_attachment_subject = lv_sub
i_att_content_hex = lt_binary_content ).
CATCH cx_document_bcs.
Thanks In advance.
Regards,
AJ