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: 

Formatting Body of the Email without HTML

Former Member
0 Kudos

Hi all,

I used HTML to format the email body but the front end which we are using is HTML Script so it prints the HTML tags as hardcoded words.

Can anyone suggest anything can be done or edit the format without HTML

3 REPLIES 3

Former Member
0 Kudos

Hi Jeny,

Could you share more details on how you are formatting HTML text for email body.

I am using standard text(SO10) and automatically converting into HTML. This way I can retain the HTML format in email body.

Thanks,

Ravi

0 Kudos

   CONCATENATE '<br>' '' c_fss '</br>' INTO e_object SEPARATED BY space.
  APPEND e_object TO is_object.

  CONCATENATE  '<br>THIS IS AN AUTOMATED E-MAIL - PLEASE DO NOT REPLY TO THIS MESSAGE!' g_text1 '</br>' INTO e_object SEPARATED BY space.

  APPEND e_object TO is_object.

   CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
  EXPORTING
    document_data                    = e_doc
    DOCUMENT_TYPE                    = 'HTM'
    PUT_IN_OUTBOX                    = 'X'
    COMMIT_WORK                      = 'X'
*   IP_ENCRYPT                       =
*   IP_SIGN                          =
* IMPORTING
*   SENT_TO_ALL                      =
*   NEW_OBJECT_ID                    =
  tables
*   OBJECT_HEADER                    =
    OBJECT_CONTENT                   = is_object
*   CONTENTS_HEX                     =
*   OBJECT_PARA                      =
*   OBJECT_PARB                      =
    receivers                        = is_receiver
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.

This is the code .its works for outlook and gmail but when it comes to HTML script front end it prints <BR> as <BR> itself.

0 Kudos

Jeny,

Add following HTML tags at the beginning and end of body.

1. Append '<HTML><BODY>' to is_object.

2. Append actual message...to is_object.

3. Append '</BODY></HTML>'.. to is_object.

Thanks,

Ravi