‎2012 Mar 22 4:10 PM
Hi experts,
We're using a Z function to read the activity's attachment and send it from mail.
the problem occurs when the attachment is of type .DOC, and in the mail the attachment is corrupt.
Now, we would convert the binary of the document from .DOC but as PDF.
for send mail we are using CL_BCS.
CALL METHOD cl_document->get_document
EXPORTING
io = ls_io
IMPORTING
properties = lt_properties
content_bin = lt_binary
content_ascii = lt_ascii.
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = file_type -> FILE TYPE RETURNED FROM LT_PROPERTIES
i_attachment_subject = file_des
i_att_content_hex = binary_content.
Anybody has any ideas?
Best regards
Marco.
‎2012 Jun 26 1:31 PM
‎2012 Jun 26 2:52 PM
I convert the binary to xstring, then I call a web service that converts the xstring to PDF and returns that back as an xstring. In my case, I think webservice is part of documentum system, perhaps, but not certain. At any rate, you need something that will read binary or xstring and do the conversion to portable data format and return xstring or binary table back to you.