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: 

Sending the PDF image in email.

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

thanks