06-14-2011 3:42 PM
Hi experts,
i have a standard text with a word in bold; i read this standard text with the FM READ_TEXT and set it in table contents_txt of FM SO_NEW_DOCUMENT_ATT_SEND_API1. The result is that, in the body mail, the characters <H> </> are written; instead the client wants to see the text email with the word in bold. Is it possible?
I am on release 4.7.
Thanks and regards
Antonella
06-14-2011 3:48 PM
Hi.,
Yes It is Possible., Use Document type as HTML.
for packing list use doc_type as HTML.
wa_objpack-doc_type = 'HTML'.
APPEND wa_objpack TO t_objpack.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_docdata
put_in_outbox = 'X'
commit_work = 'X' "used from rel.6.10
TABLES
packing_list = t_objpack " this parameter
object_header = t_objhead
contents_txt = t_objtxt
receivers = t_reclist
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 NE 0.
WRITE: 'Sending Failed'.
ELSE.
WRITE: 'Sending Successful'.
ENDIF.
hope this helps u.,
Thanks & Regards,
Kiran