Error opening the PDF file while sending the PDF as an attachment
Hi All,
I am sending a PDF as an attachment in the mail. I am using the code pasted on 'Jul 28, 2006 8:59 AM' subject OTF Format of Purchase Order in email unreadable.
My problem is when I open the attachment in SOST or in the mail, I get the error message "Adobe could not open *.PDF because it is either not a supported file type or because the file type has been corrupted."
Please let me know if anybody has faced such an issue.
The code is found below.
FORM MAIL_OBJECT *
This routine receives OTF data. OTF data is converted to PDF
format and send to the Partner's email address
FORM mail_object TABLES otf_data STRUCTURE itcoo .
DATA: pdf_size TYPE i, " PDF Size
pdf_itab_size TYPE i, " Attachment size
mailtxt_size TYPE i, " Text in mail size
l_vbeln LIKE vbdka-vbeln. " Order Doc
DATA:
it_mailtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE, " Mail Text
it_pdf TYPE TABLE OF tline WITH HEADER LINE, " OTF output
it_mailpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE, " Dist details
it_mailhead LIKE solisti1 OCCURS 1 WITH HEADER LINE," Header data
it_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE, " Rec List
it_pdfdata LIKE solix OCCURS 0 WITH HEADER LINE. " Attachment data
DATA: it_doc_att LIKE sodocchgi1. " Attri of new doc
DATA: BEGIN OF it_pdfout OCCURS 0, " PDF in 255 length
tline TYPE char255,
END OF it_pdfout.
Sales doc and Customer
DATA: BEGIN OF i_vbeln OCCURS 0,
vbeln LIKE vbpa-vbeln, " Sales Document
adrnr LIKE vbpa-adrnr, " Customer
END OF i_vbeln.
Sender Address no and SMTP address
DATA: BEGIN OF i_addrs OCCURS 0,
addrnumber LIKE adr6-smtp_addr,
smtp_addr LIKE adr6-smtp_addr,
END OF i_addrs.
Convert OTF to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = pdf_size
TABLES
otf = otf_data
lines = it_pdf.
Make each line 255 characters
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
TABLES
content_in = it_pdf
content_out = it_pdfout.
Create the PDF File
CLEAR it_pdfdata.
REFRESH it_pdfdata.
it_pdfdata[] = it_pdfout[].
LOOP AT it_pdfout.
MOVE it_pdfout-tline TO it_pdfdata-line.
APPEND it_pdfdata.
CLEAR it_pdfdata.
ENDLOOP.
DESCRIBE TABLE it_pdfdata LINES pdf_itab_size.
Text in the mail.
it_mailtxt-line = 'ORDER ACKNOWLEDGEMENT'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail, Line Number--1'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail, Line Number--2' &
' This is a test mail, Line Number--2'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail, Line Number--3' &
' This is a test mail, Line Number--3' &
' This is a test mail, Line Number--3'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail, Line Number--4' &
' This is a test mail, Line Number--4' &
' This is a test mail, Line Number--4' &
' This is a test mail, Line Number--4'.
APPEND it_mailtxt.
it_mailtxt-line = ' This is a test mail, Line Number--5' &
' This is a test mail, Line Number--5' &
' This is a test mail, Line Number--5' &
' This is a test mail, Line Number--5' &
' This is a test mail, Line Number--5'.
APPEND it_mailtxt.
DESCRIBE TABLE it_mailtxt LINES mailtxt_size.
Document Number for Output
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = vbdka-vbeln
IMPORTING
output = l_vbeln.
Attributes of new doc
CONCATENATE 'Order' space 'Acknowledgement' space l_vbeln
INTO it_doc_att-obj_descr SEPARATED BY space.
it_doc_att-sensitivty = 'F'.
it_doc_att-doc_size = mailtxt_size * 255.
Create Pack to text in mail body.
CLEAR it_mailpack-transf_bin.
it_mailpack-head_start = 1.
it_mailpack-head_num = 0.
it_mailpack-body_start = 1.
it_mailpack-body_num = mailtxt_size.
it_mailpack-doc_type = 'RAW'.
APPEND it_mailpack.
Create Pack to PDF Attach.
it_mailpack-transf_bin = 'X'.
it_mailpack-head_start = 1.
it_mailpack-head_num = 1.
it_mailpack-body_start = 1.
it_mailpack-body_num = pdf_itab_size.
it_mailpack-doc_type = 'PDF'.
CONCATENATE l_vbeln '.pdf' INTO it_mailpack-obj_name.
CONCATENATE 'Order Ack' space l_vbeln INTO it_mailpack-obj_descr.
it_mailpack-doc_size = pdf_itab_size * 255.
APPEND it_mailpack.
*Get email addresses based on Sales document.
SELECT vbeln adrnr INTO TABLE i_vbeln
FROM vbpa
WHERE vbeln = vbdka-vbeln AND
parvw = nast-parvw.
IF NOT i_vbeln[] IS INITIAL.
SELECT addrnumber smtp_addr INTO TABLE i_addrs
FROM adr6 FOR ALL ENTRIES IN i_vbeln
WHERE addrnumber = i_vbeln-adrnr AND
smtp_addr NE space.
ENDIF.
IF i_addrs[] IS NOT INITIAL.
LOOP AT i_addrs.
it_reclist-receiver = i_addrs-smtp_addr.
it_reclist-express = 'X'.
it_reclist-rec_type = 'U'.
it_reclist-notif_del = 'X'. " request delivery notification
it_reclist-notif_ndel = 'X'. " request not delivered notification
APPEND it_reclist.
CLEAR: i_addrs.
ENDLOOP.
ENDIF.
Call FM to send email
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = it_doc_att
put_in_outbox = 'X'
TABLES
packing_list = it_mailpack
object_header = it_mailhead
contents_txt = it_mailtxt
contents_hex = it_pdfdata
receivers = it_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorizationfiltered= 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " MAIL_OBJECT
Regards,
Ajith
Hi Ajith !!
Please refer this link :
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Here a spool output is converted into PDF and then sent as an email.
I think instead of using FM to change the width, try the logic mentioned in the link.
Also instead of FM CONVERT_TO_OTF use :
1. CONVERT_OTFSPOOLJOB_2_PDF
I hope this should solve the problem.
I had referred the same program from the link and it worked absolutely fine. Also check the adobe acrobat version, i guess old version doesnt support SAP, though not very sure.
Best regards,
Prashant
Similar Messages
-
TRYING TO INSTALL adobe photoshop elements8 AND IM GETTING error opening installation log file. verify that the specified location exists and is writable
Error opening installation log file | Windows
-
Garbage name of the Archive File while using the FTP adapter
Hello All
I am using Oralcle FTP adapter to poll a file ,after polling I am deleting the file from the current directory and
archiving it into another directory.
Problem is after archiving the file into the another dirctory name of the is fine changed as follows :
d2wXEgGZrfypNsGa15uzOA==_20081015_082233_0015
I want same name for the archived file as orginal file with timestamp
Please help to solve this problem.
Thanks
Satendra PareYou cannot change the file name in the save dialog, it always uses the originally file name of the form.
But you can use scripting to save a form under another name.
Sample.
http://thelivecycle.blogspot.com/search/label/Save -
Where is the temporary file while copying a pdf to the Clipboard?
When one does a Ctrl+A/Ctrl+C with a very large pdf, the Clipboard does not get populated until the progress bar completes. Where are the bytes going during the interim?
(Save As text is not an option)
Thanks"Audio and video file that do download by way of Safari (progressive download) ...there are temp file, but the temp files themselves can't be open."
Thanks for your answer. Sorry for using the wrong term (streaming v. progressive), but my basic question still remains: WHERE then is the progressive temp file stored on my Mac (even if it can't be opened)? -
Getting Canon 4770 to scan multipages into a PDF file while using the document feeder
Hi All
I'm new to this forum. So if I break any rules with my questions below, kindly forgive me.
But my questions are about my Canon MF4770 printer.
1. Why can't I used the document feeder to scan multiple pages into one PDF file?
2. Why do I have to constantly select the remote scanner option when the printer is connected to my computer?
Any help I can get will be very appreciated.
StarleneHi Starlene and welcome to the Canon forum,
The ability to scan multi-page documents can depend on your operating system and version, and if the scanning software being used supports the feature. However, the MF Toolbox application that accompanies your laser product offers this option when scanning via a USB connection to your computer.
For example, if you are using Windows, below are the steps that would be performed:
1. Place documents.
Note: Up to 35 documents can be loaded in the feeder. Be sure to fan the stack, place it face up, and align the document guides to the width of document.
2. Press [SCAN].
3. Press [^] or [v] to highlight <Remote Scanner>, and then press [OK].
The machine is now waiting to be scanned.
4. Double-click the [Canon MF Toolbox 4.9] icon on the desktop.
The MF Toolbox starts.
5. Click [PDF].
Select [PDF (Multiple Pages)] in [Save as Type].
7. Specify the required settings as needed and click [PDF Settings].
The [PDF Settings] dialog box appears.
8. Specify the required settings as needed and click [OK]:
[Create Searchable PDF] Converts the characters in the document to text data and makes the PDF document searchable with keywords.
[Text Language] Select the language of the text to be scanned. The characters may be recognized more accurately if you select [English] from the drop-down list and set [Image Quality] to [300 dpi] or higher in [Scanner Settings].
[PDF Compression] Select [High] for color images such as photos or illustrations to reduce file sizes.
9. Click [Start].
Note:
A folder with the scanning date will be created in the [MY PICTURES] folder in the [MY DOCUMENTS] folder, and your document will be saved in this folder. If there is no [MY PICTURES] folder, the folder with the scanning date will be created in the [MY DOCUMENTS] folder and your document saved in this folder.
For text documents or black-and-white documents, it is recommended you select either [BLACK and WHITE] or [GRAYSCALE] in [SCAN MODE].
If making a Multiple PDF with color documents ([IMAGE QUALITY] set to [300 dpi]), it is recommended that the PDF have fewer than 20 pages.
The MF toolbox can be loaded from your software CD or downloaded here from the "Drivers & Software" tab on the Canon USA website.
I can understand some confusion on having to select "Remote Scanner" when you have a direct computer connection to your product. The reason for this is that first, the "Remote Scanner" mode refers to seeing your computer as a stand alone, or remote, device; however, the "Computer" scanning mode option allows you to select which computer will be performing a scan when doing so over a network (Max: up to 10 computers).
Another reason for having to select the scan mode is that the selection is not programmed but selected based on the type of scan you will be performing at the time.
If this does not answer your questions or we can offer further assistance, please feel free to Contact Us.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
How to pass parameters to the Control file while loading the data from flat file to staging table
Thanks in advance
Hi ,
LOADDATA statement is required at the beginning of the control file.
INFILE: INFILE keyword is used to specify location of the datafile or datafiles.
INFILE* specifies that the data is found in the control file and not in an external file. INFILE ‘$FILE’, can be used to send the filepath and filename as a parameter when registered as a concurrent program.
INFILE ‘/home/vision/kap/import2.csv’ specifies the filepath and the filename.
Hope this will help you...... -
How to debug the jar files while developing the native extension for android
ANyone???
I'm having the same problem. I learned FB and Eclipse. I've read the tutorials, created an ane, and built it into a test app. I can debug my test app within FB 4.7 on my mobile device via USB. But there are bugs and they silently fail. Despite all my Log statements in my android java code, they won't output to the FB console. I'm blind, without even trace statements to help fix my ane. I've searched the internet and can't find anything. It must either be terribly obvious or arcane, because no one mentions it.
Can anyone tell me how to get trace out of an ane?
The Android reference claims debug and verbose priority are stripped out at runtime. I switched to Log.i() but still get nothing. I suppose for now I'll try throwing errors and see if I can report trace info that way if possible.
Anyone perhaps have a JUnit test that will mimic AIR using the ane jar file as an extension? Perhaps it will be easier to go full native until the android side is debugged.
Update Edit: Ok, now spending more time reading the Android developers website. I've found I can use logcat to get all kinds of useful system logs, including the log output of my embedded ane. I created a nice big command line window (180 char wide with a 500 deep buffer so I can scroll back through all the messages), then from the android platform tools directory I ran 'adb shell', then at the shell prompt $>logcat
Links to info that helped me:
http://developer.android.com/tools/debugging/index.html
http://developer.android.com/tools/help/logcat.html -
Error opening installation log file.
ProblemYou are unable to install BlackBerry Desktop Manager and the following error message is displayed when you open the installation log file:
Error opening installation log file verify that the specified log file exist and is writable.
ResolutionTo resolve this issue, edit the system environment variables by completing the following steps:
Warning: The following procedure requires modifying the computer environment variables. This can result in unexpected system behavior. Document the existing values prior to implementing any changes. To search for the Install.log file or files in the temp folder:
On the Start menu, click Run and type %temp%.
Click OK.
In the Temp folder, click Search and then All files and folders. In the All or part of the file name field, type Install.log and set the Look in field value to Temp.
Click Search.
If the Install.log file is found, delete it.
In Windows® Explorer, go to the C:\ drive and create a new folder called TEMP2.
Open the Control Panel and double-click the System icon.
On the Advanced tab, click Environment Variables.
In the User variables list, select TEMP and click Edit.
In the Variable value field, change the file path to C:\TEMP2 and click OK.
In the User variables list, select TMP and click Edit.
In the Variable value field, change the file path to C:\TEMP2 and click OK.
In the Environment Variables window, click OK.
In the System Properties window, click Apply and then OK.
Restart the computer for the changes to take effect.
Repeat the installation procedure for BlackBerry Desktop Manager.
I have 8330hello,
another solution is here :
http://supportforums.blackberry.com/rim/board/message?board.id=BlackBerryDesktopSoftware&message.id=...
The search box on top-right of this page is your true friend, and the public Knowledge Base too: -
Error Opening Oracle Terminal File fmrweb.
I installed 9IAS portal and the forms/reports server. The portal works fine, but when I try the 'Run Form Web ( runform.htm)' I get an error "Error opening Oracle*Terminal file fmrweb." The file does exist in my c:\oracle\806\forms60 directory and my FORMS60_PATH is set to c:\oracle\806\forms60 as well. Anybody having ( had ) similar problems? Note: 8.1.7, portal, and formsserver installed on the same Win 2000 machine. No Oracle apps. Thanks in advance.
Hi Christian,
It's probably working because you're now using fmrweb.res instead of the foobar fmrwebdk.res. Just look out for that missing quotation mark :)
--Jesper -
I am using Adobe Acrobat 9 Standard version in Windows 8.1 and when I try to create a .pdf file, I receive the following error message "Acrobat could not open "file name.log" because it is either not a supported file type or because the file has been damaged. To create a PDF document, go to the source application then print the document to .pdf" I am going to the source application and printing the document to .pdf yet it's saving the file as a .log file. After reinstalling the software, I initially didn't encounter this problem but on my second and third attempts to convert files to .pdf format, this error message reappeared. How do I resolve this problem?
I have a similar problem which i did not have before...and it exists only in some powerpoint files which i want to print as a pdf file...and i get the same message as above.
the log says the bellow details...what's the problem and how can i resolve it? thanks.
%%[ ProductName: Distiller ]%%
%%[Page: 1]%%
%%[Page: 2]%%
Cambria not found, using Courier.
%%[ Error: invalidfont; OffendingCommand: show ]%%
Stack:
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%% -
I get the following error when trying to open a pdf file... '*pdf.part could not be saved, because the source file could not be read". I am able to open pdf files in IE and other programs.
I am encountering the same problem -- though with .qfx files from my bank. This worked fine in Firefox 31 ESR, but since upgrading to Firefox 33.0, I get the "<name>.qfx.part could not be saved, because the source file could not be read" when I attempt to download. (I should add that downloading PDF statements from the same site works fine, and that the qfx downloads work fine in IE and Chrome.)
I tried safe mode, it is still broken. Tried v34 beta, no luck. I reverted to version 31, it works again.
I guess I will stick with the older version until a solution is found...or just use an alternate browser to download my financial data. -
Cannot open pdf files while the Reader instance is running
Today I suddenly noticed that if I try to open pdf file while the Reader instance is already running (even if it has no pdf files open), the cursor just blinks one or two times without any further activities. So the only way to open files now is by closing the previous instance and starting the new one. I think this problem started to appear after upgrading to 11.0.3. I am using Windows 7 32 bit.
I narrowed the problem: it happens if the file is in a directory which is a join point on the NTFS file system (i.e. a link to another directory), where the link source is in turn a join point itself (i.e. we have a two-level NTFS directory link). As this is rare, it could be not a problem of the particular version of the Reader, it just probably happened by coincidence that after upgrading the first directory I accessed was of this kind.
-
Hi,
I'm getting error as adobe Illustrator crashes while loading the multiple pages PDF file.
Please help me. Thanks in advance.Hi Monika,
I have downloaded the script to load the multiple page of pdf file.
I tried loading the multiple page PDF file via File Menu -> Scripts -> Other Script...
After executing the script file -> Browse and enter the page number - > OK
The PDF file is looks like created from word document. There are total 120 pages in this file.
PDF file size is 20 MB.
I'm still searching for the solutions. Please help me.
Thanks,
Lavprasad -
Error opening PDF file when send as attachment via email
Hi,
I searched around the forum to resolve my issue and there's alot of post that is related but i can't find any answer to my issues.
Here's the scenario :-
I try to convert the smartform to PDF and then send the PDF as an attachment via email.
After converting the smartform to PDF, i managed to download the file and view it without any problem but i can't view the PDF as an attachment. It has the following error :-
Adobe Reader could not open '4500002325.PDF' because it is either not a supported fle type or because the file has been damaged (for example, it was sent as an email and wasn't correctly decoded
The following is the snapshot of my code:-
* Determine smartform function module for invoice
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
* error handling
ent_retco = sy-subrc.
PERFORM protocol_update_i.
ENDIF.
ls_control_param-getotf = 'X'.
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
zxekko = l_doc-xekko " user_settings = ' '
zxpekko = l_doc-xpekko
IMPORTING
document_output_info = l_ssfcrespd
job_output_info = l_ssfcrescl
job_output_options = l_ssfcresop
TABLES
l_xekpo = l_doc-xekpo[]
l_xekpa = l_doc-xekpa[]
l_xpekpo = l_doc-xpekpo[]
l_xeket = l_doc-xeket[]
l_xtkomv = l_doc-xtkomv[]
l_xekkn = l_doc-xekkn[]
l_xekek = l_doc-xekek[]
l_xkomk = l_xkomk
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc = 0.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = v_len_in
BIN_FILE = v_bin_file
TABLES
OTF = l_ssfcrescl-otfdata
LINES = l_pdf
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
* email subject
CONCATENATE 'Purchase order' l_doc-xekko-ebeln INTO lw_subject
SEPARATED BY space.
* RECIPIENTS
lwa_recipients-rec_type = 'U'.
lwa_recipients-express = 'X'.
SELECT adr6~smtp_addr
INTO TABLE gv_smtp_addr
FROM ekko AS ekko INNER JOIN
lfa1 AS lfa1 ON ekko~lifnr = lfa1~lifnr INNER JOIN
adr6 AS adr6 ON adr6~addrnumber = lfa1~adrnr
WHERE ekko~ebeln = l_doc-xekko-ebeln.
IF NOT gv_smtp_addr[] IS INITIAL.
LOOP AT gv_smtp_addr INTO gv_smtp_addr_line FROM 2.
lwa_recipients-receiver = gv_smtp_addr_line.
lwa_recipients-copy = ''.
APPEND lwa_recipients TO ptb_recipients.
ENDLOOP.
* Text Data
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ST'
language = 'E'
name = 'TEST'
object = 'TEXT'
TABLES
lines = lv_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
LOOP AT lv_lines INTO lv_lines_line.
ltb_objtxt = lv_lines_line-tdline.
APPEND ltb_objtxt.
ENDLOOP.
DESCRIBE TABLE ltb_objtxt LINES lw_tab_lines.
READ TABLE ltb_objtxt INDEX lw_tab_lines.
* document data contains information for the whole message
lwa_doc_chng-obj_descr = 'ABAPlist'.
* Control Data
lwa_doc_chng-obj_name = 'TESTING'.
lwa_doc_chng-sensitivty = 'F'.
lwa_doc_chng-no_change = 'X'.
lwa_doc_chng-priority = '1'.
lwa_doc_chng-obj_prio = '1'.
lwa_doc_chng-obj_langu = sy-langu.
CLEAR ltb_objpack-transf_bin.
*Attachment
*Move the binary attachment to other internal table.
ltb_objpack-head_start = 1.
ltb_objpack-head_num = 0.
ltb_objpack-body_start = 1.
ltb_objpack-body_num = lw_tab_lines.
ltb_objpack-doc_type = 'RAW'.
APPEND ltb_objpack.
clear : lw_tab_lines.
*Get the number of lines in the Attachment (PDF FILE)
* DESCRIBE TABLE it_mess_att LINES lw_tab_lines.
DESCRIBE TABLE l_objbin lines lw_tab_lines.
ltb_objpack-transf_bin = 'X'.
ltb_objpack-head_start = 1.
ltb_objpack-head_num = 1.
ltb_objpack-body_start = 1.
ltb_objpack-body_num = lw_tab_lines.
ltb_objpack-doc_type = 'PDF'.
ltb_objpack-obj_descr = l_doc-xekko-ebeln.
ltb_objpack-doc_size = lw_tab_lines * 255.
APPEND ltb_objpack.
*Email Subject
lwa_doc_chng-obj_descr = lw_subject.
lwa_recipients-receiver = recipeint.
lwa_recipients-rec_type = 'U'.
lwa_recipients-copy = 'X'.
lwa_recipients-express = 'X'.
APPEND lwa_recipients TO ptb_recipients.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = lwa_doc_chng
COMMIT_WORK = 'X'
TABLES
packing_list = ltb_objpack
contents_bin = l_objbin
contents_txt = ltb_objtxt
receivers = ptb_recipients.
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.
ENDIF.
Edited by: ~loObie on Apr 23, 2010 12:01 PM
Edited by: ~loObie on Apr 23, 2010 12:02 PMDid you send the pdf in the following format ...
2. Sending PDF as mail.
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = sy-uname.
t_receivers-rec_type = 'B'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
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.
Quote from the Following [LINK|http://www.sap-basis-abap.com/smartforms/convert-the-smart-form-into-pdf-and-send.htm] -
Excel won't open and error message There was a problem sending the command to the programe
Hi there
I'd be grateful for your help.
I've just bought a new laptop and installed Office 2013. I used Excel 2013, did what I needed to do and saved it. This was 5 days ago.
Today, I've tried opening the file from my desktop and get the error message 'There was a problem sending the command to the program'.
And when I try to open Excel to do the DDE fix, which seems to be the best suggestion, I can't open Excel at all. I've tried to get into it from the Apps screen.
Any help would be gratefully appreciated.
ThanksDon't seem like this can be fixed so I went back to version 6.0.2 which works good.
I have Chrome now as my default browser and will not use fire fox until they fix it!
Chrome works great!
Maybe you are looking for
-
Error while activating transformation ---- Message no. RSTRAN510
Hi, while I am Extrating Data From Flat File I encountered this Error. I am working on <b>ECC 6.0 , BI 7.0.</b> I am trying this one in IDES, it is newly installed server. For Flat File Extraction I follwed the Steps 1) I created Data source - let us
-
Remote App cannot control Radio – Continuously displays loading message
Been having this problem for quite a while and no one on the internet seems to know how to fix it. Here are the exact steps: 1. Connect to Macbook Pro itunes from ipad 2 or iphone 4 using Remote App. 2. Connection is established and can control local
-
New hard drive - format and install OS X
My old hard drive crashed and I replaced it with a new one on my IMac 27" (EMC no 2374). Now I am trying to install it OS X 10.6 Snow Leopard threw a flash drive because I don't have the cd but it freezes. When pressing Option at startup I get the th
-
Hi. I just bought an IceCam2 from Macally and hooked it up to my Mac OSX. When I open iChat, the camera icon appears however the video of myself is only a black screen with audio. When I go to preferences, instead of having both camera and microphone
-
How to get a string of an HTML element
Imagine a normal web page with its tags. I have to get the value of a precise element and convert it to a String in order to show it in a TextField. Specifically, I have to take a precise cell of a table and insert it in a string. Does AIR help me wi