cancel
Showing results for 
Search instead for 
Did you mean: 

CL_DOCUMENT_BCS HTML mail body formatting

Former Member
0 Kudos

Hi all,

I am using  CL_DOCUMENT_BCS to send mail to MS-office, which is working fine. But now our client is asking my mail body text should have color.

So i used HTM format for parameter I_Type = 'HTM'

When i was using   I_Type = 'RAW', i am getting the below format.

When i was using   I_Type = 'HTM', i am getting the below format.

Kindly advice my in HTM format how to have break line.

Regards,

Rahul

Accepted Solutions (0)

Answers (1)

Answers (1)

bpawanchand
Active Contributor
0 Kudos

Hi,

If you are looking for line break then make use of the HTML tag <BR/>

Use the <br /> tag if you want a line break (a new line) without starting a new paragraph

Regards

Pavan

Former Member
0 Kudos

Hi Pavan,

I tried <br>, but it not getting properly formatted.

Could you advice me how to get font color  when I_Type = 'RAW',.

Regards,

Shegar

anjan_paul
Active Contributor
0 Kudos

Hi,

you have to try with               <font color="#0000FF">Your message </font>

Refer to this link

http://scn.sap.com/thread/1271220

bpawanchand
Active Contributor
0 Kudos

Hi

Check this

Regards

Pavan

Former Member
0 Kudos

Hi Anjan,

When i am using <font color="#0000FF">Your message </font>, i am getting the color, but the format is not coming properly.

All the data is coming in continous line.

Regards

anjan_paul
Active Contributor
0 Kudos

hi,

what you write.

Share your code and screenshot it is coming.

Former Member
0 Kudos

Hi Anjan,

I am getting data from itab and hardcoding some text field, so how to have break point.

Rahulg

bpawanchand
Active Contributor
0 Kudos

HI,

I suggest you to make use of the table HTML tag instead of looking for a line break in the mail body, it looks more sober.

Regards

Pavan

anjan_paul
Active Contributor
0 Kudos

Hi,

How you write.

Means did you put like  <body><font color="#0000FF">Your attachment is bluey!</font>\</body>