APEX - Cocoon PDF Generates as attachment (issue)
Hello,
[bumped as issue has come to light again, does anyone have any ideas???]
We have Application Express 3.01 with PDF printing configured the Apache Tomcat + Cocoon way. Our APEX instance runs over https on an internal network.
Everything works with no issues, except that in the environment that we are running, browsers are IE configured with an advanced option "Do not save encrypted pages to disk" set (for security reasons related to another application).
PDF's are served as attachments, this means that when you click the "Print PDF" link you are presented with an Open/ Save dialogue. If you click "Open", the file fails to open (as it has not been saved to disk). Everything is fine if you click "Save" then subsequently open the file. It's the same deal with CSV files using the standard APEX CSV generation. If we turn off the security option in IE, it all works fine, even the "Open", but rolling this change out to users is not an option.
This issue comes down to the HTML that the PDF document is being wrapped in. The content-disposition must be being set to "attachment", whereas in this situation we would prefer it set to "inline" which would mean that the PDF opens in the users' browser.
We have tried adding a map:act type="set-header" line to the sitemap.xmap to set the content-disposition but it seems to have no effect, presumably because APEX fires off XML and FO to cocoon, gets back a PDF then generates the HTML to send back to the user.
Other methods we've considered are:
- Apache mod_rewrite entries to rewrite the content-disposition on the Apex web server.
- Adding a before header application process to try to intercept the html and rewrite it manually
Neither of the above are getting us anywhere, does anyone have any ideas? If no-one has any ideas, can you explain how you get from posting a FLOW_XMLP_OUTPUT_R request to getting back a PDF and whether there's anything along the way that could be tapped into?
Many thanks in advance for your assistance.
Matt
Matt,
On this note, it probably also makes sense to mention that with APEX 3.1 we introduce a PL/SQL API that gives you much broader control over what is generated how and the method it's made available to the client. You'll get the ability to retrieve the PDF in a BLOB directly on the server, store in your own tables for later download or send via email attachment. You'll also get the ability to write your own download process using after-submit page processes. And you can have combinations of your own XML with your own stylesheets, or combine report queries with customer stylesheets at runtime, or just simply retrieve the results of pre-defined report queries / report layouts in BLOBs.
I'll talk about this much more on my Blog once 3.1 is out, and will provide whitepapers, how-to's etc
Regards,
Marc
Similar Messages
-
Apex+Cocoon PDF Printing issue on printing Large Reports
Hello All,
I m in a real hard situation with PDF printing in apex.. The application manages to push the report into PDF with lesser record reports but for Large reports, it says File corrupted when i open the downloaded PDF file..
I use Apex+Coocoon and fop printing. I found from some forums as this issue was with Java Heap size being lesser and asked me to increase the size.. so i increased the size from 128MB to 1024MB and my server settings allows me to set 1550MB at the maximum..
If i cross this limit the TOMCAT server stops from running...
But all of the above was not much fruitful, since it throws again the same errors if report rows crosses 6000+ rows, can any one help me out, do i need to check any other settings to make my large reports printable in PDF.
My application needs to print around *20000+ rows each report may have at least 20 columns* to get printed...
Much awaited for your assistance
Edited by: mohansanjee on Sep 8, 2010 3:58 AM
Edited by: mohansanjee on Sep 8, 2010 3:59 AM
Edited by: mohansanjee on Sep 8, 2010 4:00 AMMatt,
On this note, it probably also makes sense to mention that with APEX 3.1 we introduce a PL/SQL API that gives you much broader control over what is generated how and the method it's made available to the client. You'll get the ability to retrieve the PDF in a BLOB directly on the server, store in your own tables for later download or send via email attachment. You'll also get the ability to write your own download process using after-submit page processes. And you can have combinations of your own XML with your own stylesheets, or combine report queries with customer stylesheets at runtime, or just simply retrieve the results of pre-defined report queries / report layouts in BLOBs.
I'll talk about this much more on my Blog once 3.1 is out, and will provide whitepapers, how-to's etc
Regards,
Marc -
Apex long time waiting! APEX + COCOON = PDF Carl's blog
Hello!
Help me, please!
I need to print reports in PDF.
What I did:
1 I installed Apache Tomcat 6.0.14
2 I installed Cocoon 2.1.10
All works fine! http://localhost:8080/Cocoon opened OK
3 I copied fop_post to \apache-tomcat-6.0.14\webapps\cocoon\ , now I have apache-tomcat-6.0.14\webapps\cocoon\fop_post\sitemap.xmap
4 In apex I choose : Oracle BI Publiser - Standart Support
print server host address 192.168.1.112
print server port 8080
print server script \cocoon\fop_post\
Now I make simple report consists from 1 column from a simple table like emp table, and choose.
Output format - PDF
Report Layout - Default Report Layout
Apex is English.
I read that can be problem if I'll write use point in (example) 0.5 and everywhere I used 1.
When I run the programm and click print button I have error message : Acrobat could not open 'a[1].pdf' because is either not a supported file type or because
the file has been damage ......
I saved this file and opened with text editor but there was nothing and size of this file is 0 kb.
HEINZ, show me to slash/backslash and after I change to /cocoon/fop_post/ appear new problem: now APEX LONG TIME WAITING AND DO NOTHING.
PLEASE, explain me where is problem and how to solve it?
Thank you!!!Hello,
It's seems that the version of Apache coming with Oracle 9.2 is used instead of Apache-Tomcat is a normal behavior?Ok just so this is up front , what Oracle ships and my Cocoon setup are two different things and shouldn't effect each other.
The only place the Cocoon server and APEX should touch is the print server URL set in the Instance Administration . The link in the page should look like it goes to your APEX instance, the first one, because what it does is tell the APEX instance to post the XML to the print server
When we manually change the port number to So your doing this by hand and trying to use in a browser locations bar , this will not work it's not supposed to work that. Or did you actually change your print server URL in Instance Administration
What do your Tomcat logs say? If they don't say anything then the XML post isn't even touching Tomcat / Cocoon.
I'll try and help out as much as I can but I've done multiple installations of Cocoon and APEX and each has worked everytime as advertised, well one didn't work and that was when I messed up the URL in Instance Administration and most people that's the problem they have, either wrong/extra slash's or misspelling or just forgetting to do it.
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5 -
Hi,
I have followed Carl's very concise blog on using cocoon for pdf printing. http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
I have tomcat and cocoon up and running on linux (NOT a five minute task on linux unless you are a sysadmin, with all respect to Carl). I have my apex (3.2 on XE ) install pointed to it under Manage Service> Instance Settings > Report Printing.
Now I'm trying to get reports to use this plumbing, but I'm not seeing a builder dialog under Print Attributes> Printing anything like Carl shows in his viewlet. I get only settings for Response Header and Content Disposition, but Carl is showing Enable Report Printing, Link Lable, File Name, Output Format, and Report Layout.
How does the builder decide when to display that kind of Report metadata? Does it have to connect to the print server or "know" that it is up to prompt for that? Any suggestions?
Thanks,
SteveSorry, it was a silly problem:) You have to be logged in as admin to 'see' the 'instances' tab. maybe in all the tomcat/cocoon build/config issues, this simply got off my head!
now, the problem of print server config is over, I have configured the same. the 'print' link is available now in report region, when I run the report. but when I click the 'print' link, it is taking ages...or rather it is still processing...!!
Can anyone please point out to me now what is the problem...?
thanks. -
Issue with Czech characters in PDFs generated from RSTXPDFT4
Hi,
We have a requirement to generate PDF documents from the spool of the Billing document outputs in our project.
For this we are using the standard program RSTXPDFT4, which converts the SAP script OTF to PDF format.
But the Czech characters in the billing document output are not getting displayed in the PDF generated out of it.
We are already using a device type I2HP4 when creating the print request , which supports Latin-2 Character set ( ISO 8859-2 ), to which the special characters
of East European languages belong.
Even then , the czech characters are not getting displayed in the PDF generated.
We have raised a message to SAP for this, and SAP informed us that currently the only solution to this is to use Latin 2 soft fonts,
and to upload these soft fonts into R/3 System using report RSTXPDF2 as they contain the Eastern European special characters plus all the other characters in ISO 8859-2.
But, since character font definitions (font files) are protected by copyrights, SAP informed us that they cannot provide these font files and we have to acquire
these latin-2 font files by searching in search engines in the internet.
If anyone has the information where we can get these "Adobe type 1 Latin-2" font files with '.PFB' extension, for the proper display of Czech characters, please let me know.Hi,
Did you or anyone manage to find a reasonable solution for this issue?
I'm currently facing something similar but with Polish characters instead.
I tried using RSTXPDF2 to upload .PFB and .TTF files but to no avail. -
In one of the dev instance here in Client's side we are facing one issue regarding workflow notification attachment.
We have built a custom workflow which send notification with PDF as an attachment.In ebs workflow list when user try to open the attachment we are getting following error
ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "APPS.WF_NOTIFICATION", line 8114 ORA-06512: at line 1
This error is not occurring in another dev instance and happening at the client side.
Please let me know if any one have come across this error before
I guess this may be some setup at the server side which causing this error.
we are creating custom directory for the above.hi pavan ,
i want to send po output in pdf format to external addresses to multiple receipients i have tried and written code in EXIT_SAPMM06E_013 now iam getting pdf for multiple receipients but unable to print dynamic data(main window data) me getting only hardcoded data in smartform. plz correct me and let me know how dynamic data will be passed from into script.
regards,
chandu... -
Heavy performance issues using Adobe Interactive Form PDFs generated by SAP BPM
Dear experts,
we use Adobe Interactive Form PDFs (generated with LiveCycle Designer) as Human Tasks within SAP BPM processes. The PDFs are generated and transmitted correctly, but when they are opened at the receivers PC, Windows freezes for 2-3 minutes, then the PDF opens and can be filled out and sent back. The next PDFs can be opened much faster, but when the PC is restarted, we get the same problem again. We use Adobe Reader XI (11.0.2) on our clients; is their any know performance issue?
Please note, that we have this problem with EVERY Adobe Interactive Form PDF... I created a simple PDF containing just a field and the client PC still freezes. So it can't be in the form or the scripting. Normal static PDFs can be opend without any problems.
Best regards,
DavidThey haven't really announced it, because there is no product to announce. Rather the opposite.
There are no conversion tools, so far as I know.
XFA forms are a non-starter if you want portability.
AcroForms are a nightmare in themselves, because the functionality is limited in Adobe Reader and varies between absent and weird in other products. No idea about Blackberry support.
You will not find a simple recommendation. Rather, you need to use Acroforms and carefully test everything (EVERYTHING: no assumptions) on every platform you intend to support.
Yes, rather unsatisfactory, but until Adobe realise that the future is platform equivalence or irrelevance, this is where we are. -
XML + COCOON = PDF
Hi
I have a rather complex report to generate (PDF from a Apex page). My project budget does not allow to use BI Publisher.
Have done a bit of research of Cocoon and Apex. Can generate simple pdf's. My report have many levels. Several queries. Have seen Oracle's master detail examples but it does not cover what I want.
Can I generate the XML in a procedure in plsql (and in this way get many levels/rowset) and get it rendered to pdf using the xsl. Have anyone done this? Examples please.
Br. PJHello,
You can use the External Processing attribute of a report to post an XML feed of the report to a specific URL.
There is an example here http://apex.oracle.com/pls/otn/f?p=11933:133 it is overridden to populate a textarea so you can see the feed.
Carl -
Smartforms: Appending Spool o/p(report) to PDF generated by SSF
Dear Murugesh
I have attached the code for Appending Spool o/p(report) to PDF generated by SSF below
Please suggest as i will have 2 finish by this SAT.
(Hint : Under 1 SOrdr there may be several line items==>
The material with ref 2 every line-item either may be configurable(ZPL3) or nonconfigurable(ZA3C)) .
*ENCLOSER TO PACKING LIST
SELECT VBELN POSNR INTO CORRESPONDING FIELDS OF TABLE T_VBAP
FROM VBAP
WHERE VBELN = SSORD.
*For capturing the o/p pages from ZPL3 and consolidating into table
*T_OTF to get single PDF
LOOP AT T_VBAP INTO T_VBAP.
ITNO = T_VBAP-POSNR.
SELECT SINGLE * FROM ZPP_PLCMH WHERE VBELN = SSORD
AND POSNR = ITNO.
IF SY-SUBRC EQ 0.
SET PARAMETER ID: 'AUN' FIELD SSORD ,
'APO' FIELD ITNO.
CALL TRANSACTION 'ZPCE' AND SKIP FIRST SCREEN.
IMPORT A = T_OTF2 FROM MEMORY ID 'MEMID'.
LOOP AT T_OTF2 INTO T_OTF2.
APPEND T_OTF2 TO T_OTF.
ENDLOOP.
REFRESH T_OTF2.
ELSE.
*For capturing the o/p pages from ZA3C and Appending
*at the end of the PDF file just created by the above code
SELECT SINGLE * FROM ZPLH WHERE VBELN = SSORD
AND POSNR = ITNO.
IF SY-SUBRC EQ 0.
SET PARAMETER ID: 'AUN' FIELD SSORD,
: 'APO' FIELD ITNO.
CALL TRANSACTION 'ZPNE' AND SKIP FIRST SCREEN.
IMPORT B = SPOOL_ID FROM MEMORY ID 'MEMID2'.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = SPOOL_ID
NO_DIALOG = ''
DST_DEVICE = E_DEVTYPE
PDF_DESTINATION = 'LOHP'
IMPORTING
PDF_BYTECOUNT = BTC
PDF_SPOOLID =
LIST_PAGECOUNT =
BTC_JOBNAME =
BTC_JOBCOUNT =
TABLES
PDF = T_SPOOL_2_PDF
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11
OTHERS = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
TEXT02 = ITNO.
MESSAGE I014(ZQOTBANK) WITH TEXT02.
ENDIF.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
BIN_FILESIZE = BIN_FILESIZE
TABLES
OTF = T_OTF
DOCTAB_ARCHIVE = T_DOC
LINES = T_LINES
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = BIN_FILESIZE
FILENAME = 'C:\SD6.pdf'
FILETYPE = 'BIN'
APPEND = 'X'
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH = BIN_FILESIZE
TABLES
DATA_TAB = T_LINES
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanx
Moni
Message was edited by: md monirujjamanHello,
Can you explain the problem in detail plz.
I do see that the logic which was proposed is implemented in code.
please check at various places, in run time the following points:
1. Spool ID exported into ABAP Memory.
2. Contents of the Main OTF IntTab.
3. Conversion of the Spool to PFD.Check whether SUBRC = 0. <b>Un-comment all the Exceptions in your FMs where-ever you make a call in your program.</b>
If this conversion of Spool to PDF is successful, you can choose "Append" option from the popup.
Hope this helps you. Or if you have any specific query let me know.
Regards, Murugesh AS -
PDF e-mail attachment will not open after FF update
FF 31 and/or 32
Outlook or GroupWise fat client
PDF attachments
After FF updated PDF's were re-associated with FF not the installed PDF program. Used Windows to re associate PDF's to PDF program. No problem, all PDF's open in PDF program UNLESS the PDF is an attachment in an e-mail.
Open e-mail fat client (doesn't matter the client) try and open the PDF and user gets message stating there is no program associated with attachment. Yet, all PDF's still open with correct PDF program as long as they are not in the e-mail. Now here's the really weird part.....
If there are two or more PDF's attachments in the same e-mail the first one will not open but the second, thirds, etc attached PDF's will open with the correct PDF program.
The only temporary solution I have found is to uninstall FF, re-install it and for a 1/2 day the issue goes away. I have not figured out the trigger that resets the issue.
FF is my go-to browser, but since v 31 this has been happening and if it keeps up, I'm switching to Chrome.
Come on Tech Support, help us out with this issue.Sorry you're having this problem. I think it was previously reported only by Windows XP users.
When you reinstall, were you making Firefox your default browser? Some users have reported that ''not'' making Firefox the default browser was an effective workaround.
However, you may have success with this approach, suggested by a user in another thread, which appears to more thoroughly update the Windows registry:
# Open Adobe Reader / Acrobat
# Edit->Preferences
# In the Categories column click 'General'
# Near the bottom of the page click the button marked 'Select Default PDF Handler'
# In the dialog, select 'Adobe Reader XI' (or Adobe Acrobat, as the case may be) and click 'Apply'
# A Windows Configuration screen will appear. Allow it to do its stuff (takes a few minutes), then restart your computer when prompted.
Does that resolve the issue for you? -
Error in opening PDF generated through HAP_DOCUMENT(ESS/MSS)
Hi Experts,
User is getting an error while opening the PDF generated through "Print" functionality of appraisal document(HAP_Document).
There is a problem i'am facing in this BSP's,when i click on PRINT after creating Appraisal,it will ask me to either open or save in pdf.
But when i open or save it and open it is giving me this message in Adobe
"Acrobat could not open u2018webforms.pdfu2019 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 wasnu2019t correctly decoded).
To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF."
Any body please guide me with a solution.
With Regards,
Surender DahiyaHello Surender,
there may have been connection problems to your content repository when you tried to view this file. I would also recommend that you apply the latest version of the Acrobat Reader. I would recommend that you run a
trace on the RFC destination to your archive and see what errors are reported when this error occurs again.
Best Regards,
Deepak.. -
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,
AjithHi 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 -
Not able to send pdf file as attachment in my apple mail.
Hi, I was easily able to attach pdf files to my apple mail. infact I could just open a pdf file and then send it as attachment in the email earlier. but after downloading and upgrading to os X Mountain lion, I am neither being able to attach and send pdf files in my apple mail, nor can I send PDF file as an attachment.
Is there any issue with OS X Mountain Lion.
Issue 1. I compose Email , then click attach > Browse > select pdf file > click attach > it shows in my Email body either as an icon or as first page of the pdf document > I send it. >>> But when the receipient opens the Email, that pdf attachment is missing. In fact When I put a cc to my self and I open the Email, the attachment is mssing in the incoming E amil.
Issue 2. I open the PDF document > Click on File > send as attachment in E-Mail > on right, a menu appears where I select the File and click attach> I get a message
The SendMail doesnot know how to talk to your default mail client. Please select a different mail application to use. Attaching a screen shot.
I never had these issues earlier with my Lion OS . but since the time I have upgraded to mountain Lion OS, I am having these issues.
Are these the Mountain Lion issues, how to fix these please.I believe, the software team forgot to put a button for send or share as an attachment to preview.
-
ICloud lack of preferences and attachment issues
I've been using iCloud mail for a few weeks after leaving Outlook/Hotmail due to problems. It seems like I've traded off one set is issues for another set with iCloud mail.
There appears to be no preferences available at all to set up preferred body typefaces and styles, email signature (ie. setting sections in bold or italics), colours or anything like what I could do through Outlook. Even this forum box has more type settings, smileys and indent settings than iCloud
More annoyingly, any pdfs I attach and send through iCloud mail more often get a renamed to something along the lines of 'ATT000046.pdf'. This creates real issues for me as a freelance designer reliant on jobs being sent to my clients which are precisely named. I cannot work out why some clients receive the correctly named file, and others receive an 'ATT........' one.
Some files also change to .dat files (a Windows file!?) – this often happens when I zip several pdfs together.
It's getting really frustrating having no great functionality and the attachment issues too, I'd say iCloud mail is worse than Outlook.
Can anyone help?This has happened to me as well and it's making me seriously consider going back to gmail. My pdf attachments are being received as .dat files. Plus, just this morning a pdf that I received came over as a .dat file into my iCloud mailbox. I forwarded the message to my gmail account and it was a perfect pdf that I opened.
I got my Mac about a year ago (which I LOVE) and I decided to go all Apple all the time. But
-The iCloud email thing has so many quirks, like thei .dat file thing.
-The Apple maps aren't as good as the Google Maps app. I was in NYC this weekend with the family and I tried to use both- Google just worked better (it hurts me to say that).
-I know that iCloud for documents is the wave of the future (or so they say), but Dropbox just works so effortlessly for my document storage.
-I know that iWoks is the future, but I can't collaborate with Pages-- my clients all need .doc files and I can't always export to a .doc file. Sometimes Pages won't let me export, other times things like indentations are off. I got picked for the beta test of iWorks in the cloud and it's nice, but limited in functionality
I'm wondering if I should be all Apple devices and go back to gmail/google maps/office. I don't want to do that- I want to be all Apple...not sure what to do because this is driving me crazy. I'm thinking of waiting for iOS7 to come out and see how it works. I know that Apple Maps is being updated too. Not sure.
Sorry for the rant. -
PDF Generator ES: Monochrome image DPI
Has anybody had any issues with DPI settings being overridden in output from PDF Generator ES?
We're passing 200dpi TIFF files in, and getting out PDF files with a DPI of 72 (tested by exporting to TIFF from the PDF) but containing the same number of pixels. The result is the page size is about 2.78 times as large as the original TIFF image.
Right-click conversion to PDF using Acrobat on the server produces a file with the correct DPI (and therefore page size).
I did look through the exported PDFG config files, and noticed this:
> /MonoImageResolution 72
But this seems to be a base operand for other settings (e.g. thresholds for mono image conversions) and changing to 200 seems to have no effect. Have reverted back to defaults now.
Converting the TIFF into a PS file then passing that to PDFG gives the correct DPI/page size. Also the same TIFF files come out correctly on PDFG 7.2.
Putting together a case for Adobe, but asking here in case anyone else has come across this.
Thanks in advance for all input on the matter!I've raised the issue with Adobe and been told that a fix is on the way. If you encounter this same problem and you have a support and maintenance agreement, contact Enterprise Support and they will be able to assist.
Maybe you are looking for
-
Return Sales Order - And its Status
Hello Experts, I have a question in the sales returns scenario. Step 1: I Create a sales order ( With two items and delivery full ) and perform steps till billing ( invoice ). Step 2: I Create Return sales order with reference to the first sales orde
-
Add two more hosts and 2 clusters to a Sun cluster
How do I add 2 more hosts, each with 2 zones, to an existing Sun cluster environment?
-
Update sql help needed for hierarchy table
I am trying update the gross qty field based on each unit qty. This is how the table looks. slevel | manager | seller |unit_qty | gross qty 0 | mary | mary | 1 | 1 .1 | mary | lynn| 3 | null .1 | mary | betty | 2 | null .1 | mary | alice | 2 | null .
-
I installed the PL/SQL web toolkit into our database and it seems to have crashed all of the OAS listeners. When I use the "owsctl start" command, I now get the following error: Error initializing CORE Please check if the ORACLE_HOME is set correctly
-
Li no site da Adobe que he possivel Importar vídeos em uma grande variedade de formatos (AVI, MOV, FLV, MPEG). Contudo o trial que baixei do captivate 8 do insere animations em swf e gif. Gostaria de ouvir uma explicação sobre isto.