2007 Dec 20 7:30 AM
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
2007 Dec 20 7:33 AM
Hi Deepthi,
You can use FM SO_NEW_DOCUMENT_SEND_API1.
Send me your mail id i will send you the code.
Regards,
Satish
2007 Dec 20 7:42 AM
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
2008 Feb 28 9:09 PM
Deepthee,
Have you figured out how to get rich text and/or html into the e-mail body?
If so, how?
-Ken
2008 Feb 28 9:14 PM
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
2008 Mar 05 7:32 AM