Error when opening =any= PDF with Reader
Hi! Since installing the new Reader software, I keep getting the same error message whenever I try to open =any= PDF, from those on my system for some time to those just downloaded.
The error message says:
Attempt to access invalid address
I can open any PDF with Sumatra or Foxit, so it's not in the file...
Bruce
Hi Bruce,
Are you using EMET Antivirus? I have seen the issue caused due to this. Try disabling it and check.
I have seen this issue fixed for some users by modifying the following registry key:
The key is "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" MoveImages
Set the key to 1 instead of 0 then reboot the machine.
In case you still face the issue try the following registry key change:
The only thing you have to do is rename the following key at the REGEDIT, and everything will be fine !!
BEFORE:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe
AFTER:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.old
Note: Please take a backup of the registry before attempting this change.
Regards,
Rave
Similar Messages
-
Latest Reader Hangs when opening any pdf with 'tools' selected
Any pdf will hang when opened in the latest Acrobat Reader (Either from file or open Acrobar Reader first.)
However if I first open Reader and turn off the tools (Tools top right) I can then open any pdf without problems.
Users who want to have the tools bar open are querying this.
Can anyone help.
Windows 7 64 bit systems.Try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].
-
Errors when opening any PDF file
Can't find a bytecode file to load.
InitializeFormsTrackerJS is not defined
1:App:Init
ReferenceError: InitializeFormsTrackerJS is not defined
1:App:Init
From the Javascript console I get the above whenever I open any PDF file from Acrobat XI Pro.
I'm at version 11.0.7.
Where is the source of this problem ?
A search for InitializeFormsTrackerJS shows no hits in the Javascript folder.The folder is Acrobat\Javascripts
Repair your Acrobat installation. -
Hi All.,
Im facing some issue while opening any form..its stuck in below mention file while opening any form i tried all the ways still im not able to fix the issue.
Application:11.5.10.2
OS-----------HP-UX
DB-----------10.2.0.4.0
File Name:
oracle/forms/ui/FLWTextArea
Work Around
Relink the all the files
Regenerated the jar files
Regenerated the forms
f60gen help=y
Forms 6.0 (Form Compiler) Version 6.0.8.28.0 (Production)
Forms 6.0 (Form Compiler): Release - Production
(c) Copyright 1999 Oracle Corporation. All rights reserved.
PL/SQL Version 8.0.6.3.0 (Production)
Oracle Procedure Builder V6.0.8.21.0 Build #0 - Production
Oracle Virtual Graphics System Version 6.0.5.39.0 (Production)
Oracle Multimedia Version 6.0.8.25.0 (Production)
Oracle Tools Integration Version 6.0.8.17.0 (Production)
Oracle Tools Common Area Version 6.0.5.32.0
Oracle CORE Version 4.0.6.0.0 - Production
Metalink Doc id
java.lang.NoClassDefFoundError: oracle/forms/ui/FLWTextArea Error When Opening Any Form [ID 1219663.1]Thanks,
From the below doc id we are currently in patch set 19 but im not able see that in ad_bugs.,
Note: 232313.1 - Information on Previous Versions of Developer 6i Patchsets
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=232313.1
Here is an example:
If you have Forms: 6.0.8.27.x --> You are on Developer 6i Patch 18
If you have Forms: 6.0.8.26.x --> You are on Developer 6i Patch 17
If you have Forms: 6.0.8.25.x --> You are on Developer 6i Patch 16
If you have Forms: 6.0.8.24.x --> You are on Developer 6i Patch 15
SQL> select bug_number from ad_bugs where bug_number='&BUG_NUMBER';
Enter value for bug_number: 9935935
old 1: select bug_number from ad_bugs where bug_number='&BUG_NUMBER'
new 1: select bug_number from ad_bugs where bug_number='9935935'
no rows selected
SQL> -
Adobe Reader crashes when opening any PDF
Hello!
I have the latest Adobe Reader installed on my parent's laptop. When we try to open ANY PDFs in it, the program crashes and displays the "Adobe Reader has stopped working...." message. I have tried uninstalling and reinstalling the program multiple times and still can't fix the issue. My dad needs it to fill out tax forms when the time comes.
Specs:
PROCESSOR*Intel® Core™ i7-4700MQ ProcessorOPERATING SYSTEM*Windows 7 Professional (available through downgrade rights from Windows 8.1 Pro)GRAPHICS ENGINE*NVIDIA® GeForce® GT 740M graphics with Optimus TechnologyGRAPHICS MEMORY*2GB DDR3 discrete graphics memory
M
EMORY*
16GB DDR3 memory
HARD DRIVE*
1.0TB (5400 RPM, Serial ATA)
OPTICAL DRIVE*
DVD-SuperMulti drive (+/-R double layer)
Audio and Video
DISPLAY SIZE
15.6" widescreen
DISPLAY TYPE*
HD TruBrite® LED Backlit display
DISPLAY RESOLUTION
1366x768 (HD), 16:9 aspect ratio, Supports 720p content
AUDIO
DTS Studio Sound™, Headphone jack (stereo), Microphone jack (mono), harman/kardon® stereo speakers
Communication
WEBCAM
HD Webcam and Microphone
WIRELESS LAN*
Wi-Fi® Wireless networking (802.11b/g/n)
BLUETOOTH
No Bluetooth (No Antenna)
LAN
10/100/1000 Ethernet LAN
The issue is only happening on their computer. I have the same computer model, but 2 lower and I have no problems doing anything in AR. What could be the problem and how can I help my parents fix it? Any help would be greatly appreciated. Thank you!!Hi raptorsama,
Is there any specific error that comes?
You might need to navigate to ''C:\Program Files (x86)\Adobe\Reader 11.0\Reader'', then double-click on Eula.exe and accept the license agreement.
If this does not work, then follow these standard steps as given below:
> Enable the hidden Admin Account on Windows 7 (Ref: http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/ )
> Disable all Non-Microsoft Startup Services
(Ref : http://helpx.adobe.com/x-productkb/global/disable-startup-items-services-windows.html )
> Disable all the Antivirus softwares like CA, Norton,Mc Afee etc. temporarily from the computer.
> Reboot and try installing in the new enabled Admin user account and check
You can also go for a repair option by selecting 'Repair Adobe Reader Installation' option under the Help menu.
Regards,
Anubha -
I can't open any pdf with Adobe Reader XI, neither online or offline - OS X
Since I've upgraded to Acrobat Reader XI I'm not able to open any pdf file.
I can't open any .PDF already existing in my Mac and also can't open anything online throughout browser (I use Safari and Chrome)
I've already uninstalled and reinstalled Adobe Reader over and over again and it has no improving.
I've tried to install an older version and still doesn't work.
All my problems started with the upgrade to Adobe Reader XI.
As you can imagine I really need to be able to open pdf through browser, that's my biggest concern.
I'll attach the error message that appears on the screen.Hi a.vouga,
Are you still facing this issue.
If yes, i would suggest you may create a new user profile and install Reader again and check.
Regards,
Ajlan Huda. -
Error when opening a pdf file in chinese
Hello,
I have created a specific PO form by copying the standard one BBP_PO in SRM.
After generating a pdf file with my specific form, I get the error "There was a problem reading this document (15)" when I try to open it.
I can see some characters, and then everything disappears. I have both english and chinese characters.
The chinese language is installed.
If I use the standard form, I don't get the error !
In the form, I use some standard text, which are created in english and chinese.
Thanks for your help.
MarcJust so you know, my default PDF can opener remains set to Preview, though I will use Acrobat Reader when and if it serves my need.
The upside of the Show scroll bars set to always is intuitive with applications. The downside is that any web content that has the CSS overflow:scroll configured will permanently have scrollbars attached to that content. At least, that is the behavior with Safari on Mavericks. Since I do web work too, I have left my scrollbar setting to when scrolling.
I believe the OP issues about resizing PDFs has to do with the default nature of Preview to open PDFs in continuous, rather than single page mode. In the former state, one must always fuss with resizing the Preview window, and in the latter, Preview does what it should do — a single, tightly cropped PDF page. Setting the Single Page preference setting in one document does not make this behavior permanent for subsequent documents.
I made two changes to Preview that open any PDF in Single Page mode, and tightly cropped to that page:
Preview PreferencesPDF: Define 100% scale as: Size on screen equals size on printout
Defaults write
Change to ~/Library/Containers/com.apple.Preview/Data/Library/Preferences
defaults write com.apple.Preview kPVPDFDefaultPageViewModeOption 1
Continuous view mode is (0) zero
PDF documents will now default to Single Page mode -
No Email Client Associated Error When Opening a PDF
I get an Adobe Reader XI error dialogue when I open any PDF; it says "Email: There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default Programs control panel."
What does Adobe have to do with my email client?
How can this annoying error dialogue be fixed?
I am using a Windows 7 Professional OS
This did not happen with Adobe Reader XDoing some additional research on this I found that the message can occur from different programs: Word, Excel, ..., but all point to an Outlook configuration problem.
See if anything in here helps: http://social.technet.microsoft.com/Forums/windows/en-US/036e3cf6-bff7-4ef2-bd0a-555cd2399 ad4/there-is-no-email-program-associated-to-perform-the-requested-action-please-install-an -email?forum=w7itproappcompat -
Acrobat pauses for 30sec when opening any pdf
Acrobat pauses for 30 seconds after I open any pdf. It will bring up the document, but I cannot do anything with it, like zoom, scroll, or even highligh buttons. If I click on anything, the menu bar will white out. After ~30 seconds, the menu bar goes back to normal and everything works perfectly. If I have Acrobat already open and then open a file, I usually do not have this problem. If I open a file holding down the shift key it still pauses. I can create pdf's no problem and have no other errors, just the pause on opening.
I have Acrobat 9 Pro version 9.3.0 and all the updates. I have tried repairing the install. Removing and uninstalling and no change. Running on a Core 2 Duo 2 GHz, 1GB ram, Win XP. No other problems with the computer. This is just really frustrating when opening a lot of files searching for something. Thanks for any help.Apparently it is the update from 9.0.0 to 9.3.0 that is causing this.
No update, no problems. -
Acrobat pauses when opening any pdf
Figured I would open this again since the previous post was marked as answered....and the problem persists.
Acrobat pauses for 30 seconds after I open any pdf. It will bring up the document, but I cannot do anything with it, like zoom, scroll, or even highligh buttons. If I click on anything, the menu bar will white out. After ~30 seconds, the menu bar goes back to normal and everything works perfectly. If I have Acrobat already open and then open a file, I usually do not have this problem. If I open a file holding down the shift key it still pauses. I can create pdf's no problem and have no other errors, just the pause on opening.
I have Acrobat 9 Pro version 9.3.0 and all the updates. I have tried repairing the install. Removing and uninstalling and no change. Running on a Core 2 Duo 2 GHz, 1GB ram, Win XP. No other problems with the computer. This is just really frustrating when opening a lot of files searching for something. Thanks for any help.
No change when "Use 2D Graphics acceleration" checked or unchecked.
I had been using Acrobat 8 Pro and did not have any problems with it.I am having the exact same issue... it's so frustrating! Does anyone have a solution to this?
Running CS4 on a Core i7 workstation w/ Win 7 64-bit, latest BIOS and video card drivers (ATI Radeon 4890). Acrobat is version 9.3 with all updates. It freezes for 30 seconds just as described, every single time you launch it. -
[N95 8GB]Out of Memory error when opening 15MB pdf...
What is the file size limit when opening a pdf file? I have a 15MB pdf file that cause 'Out of memory' error when I opened it with the PDF Reader that comes with the phone.
Thanks.Hi,
It seems that problem is file specific, so could you please share a file with me. I sending you a private message.
Regards,
Anoop -
Server Authentication Error When Open a pdf
Hi,
we are working on LiveCycle ES2.5, and we have many pdf documents, some of these documents use a data connection to call (use) a process deployed on the JBoss server using the SOAP url, after a restart to the server any user opens any pdf document, that is using data connection, inside the workspace it keeps asking for authentication.
Please check the attached image.
if the user canceled the popup screen he gets the pdf but without the data that should be read using the data connection.
any help?When do you get that message, during the download, or during the installation?
Can you post a screenshot of that message? I am not sure if this is caused by MSE; I have no problems downloading any of these files (running MSE).
It could also possibly be a malware infection of your system that is preventing you from installing software. -
The issue:
www.norwich.gov.uk
When you carry out a search for "co-operative bank" and click the first result (which is a pdf), Adobe Reader is launched and the user sees this error: "There was an error opening this document, The filename, directory name or volume label syntax
is incorrect"
However, if you do any of these...
right-click the link and choose to open it in a new tab
right-click the link, copy the shortcut, paste it into the address bar and hit go
open the file directly from the library
open the file by clicking on a hyperlink
... you are prompted to Open or Save the file. On choosing 'Open' the file is opened in the browser window with no problems. It is only when clicking on the link in the search results that the issue arises. The issue only occurs with IE.
Current settings:
Client integration is disabled
Browser file handling is set to permissive
Default open behaviour for browser-enabled documents is set to open in the browser
DOCICON.xml is configured to show <Mapping Key="pdf" Value="icpdf.png" EditText="Adobe Acrobat" OpenControl=""/>
Disabling the Adobe Acrobat SharePoint Opendocuments add-on 'fixes' the issue, in that the user no longer sees the error, but instead sees the prompt. However, this doesn't help us as the site is public facing asn we cant control user's add-ons.
Hope someone can help.I tried this from my laptop with IE8 and it worked fine.
I trust that answers your question...
Thanks
C
|
RSS |
http://crayveon.com/blog |
SharePoint Scripts | Twitter |
Google+ | LinkedIn |
Facebook | Quix Utilities for SharePoint -
Adobe Error when opening embedded PDF on IE (Sequenced with App-V 5 SP2)
Hi,
Lately we have packaged Adobe Reader XI with App-V 5 SP2 but we are getting an error on some users when they are trying to open embedded PDF on Internet Explorer.
The below screenshot is the error that is currently popping up when users try to open embedded PDF
Any help would be greatly appreciated
ThanksHi ant_merc,
What happens when you try to open Adobe Reader XI in non-protected mode?
For more information check:
http://support.microsoft.com/kb/2900929
http://www.appvirtguru.com/viewtopic.php?f=9&t=5043 -
Error when opening the PDF attachment
Hi,
We are able to successfully send the PDF attachment to external email id from SAP SCRIPT:
but when we are opening the PDF attachment we are getting the following error:
"Adobe Reader could not open because it is not either a supported file type or the file has been damaged ..etc.."
Is any logic need to write for the above or any parameters are missing .
Can any one help...
Thanks in advance.Hi Ramana,
Just try below given example code.....In which I have just different function Module to convert from OFT to PDF....
AT END OF VSTEL.
IF R_EMAIL = 'X'.
*--Opening Layout set for Printing
PERFORM CLOSE_FORM.
SELECT SINGLE SMTP_ADDR INTO V_EMAIL
FROM ADR6
WHERE ADDRNUMBER = T_ADRC-ADDRNUMBER.
CLEAR T_LIPS.
READ TABLE T_LIPS WITH KEY VBELN = T_LIKP-VBELN.
CLEAR T_VBAK.
READ TABLE T_VBAK WITH KEY VBELN = T_LIPS-VGBEL.
CLEAR V_ADRNR.
SELECT SINGLE ADRNR
INTO V_ADRNR
FROM T001
WHERE BUKRS = T_VBAK-BUKRS_VF.
REFRESH T_CC_EMAIL.
CLEAR T_CC_EMAIL.
SELECT SMTP_ADDR INTO TABLE T_CC_EMAIL
FROM ADR6
WHERE ADDRNUMBER = V_ADRNR.
SELECT SINGLE smtp_addr
INTO cc_email
FROM adr6
WHERE addrnumber = v_adrnr.
IF T_TO_EMAIL[] IS INITIAL.
CLEAR T_CC_EMAIL.
REFRESH T_CC_EMAIL.
ENDIF.
PERFORM BUILD_PDF_DATA_TABLE.
Populate message body text
PERFORM POPULATE_EMAIL_MESSAGE_BODY.
CONCATENATE T_LIKP-VSTEL '-' 'Warehouse Release' INTO V_SUBJECT SEPARATED BY SPACE.
Send file by email as .xls speadsheet
PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
TABLES IT_MESSAGE
PT_CONTENTS_BIN "LINES "it_attach
USING V_EMAIL
V_SUBJECT
'PDF'
'Delivery'
'Deliveries'
CHANGING GD_ERROR
GD_RECIEVER.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM INITIATE_MAIL_EXECUTE_PROGRAM.
ENDIF.
ENDAT.
***---/End by sagun
ENDLOOP. "loop at t_likp.
***---/added by sagun 25.05.2007
IF R_EMAIL = 'X'.
WRITE /01 SY-ULINE(180).
WRITE :/55 'End of Report'.
ENDIF.
***---/end by sagun
ENDFORM. " PRINT_DELIVERY
*& Form close_form
text
--> p1 text
<-- p2 text
FORM CLOSE_FORM .
IF R_PRINT = 'X'. " added by sagun 24.05.2007
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF. " added by sagun 24.05.2007
IF R_EMAIL = 'X'.
*otf_table like itcoo occurs 0 with header line
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = .
TABLES
OTFDATA = HOTFDATA
EXCEPTIONS
UNOPENED = 3.
ENDIF.
ENDFORM. " close_form
*& Form BUILD_PDF_DATA_TABLE
text
--> p1 text
<-- p2 text
FORM BUILD_PDF_DATA_TABLE .
DATA : LC_FORMAT(3) TYPE C VALUE 'PDF'.
DATA: lt_tline TYPE tp_tline_standard_table,
DATA : L_BIN_FILESIZE TYPE I,
PC_CONTENTS_BIN_LINES TYPE I.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = LC_FORMAT
IMPORTING
BIN_FILESIZE = L_BIN_FILESIZE
TABLES
OTF = HOTFDATA
LINES = LINES
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
IF SY-SUBRC = 0.
CALL FUNCTION 'QCE1_CONVERT'
TABLES
T_SOURCE_TAB = LINES
T_TARGET_TAB = PT_CONTENTS_BIN
EXCEPTIONS
CONVERT_NOT_POSSIBLE = 1
OTHERS = 2.
IF SY-SUBRC = 0.
DESCRIBE TABLE PT_CONTENTS_BIN LINES PC_CONTENTS_BIN_LINES.
ELSE.
... -->
ENDIF.
ELSE.
An OTF conversion error occured
-->
ENDIF.
ENDFORM. " BUILD_PDF_DATA_TABLE
*& Form POPULATE_EMAIL_MESSAGE_BODY
text
--> p1 text
<-- p2 text
FORM POPULATE_EMAIL_MESSAGE_BODY .
REFRESH IT_MESSAGE.
IT_MESSAGE = 'Please find enclosed here with our Warehouse Release Document(s)'.
APPEND IT_MESSAGE.
CLEAR IT_MESSAGE.
APPEND IT_MESSAGE.
APPEND IT_MESSAGE.
APPEND IT_MESSAGE.
APPEND IT_MESSAGE.
IT_MESSAGE = 'For United Phosphorous Inc.'.
APPEND IT_MESSAGE.
CLEAR IT_MESSAGE.
APPEND it_message.
APPEND it_message.
APPEND it_message.
IT_MESSAGE = 'TEST EMAIL from 520 clinet please ignore it'.
APPEND IT_MESSAGE.
ENDFORM. " POPULATE_EMAIL_MESSAGE_BODY
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
text
-->PIT_MESSAGE text
-->PIT_ATTACH text
-->P_EMAIL text
-->P_MTITLE text
-->P_FORMAT text
-->P_FILENAME text
-->P_ATTDESCRIPTION text
-->P_SENDER_ADDRESS text
-->P_SENDER_ADDRES_TYPE text
<--P_ERROR text
<--P_RECIEVER text
FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES PIT_MESSAGE
PIT_ATTACH
USING P_EMAIL
P_MTITLE
P_FORMAT
P_FILENAME
P_ATTDESCRIPTION
P_SENDER_ADDRESS
P_SENDER_ADDRES_TYPE
CHANGING P_ERROR
P_RECIEVER.
DATA: LD_ERROR TYPE SY-SUBRC,
ld_reciever TYPE sy-subrc,...
LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
LD_EMAIL LIKE SOMLRECI1-RECEIVER,
LD_FORMAT TYPE SO_OBJ_TP ,
LD_ATTDESCRIPTION TYPE SO_OBJ_NAM ,
LD_ATTFILENAME TYPE SO_OBJ_DES ,
LD_SENDER_ADDRESS LIKE SOEXTRECI1-RECEIVER,
LD_SENDER_ADDRESS_TYPE LIKE SOEXTRECI1-ADR_TYP,
LD_RECEIVER LIKE SY-SUBRC.
p_filename = 'INVOICE'.
LD_EMAIL = P_EMAIL.
LD_MTITLE = P_MTITLE.
LD_FORMAT = P_FORMAT.
LD_ATTDESCRIPTION = P_ATTDESCRIPTION.
LD_ATTFILENAME = P_FILENAME.
LD_SENDER_ADDRESS = P_SENDER_ADDRESS.
LD_SENDER_ADDRESS_TYPE = P_SENDER_ADDRES_TYPE.
Fill the document data.
W_DOC_DATA-DOC_SIZE = 1.
Populate the subject/generic message attributes
W_DOC_DATA-OBJ_LANGU = SY-LANGU.
W_DOC_DATA-OBJ_NAME = 'SAPRPT'.
W_DOC_DATA-OBJ_DESCR = LD_MTITLE .
W_DOC_DATA-SENSITIVTY = 'F'.
Fill the document data and get size of attachment
CLEAR W_DOC_DATA.
READ TABLE PIT_ATTACH INDEX W_CNT.
W_DOC_DATA-DOC_SIZE =
( W_CNT - 1 ) * 255 + STRLEN( PIT_ATTACH ).
W_DOC_DATA-OBJ_LANGU = SY-LANGU.
W_DOC_DATA-OBJ_NAME = 'SAPRPT'.
W_DOC_DATA-OBJ_DESCR = LD_MTITLE.
W_DOC_DATA-SENSITIVTY = 'F'.
CLEAR T_ATTACHMENT.
REFRESH T_ATTACHMENT.
T_ATTACHMENT[] = PIT_ATTACH[].
Describe the body of the message
CLEAR T_PACKING_LIST.
REFRESH T_PACKING_LIST.
T_PACKING_LIST-TRANSF_BIN = SPACE.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 0.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = 'RAW'.
APPEND T_PACKING_LIST.
Create attachment notification
T_PACKING_LIST-TRANSF_BIN = 'X'.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 1.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = LD_FORMAT.
T_PACKING_LIST-OBJ_DESCR = LD_ATTDESCRIPTION.
T_PACKING_LIST-OBJ_NAME = LD_ATTFILENAME.
T_PACKING_LIST-DOC_SIZE = T_PACKING_LIST-BODY_NUM * 255.
APPEND T_PACKING_LIST.
Add the recipients email address
CLEAR T_RECEIVERS.
REFRESH T_RECEIVERS.
LOOP AT T_TO_EMAIL WHERE EMAIL <> SPACE.
CLEAR T_RECEIVERS.
T_RECEIVERS-RECEIVER = T_TO_EMAIL-EMAIL.
T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-COM_TYPE = 'INT'.
T_RECEIVERS-NOTIF_DEL = 'X'.
T_RECEIVERS-NOTIF_NDEL = 'X'.
APPEND T_RECEIVERS.
CLEAR T_RECEIVERS.
ENDLOOP.
copy email address
CLEAR T_RECEIVERS.
IF NOT T_RECEIVERS[] IS INITIAL.
LOOP AT T_CC_EMAIL.
T_RECEIVERS-RECEIVER = T_CC_EMAIL-EMAIL.
T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-COM_TYPE = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
T_RECEIVERS-COPY = 'X'.
APPEND T_RECEIVERS.
CLEAR T_RECEIVERS.
ENDLOOP.
ENDIF.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = W_DOC_DATA
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = LD_SENDER_ADDRESS
SENDER_ADDRESS_TYPE = LD_SENDER_ADDRESS_TYPE
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = W_SENT_ALL
TABLES
PACKING_LIST = T_PACKING_LIST
CONTENTS_BIN = T_ATTACHMENT
CONTENTS_TXT = IT_MESSAGE
RECEIVERS = T_RECEIVERS
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.
Populate zerror return code
LD_ERROR = SY-SUBRC.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
IF SY-SUBRC = 0.
FORMAT COLOR COL_NORMAL ON.
LOOP AT T_LOG.
WRITE :/03 T_LOG-VBELN,
19 SY-VLINE,
20 T_LOG-KUNNR,
34 SY-VLINE,
35 T_LOG-NAME1,
76 SY-VLINE,
77 T_LOG-EMAIL,
110 SY-VLINE,
111 'Email Sent Successfuly',
180 SY-VLINE.
ENDLOOP . "t_log
FORMAT COLOR COL_NORMAL OFF.
CLEAR T_LOG.
REFRESH T_LOG.
ENDIF.
IF SY-SUBRC NE 0.
CASE LD_ERROR.
WHEN 1.
V_ERROR = 'too_many_receivers' .
WHEN 2.
V_ERROR = 'Email address not found in Customer Master' .
WHEN 3.
V_ERROR = 'document_type_not_exist'.
WHEN 4.
V_ERROR = 'operation_no_authorization'.
WHEN 5.
V_ERROR = 'Email address not found in Customer Master'.
WHEN 6.
V_ERROR = 'x_error'.
WHEN 7.
V_ERROR = 'enqueue_error'.
WHEN 8.
V_ERROR = 'Error in sending email' .
ENDCASE.
FORMAT COLOR COL_NEGATIVE ON.
LOOP AT T_LOG.
WRITE :/03 T_LOG-VBELN,
19 SY-VLINE,
20 T_LOG-KUNNR,
34 SY-VLINE,
35 T_LOG-NAME1,
76 SY-VLINE,
77 T_LOG-EMAIL,
110 SY-VLINE,
111 V_ERROR,
180 SY-VLINE.
ENDLOOP . "t_log
FORMAT COLOR COL_NEGATIVE OFF.
CLEAR T_LOG.
REFRESH T_LOG.
ENDIF.
ENDFORM. " SEND_FILE_AS_EMAIL_ATTACHMENT
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
text
--> p1 text
<-- p2 text
FORM INITIATE_MAIL_EXECUTE_PROGRAM .
WAIT UP TO 2 SECONDS.
SUBMIT RSCONN01 WITH MODE = 'INT'
WITH OUTPUT = 'X'
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
Reward Point If it usefull....
Cheers,
Sagun Desai....
Maybe you are looking for
-
Hi Version - BPC NW 7.0.02 I'm using the function COPYOPENING: *RUN_PROGRAM COPYOPENING CATEGORY = %HT_CATEGORY_SET% CURRENCY = %HT_RPTCURRENCY_SET% TID_RA = %TIME_SET% *ENDRUN_PROGRAM I have created a specific script for this function and now
-
Dear all need help planning to buy Z3 wanted to know if we can loaded android email app on Z3, apps like Maildroid or magic cloud. waiting for the the info.
-
Facing issues with O2C PIP on AIA 2.4
We have done the installation of AIA FP 2.4 but while doing the installation of PIP (Order To Cash) we are facing issues. We are getting this error message : SEVERE: Abnormal program termination. An internal error has occured. Please provide the foll
-
Sensor analog balance for 2850K color table
Hello I currently try to create a dual illuminant camera profile using DNG Profile Editor 1.0.0.46 beta for our Aptina CMOS MT9P031 based camera. Using the DNG SDK 1.4, i'm converting the BAYER pattern images to a DNG with a Embedded Profile which ha
-
Installing Adobe Pro X to my laptop
I have a URL that guides me to the sign in page. However, I am no longer able to sign in through that link. I was able find a link that would let me sign in, but now I can't find the "download" link as an option so that I can install Adobe Pro X on