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

HTML format on email body

Former Member
0 Likes
756

Dear Gurus,

I am using a standard text for the email body,

For texts it works fine,but when i use any image or try to create grid,the read_text function module returns it as it is ,and i get the command statement in the email.

e.g.

BOX XPOS '0' CM YPOS '7' LN WIDTH '60'CH HEIGHT '0'LN FRAME 9 TW

instead of getting line,i get the statement as it is in the email becoz m reading it by READ_TEXT and then passing it to the table which is then passed to the email send FM.

Is there any way i can add HTML on the email body ???

Please help

reward points for helpful answers

Dear Gurus,

I am using a standard text for the email body,

For texts it works fine,but when i use any image or try to create grid,the read_text function module returns it as it is ,and i get the command statement in the email.

e.g.

BOX XPOS '0' CM YPOS '7' LN WIDTH '60'CH HEIGHT '0'LN FRAME 9 TW

instead of getting line,i get the statement as it is in the email becoz m reading it by READ_TEXT and then passing it to the table which is then passed to the email send FM.

Is there any way i can add HTML on the email body ???

Please help

reward points for helpful answers

5 REPLIES 5
Read only

Former Member
0 Likes
714

Hi Deepthi,

You can use FM SO_NEW_DOCUMENT_SEND_API1.

Send me your mail id i will send you the code.

Regards,

Satish

Read only

Former Member
0 Likes
714

I am already using that FM,

and the email is working fine

only in the email body i cannot send any HTML

objects

in attachment,i have sent the smartform

which is working fine ,the only problem is with the email body.

and can send u email id,the forum rules will be violated

Read only

0 Likes
714

Deepthee,

Have you figured out how to get rich text and/or html into the e-mail body?

If so, how?

-Ken

Read only

former_member187255
Active Contributor
0 Likes
714

Deepthee,

Did u mentioned document type as HTM... check this..

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = ls_docum
document_type = 'HTM'

    * PUT_IN_OUTBOX = ' '
    * IMPORTING
    * SENT_TO_ALL =
    * NEW_OBJECT_ID =

TABLES

    * OBJECT_HEADER =

object_content = lt_content

    * CONTENTS_HEX =
    * OBJECT_PARA =
    * OBJECT_PARB =

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

.
IF sy-subrc 0.

    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Chandra

Read only

Former Member
0 Likes
714

Couldnt get the solution,still closing the thread.