Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Email:CL_DOCUMENT_BCS=>CREATE_DOCUMENT

Former Member
0 Likes
1,146

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

1 ACCEPTED SOLUTION
Read only

former_member585060
Active Contributor
0 Likes
714

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

3 REPLIES 3
Read only

former_member585060
Active Contributor
0 Likes
715

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
714

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

Read only

Former Member
0 Likes
714

Thanx