‎2011 Oct 14 5:13 AM
Hi,
While using FM "SO_NEW_DOCUMENT_ATT_SEND_API1" we have an option to desgin email body using HTML by assiging SOPCKLSTI1-DOC_TYPE = 'HTML' ( Packing list-Code for document class) & filing SOLISTI1-LINE = HTML tags.
How could we do the same, I mean using HTML tags to compose email body using "CL_DOCUMENT_BCS=>CREATE_DOCUMENT" ??
CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
I_TYPE = 'RAW'
I_TEXT = IP_BODY
I_SUBJECT = IP_SUBJECT
I_IMPORTANCE = '1'
I_SENSITIVITY = 'P').
When I fill it with HTML tags, email body contents are HTML tag in text. Should we I_HEX (SOLIX_TAB) instead of I_TEXT(SOLI_TAB)
??
Thanx
‎2011 Oct 14 5:19 AM
Hi,
Use I_TYPE = 'HTM'
cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = html_contents
i_subject = mail_subject )Thanks & Regards
Bala Krishna
‎2011 Oct 14 5:19 AM
Hi,
Use I_TYPE = 'HTM'
cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = html_contents
i_subject = mail_subject )Thanks & Regards
Bala Krishna
‎2011 Oct 14 5:31 AM
Hi kevindass ,
Please search in SDN or google to know how to use this class to send a mail in HTML format. You will get lot of discussions.
BR
Kesav
‎2011 Oct 14 6:03 AM