Unable to open pdf file sent thro' mail - error in file
Hi,
I am sending the RFQ smartform print as pdf attachment to inbox.
I am facing the a problem when i am trying to open the pdf which i have recieved in my inbox.
Error as below:
"Either not supported file type or file is damaged (it was sent as an attachment and was not decoded properly)"!!!
Can someone please help me to solve the issue.
Regards,
Chitra.P.S
find my code below:-
START-OF-SELECTION .
* FORM ENTRY_NEU
FORM ENTRY_NEU USING RETURN_CODE US_SCREEN.
perform select_record.
DATA: LF_RETCODE TYPE SY-SUBRC.
PERFORM PROCESSING USING US_SCREEN
CHANGING LF_RETCODE.
IF LF_RETCODE NE 0.
RETURN_CODE = 1.
ELSE.
RETURN_CODE = 0.
ENDIF.
ENDFORM.
convert pdf to xstring string
LOOP AT I_TLINE INTO LS_PDF.
ASSIGN LS_PDF TO <FS_X> CASTING.
CONCATENATE LV_CONTENT <FS_X> INTO LV_CONTENT IN BYTE MODE.
ENDLOOP.
* Convert xstring to binary table to pass
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = LV_CONTENT
IMPORTING
output_length = v_lines_bin
TABLES
BINARY_TAB = LT_DATA.
DATA:
w_fmodule TYPE rs38l_fnam,
*w_cparam TYPE ssfctrlop,
*w_outoptions TYPE ssfcompop,
W_bin_filesize TYPE i, " Binary File Size
w_FILE_NAME type string,
w_File_path type string,
w_FULL_PATH type string.
Internal table to hold the OTF data
DATA:
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
Internal table to hold the data from the FM CONVERT_OTF
T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
To display File SAVE dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
CHANGING
filename = w_FILE_NAME
path = w_FILE_PATH
fullpath = w_FULL_PATH
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_bin_filesize
filename = w_FULL_PATH
FILETYPE = 'BIN'
tables
data_tab = T_pdf_tab.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT I_TLINE.
TRANSLATE I_TLINE USING '~'.
CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
ENDLOOP.
TRANSLATE WA_BUFFER USING '~'.
DO.
I_RECORD = WA_BUFFER.
APPEND I_RECORD.
SHIFT WA_BUFFER LEFT BY 255 PLACES.
IF WA_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
* Create Message Body Title and Description
I_OBJTXT = 'RFQ print!'.
APPEND I_OBJTXT.
DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
READ TABLE I_OBJTXT INDEX V_LINES_TXT.
WA_DOC_CHNG-OBJ_NAME = 'RFQ smartform'.
WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
WA_DOC_CHNG-OBJ_DESCR = 'RFQ smartform'.
WA_DOC_CHNG-SENSITIVTY = 'F'.
WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
Main Text
CLEAR I_OBJPACK-TRANSF_BIN.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
I_OBJPACK-BODY_NUM = V_LINES_TXT.
I_OBJPACK-DOC_TYPE = 'RAW'.
APPEND I_OBJPACK.
Attachment (pdf-Attachment)
I_OBJPACK-TRANSF_BIN = 'X'.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
READ TABLE I_OBJBIN INDEX V_LINES_BIN.
I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
I_OBJPACK-BODY_NUM = V_LINES_BIN.
I_OBJPACK-DOC_TYPE = 'PDF'.
I_OBJPACK-OBJ_NAME = 'RFQ'.
I_OBJPACK-OBJ_DESCR = 'RFQ print'.
APPEND I_OBJPACK.
CLEAR I_RECLIST.
I_RECLIST-RECEIVER = wa_SMTP_ADDR.
I_RECLIST-REC_TYPE = 'U'.
*I_RECLIST-com_type = 'INT'.
APPEND I_RECLIST.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = I_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = I_OBJBIN "changed on 03/09/2010
CONTENTS_TXT = I_OBJTXT
RECEIVERS = I_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 <> 0.
WRITE:/ 'Error When Sending the File', SY-SUBRC.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF.
Similar Messages
-
Unable to open PDF files from my banking statements.
I think almost every dev is on arch-general, so that is the place to contact the group in general. Specific points can probably be emailed to the dev involved, if one is identifiable and if the bug tracker is not a better place (bug reports to my email get ignored).
I think the whole problem here is that there is really no dev in charge of that package. So your emails were probably seen then skipped over by all devs thinking not my problem... (I know that is true for me). Then Andrea noticed an "orphan" package that needed updated and went ahead with it without connecting it to your previous emails, which is unfortunate.
Now our maintainer backend is fixed, hopefully we can get all the orphan packages adopted out, or at least know if we need to bring on new people to maintain them. That way, there should always be someone who information about specific packages should be sent to. -
I am unable to open PDF files or run adobe flash when its needed I have downloaded it several times and tried updating it. NEED HELP
Adobe Acrobat NPAPI Plug-in, Version 11.0.04
Adobe® Acrobat® Plug-in for Web Browsers, Version 11.0.04 — from file “AdobePDFViewerNPAPI.plugin”.
application/pdf
Acrobat Portable Document Format
pdf
application/vnd.adobe.pdf
Acrobat Portable Document Format (Interim)
pdf
application/vnd.adobe.pdfxml
Acrobat XML Portable Document Format
pdfxml
application/vnd.adobe.x-mars
Acrobat XML Portable Document Format (Interim)
mars
application/vnd.adobe.xdp+xml
XML Data Package
xdp
application/vnd.adobe.xfd+xml
FormFlow99 Data File
xfd
application/vnd.adobe.xfdf
Acrobat Forms Data Format in XML
xfdf
application/vnd.fdf
Acrobat Forms Data Format
fdf
doubleTwist Web Plugin
doubleTwist Web Plugin — from file “doubleTwistWebPlugin.bundle”.
application/x-vnd-doubletwist
doubleTwist Web Plugin
Java Applet Plug-in
Displays Java applet content, or a placeholder if Java is not installed. — from file “JavaAppletPlugin.plugin”.
application/x-java-applet
Basic Java Applets
javaapplet
application/x-java-applet;deploy=10.25.2
Java applet
application/x-java-applet;javafx=2.2.25
Java applet
application/x-java-applet;jpi-version=1.7.0_25
Java applet
application/x-java-applet;version=1.1
Java applet
application/x-java-applet;version=1.1.1
Java applet
application/x-java-applet;version=1.1.2
Java applet
application/x-java-applet;version=1.1.3
Java applet
application/x-java-applet;version=1.2
Java applet
application/x-java-applet;version=1.2.1
Java applet
application/x-java-applet;version=1.2.2
Java applet
application/x-java-applet;version=1.3
Java applet
application/x-java-applet;version=1.3.1
Java applet
application/x-java-applet;version=1.4
Java applet
application/x-java-applet;version=1.4.1
Java applet
application/x-java-applet;version=1.4.2
Java applet
application/x-java-applet;version=1.5
Java applet
application/x-java-applet;version=1.6
Java applet
application/x-java-applet;version=1.7
Java applet
application/x-java-vm
Java applet
application/x-java-vm-npruntime
Java applet
QuickTime Plug-in 7.7.1
The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site. — from file “QuickTime Plugin.plugin”.
application/sdp
SDP stream descriptor
sdp
application/x-mpeg
AMC media
amc
application/x-rtsp
RTSP stream descriptor
rtsp,rts
application/x-sdp
SDP stream descriptor
sdp
audio/3gpp
3GPP media
3gp,3gpp
audio/3gpp2
3GPP2 media
3g2,3gp2
audio/aac
AAC audio
aac,adts
audio/ac3
AC3 audio
ac3
audio/aiff
AIFF audio
aiff,aif,aifc,cdda
audio/amr
AMR audio
amr
audio/basic
uLaw/AU audio
au,snd,ulw
audio/mid
MIDI
mid,midi,smf,kar
audio/midi
MIDI
mid,midi,smf,kar
audio/mp3
MP3 audio
mp3,swa
audio/mp4
MPEG-4 media
mp4
audio/mpeg
MPEG audio
mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa
audio/mpeg3
MP3 audio
mp3,swa
audio/vnd.qcelp
QUALCOMM PureVoice audio
qcp,qcp
audio/wav
WAVE audio
wav,bwf
audio/x-aac
AAC audio
aac,adts
audio/x-ac3
AC3 audio
ac3
audio/x-aiff
AIFF audio
aiff,aif,aifc,cdda
audio/x-caf
CAF audio
caf
audio/x-gsm
GSM audio
gsm
audio/x-m4a
AAC audio
m4a
audio/x-m4b
AAC audio book
m4b
audio/x-m4p
AAC audio (protected)
m4p
audio/x-midi
MIDI
mid,midi,smf,kar
audio/x-mp3
MP3 audio
mp3,swa
audio/x-mpeg
MPEG audio
mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa
audio/x-mpeg3
MP3 audio
mp3,swa
audio/x-wav
WAVE audio
wav,bwf
image/jp2
JPEG2000 image
jp2
image/jpeg2000
JPEG2000 image
jp2
image/jpeg2000-image
JPEG2000 image
jp2
image/pict
PICT image
pict,pic,pct
image/png
PNG image
png
image/tiff
TIFF image
tif,tiff
image/x-bmp
BMP image
bmp,dib
image/x-jpeg2000-image
JPEG2000 image
jp2
image/x-macpaint
MacPaint image
pntg,pnt,mac
image/x-pict
PICT image
pict,pic,pct
image/x-png
PNG image
png
image/x-quicktime
QuickTime image
qtif,qti
image/x-sgi
SGI image
sgi,rgb
image/x-targa
TGA image
targa,tga
image/x-tiff
TIFF image
tif,tiff
video/3gpp
3GPP media
3gp,3gpp
video/3gpp2
3GPP2 media
3g2,3gp2
video/avi
Video For Windows (AVI)
avi,vfw
video/flc
AutoDesk Animator (FLC)
flc,fli,cel
video/mp4
MPEG-4 media
mp4
video/mpeg
MPEG media
mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa
video/msvideo
Video For Windows (AVI)
avi,vfw
video/quicktime
QuickTime Movie
mov,qt,mqv
video/sd-video
SD video
sdv
video/x-m4v
Video (protected)
m4v
video/x-mpeg
MPEG media
mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa
video/x-msvideo
Video For Windows (AVI)
avi,vfw
SharePoint Browser Plug-in
Microsoft Office for Mac SharePoint Browser Plug-in — from file “SharePointBrowserPlugin.plugin”.
application/x-sharepoint
Microsoft Office for Mac SharePoint Browser Plug-in
Shockwave Flash
Shockwave Flash 11.9 r900 — from file “Flash Player.plugin”.
application/futuresplash
FutureSplash Player
spl
application/x-shockwave-flash
Shockwave Flash
swf
Silverlight Plug-In
5.1.20913.0 — from file “Silverlight.plugin”.
application/x-silverlight -
Unable to open PDF files with Adobe Reader, Mac trying to open files with QuickTime instead, but not succeeding. HELP!
Hi BDAqua,
Thanks for the info, I dragged a PDF to desktop ctrl-, get info. change all to open with adobe.
Problem solved, many thanks for a quick response.
Barry69 -
Unable to open PDF files from Fileserver Content Source using Browser
The situation is this :
A content source was created to search a fileserver
Search facility finds the files using the browser
Able to open MS Office files from the fileserver
Able to open PDF files that are in the Sharepoint Portal
Unable to open PDF files from the Fileserver
Currently using Sharepoint 2010. PDF Filter is installed and configured on the Sharepoint Server
Your assistance is always greatly appreciated.
Have a great day.
NRHHello Nate,
I have the necessary access to the folder.
The content source addresses are
\\172.25.136.53\KDrive\Home\Company\DAILYREP
\\172.25.136.53\KDrive\Home\Company\TRINMAR
\\172.25.136.53\KDrive\Process Safety Management
NRH -
Unable to open pdf files on my IMac I have downloaded
Unable to open PDF Files on my IMac I have installed the latest Adobe Reader still no joy when I try to open any PDF File from a site I just get an empty black
page.Is it only ones you have downloaded? What about for example the ones that came with your iMac - you didn't give a model but mine has a folder "User Guides and Information" that has a number of pdfs. Spotlight should find it for you.
-
Unable to open PDF files in messages since iOS 8.3 update
i updated my iPhone 6 to the iOS 8.3 update and unable to open PDF files with in the messages app ... I was able to do this prior to the update. Was the functionality taken away (still able to open jpg and ping files)?
I visited a "genius" in the Apple Store, Leicester, this morning. After some playing around he seems to have sorted it. Apparently - now they tell me! - you don't need Adobe Reader on Macs as the Mac has its own pdf reader built-in. Safari 5.1 is now clashing with Reader and the best approach is to remove Reader - and the relevent preference files. I took one of my MBPs into the store and am just checking it out to see if everything is now ok. I'm now planning to make the changes on my other machine and will report back. (The genius said that my best approach was to bring in the second MBP but I'm not very convenient to Leicester so I'm going to give it whirl myself.)
Wish me luck.
But why did we load Reader in the first place? Are we that unusual in the Mac community? Surely, others must have done the same and are having the same problem with Safari 5.1??? -
Unable to open PDF files or Adobe Reader
I am unable to opern adobe reader or download a ner version of adobe reader.
Apparently the original software download was corrupt. I tried to
"change" it through the add and delete software area of Windows, and re-installed
the software. That seemed to work. Debating on whether to upgrade to one
of their other products. I could certainly use fillable forms, signature,
and modifiable documents.
Thank you for responding.
In a message dated 3/4/2014 5:34:53 P.M. Pacific Standard Time,
[email protected] writes:
Re: Unable to open PDF files or Adobe Reader
created by Claudio González
(http://forums.adobe.com/people/Claudio+González) in Adobe Reader - View the full discussion
(http://forums.adobe.com/message/6179300#6179300) -
I tried uploading the newest Adobe reader and it did not help. Any ideas?
cl?bank wrote:
"Unable to open PDF file"
Really just that? What is your operating system? -
Unable to open PDFs in received e-mail (Outlook)?
Unable to open PDFs received in Outlook (Office for Mac 2011). Adobe XI message displayed says "There was an error opening this document. The file is damaged and could not be repaired." Same PDFs attached to same mail messages open fine on iPad or iPhone. What could be the problem?
ivone dos santos,
Do you see a message like this when you open one of your PDF documents?
Your PDF document is a special type of form called a "dynamic XFA form". The message is displayed when a dynamic content is not supported by a PDF viewer.
As far as I know, no PDF viewers for iOS and Android mobile devices support dynamic XFA forms. Here are the examples of the iOS apps that do not support dynamic XFA forms.
Adobe Reader for iOS
Mail
Safari
iBooks
The PDF preview feature in Dropbox and other apps
The message is trying to tell you to use the latest desktop version of Adobe Reader, not the mobile version of Adobe Reader. I agree that the sentence, "You can upgrade to the latest version of Adobe Reader...", is somewhat misleading. The message is baked into the dynamic XFA form that was authored by Adobe LiveCycle (desktop app) without regard for non-desktop apps (i.e. mobile apps). Upgrading to the latest version of Adobe Reader for iOS would not help in this case.
Currently, the only option to view and fill out dynamic XFA forms is to use the desktop version of Adobe Reader.
Sorry for the confusion. -
Unable to open PDF file in browser using Reader 9 with IE8
I just updated to IE8 and when trying to open a PDF file on the browser, I received a message stating to use Adobe Reader 8 or 9. I downloaded AR9 and still receive the same message and cannot open PDF files in browser window. It defaults to my Adobe Acrobat 6.0 which will not open the file. I have Windows XP. I do not have a problem opening a PDF file in Yahoo mail with AR9. I have tried many different ideas on the web to no avail. Appreciate any help to be able to default to open PDF files in the browser using AR9 which is apparently required by IE8.
Fixed problem by taking to a computer store to find that my hard drive storage was maxed out. I had the hard drive repaced with a larger amount of storage. Problem resulted from inadequate amount of storage space which prevented me from downloading and installing Adobe Reader 9.
Thanks to al that responded. -
Unable To Open PDF File In Browser
I am unable to open a PDF file within my browser using Adobe Reader. Whenever I attempt to open a PDF file, I get the following message:
The Adobe Acrobat/Reader selected for viewing PDF documents in browsers cannot be found at its installed location, it may have been moved or deleted.
Please reinstall or repair the application (15:524)
I have ensured that Adobe Reader is set as my default program for opening PDF files, and have downloaded and installed the latest version of Adobe Reader. I am running Windows 8 and Internet Explorer 10.
I have attempted to contact Adobe Reader Support and was informed that the expected wait time was 3-5 minutes. I have been holding for over an hour without any support.How about if you right click on the PDF and select Save Link As..., and then open it locally from within Reader? Does it work ok then? That might be a workaround until the issue within the browser is resolved.
Rob Jaworski
Intl Program Manager -
Unable to open PDF files in Internet Explorer
Hello,
One of our users has a problem with opening PDF files in Internet Explorer.
Translation:
Adobe PDF-document
There is a problem with Adobe Acrobat/Reader. Close Adobe Acrobat/Read and try again.
The user is using Adobe Acrobat 8 Standard in combination with Windows XP and Internet Explorer 6. I reinstalled Adobe Acrobat (under an administrator account), deleted the local user profile and the problem is still there.
Does anyone have an idea about this? The error message doesn't really say what is wrong. Adobe Reader is not installed.What exactly means "unable"? Do you see a little x in a box on the top left of IE11? If so, this may be the solution: http://support.microsoft.com/kb/2716529
-
UNABLE TO OPEN PDF ATTACHMENTS IN E-MAIL
Over the past week,I have been unable to open PDF attachments in my AOL webmail. I encounter no problems with my Outlook Express e-mail. Why is this suddenly happening and how can I correct the problem?
To make sure that Adobe Reader is default,
goto Edit->Preferences->Select default PDF Handler. Check the value in the dropdown list "Select Adobe product". If the first value which appears is 'Adobe ReaderX', then Reader X is the default PDF Handler.
Also please let me know the OS you are using.
Is the problem also faced in AOL webmail with any other Adobe Product(like Acrobat X, Reader 9 etc.) if you are using/used any of them?
Thanks,
Shakti -
Unable to open PDF files with acroread
Hi,
We have a solaris 9 server with acroread installed on the server. When I log in to the server with any local user (root or any other user) I'm able to open the PDF files which are locally on the server as well the PDF files which are on NFS Share with acroread but when a user whose home directory is NFS mounted log in to the server, he is neither able to open PDF files which are local on that server nor the PDF files which are on NFS share with acroread.
I have tried by restarting the NFS services and also by rebooting the server but the same problem persists.
Please suggest.
Thanks!!!!Hello Harpreet,
As I understand,default Gtk+ version on Solaris 9 is 2.1.0. You must have a higher version of Gtk+ installed on this machine since you are able to launch Adobe Reader. Could you let us know if the version of this Gtk+ installation is 2.4.9. Also, does your NFS share contains home directories of a large number of users? Does "unable to open" means that Adobe Reader becomes unresponsive?
If this is the case, you need to upgrade the Gtk+ installation to the recommended version i.e 2.6 or higher.
Regards
Sanika -
Hi ShaneMiseer,
I looked at your account and see that you have an active subscription to ExportPDF. Are you trying to open PDF files, or files that you've converted from PDF to another format? What happens when you try to open the files? Do you receive an error message (and if so, what is it?).
Best,
Sarathe response is that the attachment has been damaged or in a format that cannot be opened
Sent from Windows Mail
Maybe you are looking for
-
Inserting a Value into otherTable using an App. Proc. from a Date Picker
I'm trying to call an Application Process that will insert an Attribute of a Row, into another table, after selecting a date from a Date Picker cell. I don't know why this shouldn't be possible. I think I've got all of my "Ducks in a Row", so to spea
-
What is IP address? trying to connect to wi-fi network.
typed in my wi-fi network (FIOS). it's still searching for the network, i guess... was instructed that the next thing to do would be to input password. I am not seeing a place to input a password. Confused and frustrated.
-
Selection screen is missing when query is executed
Hi Friends, I am running a query and it gets executed without showing the selection screen. Here it is how I am running the query: 1. Go to Business Explorer (3.x)-->Analyser(3.x) 2. IT ask for SAP Log on 3. I choose system which is 7.0 then it runs
-
I have cron jobs which do not always run. Has anyone had this problem. These are simple executables which may run one day, but not the next. Very puzzling.
-
WAP321 MAC Filtering Not Working
Hello, We have 6 x WAP321's setup via "Single Point Setup". We have enabled MAC Filtering and set to "Block all stations in list". We have added one device into this list and confirmed this replicates around all the APs. However, it doesn't prevent t