Application Development 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: 

How to make mail content bold

Former Member
0 Kudos

Hi

I am sending some content as a mail using

'SO_DOCUMENT_SEND_API1' funtion module. Now i want to make first line of my content as bold.

Is there any way to make my mail content bold. Please help me?

- Regards

Sowmya

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

Refer to Thomas reply -

Also check this link -

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

E-mails generated with that function module are created in plain text format. The font that would appear when reading the e-mail would be dependt on the user's setting for the e-mail application (e.g. Outlook).

To my knowledge, the font cannot be affected during it's creation.

Hope this sheds some light on your issue.

Former Member
0 Kudos

Hi!

I faced with the same problem, but have found the solution. You have to create your letter in HTM to be able formatting.

Here are the key moments:

 
  CONCATENATE '<b>' text-m10 '</b>:' anlz-kfzkz  "text-m10 will be bold due to HTML formatting
    INTO ls_text.
  APPEND ls_text TO lt_text.

  DESCRIBE TABLE lt_text LINES l_tab_lines.

* Document properties
  CLEAR ls_packlist-transf_bin.
  ls_packlist-head_start = 1.
  ls_packlist-head_num = 0.
  ls_packlist-body_start = 1.
  ls_packlist-body_num = l_tab_lines.
  ls_packlist-doc_type = 'HTM'.
  APPEND ls_packlist TO lt_packlist.

* Send mail
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
            document_data              = ls_docudata
            sender_address             = l_sender
            sender_address_type        = 'B'
       TABLES
            packing_list               = lt_packlist
            contents_txt               = lt_text
            receivers                  = lt_receivers
       EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
 

Regards

Tamá