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: 

Error while opening the PDF attachment

Former Member
0 Kudos

HI SDN's

I have to send order confirmation thru mail as a pdf attachment as soon as order has been saved.

I have written the code and assigned to output type.

Here I am getting an error opening a converted pdf file with Adobe Reader

The error message reads:

Adobe Reader could not open "filename.PDF" because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasn't correctly decoded).

Any help would be appreciated.

Thanks in advance

VR

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

The pdf files created as downloaded file are only supported with Adobes earlier release i.e. before 4.0.

Try to generate it from spool to get it working.

Regards,

Amit

Reward all helpful replies.

0 Kudos

hello, i have the same problem as VR's. The pdf file sent to my email is not able to open. You mentioned that this is only supported by early releases of Adobe. But anyhow, I followed your advice to have my spool converted to PDF, instead of OTF to PDF. But I get this error: Spool request 23595 contains no ABAP list data.

What exactly my transaction does is that, it makes use of a sapscript layout via VL02N using an output type. I retrieve the OTF data in CLOSE_FORM function module. OTF is then converted to PDF via SX_OBJECT_CONVERT_OTF_PDF, then send via email through SO_NEW_DOCUMENT_ATT_SEND_API1.

When I view the sent PDF file in my email, It cannot be opened.

I would appreciate your help guys! thank you very much.

Former Member
0 Kudos

Hello Venkata/ Jane,

Reported PDF issue will be shown if you are opening the PDF files directly from the internet explorer or any any other web browsers on a specific machine/system.

SAP has issued one note  1221634, which has specific setting s required in IE to resolve this issue. PLease check and revert.