10-07-2010 3:35 PM
Hi,
I am trying to send the pdf doc in email.i am using fm SO_DOCUMENT_SEND_API1.
But when opening the pdf file in the email it is giving error as shown below.
"adobe reader could not open the file because it is either not a supported file type or because of the file has been damaged(for example,it was sent as an email attachment and wasn't correctly decoded)"
i used doc type as PDF only
packing_list-doc_type = 'PDF'.
PDF image is archived from IXOS server.
i used below code get the PDF image as a attachment.
CONCATENATE archiv_id archiv_doc_id INTO image_id.
*Create the image object
swc_create_object image 'IMAGE' image_id.
CALL FUNCTION 'SIN_GENERATE_METHOD_ATTACHMENT'
EXPORTING
object_reference = image
method = 'DISPLAY'
TABLES
container = empty_container
attachment = attachment.
Add the attachment to the document content.
contents_att[] = attachment[].
Can any one help me to resolve this issue.
Thanks in advance.
10-25-2010 1:59 PM