Print script in pdf format
Hi all,
I have a script and i need to print it in pdf format ,right now its printing in orginal or normal .Please let me know what i should do in order to print it in pdf form, i don't want to save it somewhere and then print it,i need to print it directly rather than saving it.
Any help would be greatly appreciated
Thanks
deepthi
hi,
can anyone check the code and tell me what iam missing
I don't want to save the pdf file i want to print it or see it under print preview.
WAITING FOR REPLIES
DATA: PDFTAB TYPE TABLE OF TLINE WITH HEADER LINE,
DATATAB TYPE TABLE OF ITCOO WITH HEADER LINE.
DATA: BINFILESIZE TYPE I,
FILE_NAME TYPE STRING,
FILE_PATH TYPE STRING,
FULL_PATH TYPE STRING.
data: begin of itcpp.
include structure itcpo.
data: end of itcpp.
itcpp-tdcopies = 1.
itcpp-tdimmed = 'X'.
itcpp-tddelete = 'X'.
itcpp-tdnewid = ' '.
ITCPP-tddest = 'LP01'.
ITCPP-tdgetotf = 'X'.
itcpp-tdpreview = 'X'.
Call function 'OPEN_FORM'
exporting
device = 'PRINTER'
dialog = 'X'
form = 'ZZ_PICK_LIST '
form = space
language = sy-langu
options = itcpp.
call function 'START_FORM'
exporting
ARCHIVE_INDEX =
form = 'ZTEST'
LANGUAGE = ' '
STARTPAGE = ' '
PROGRAM = ' '
MAIL_APPL_OBJECT =
IMPORTING
LANGUAGE =
EXCEPTIONS
FORM = 1
FORMAT = 2
UNENDED = 3
UNOPENED = 4
UNUSED = 5
SPOOL_ERROR = 6
OTHERS = 7
LOOP AT ITAB.
call function 'WRITE_FORM'
exporting
element = 'HEAD'
function = 'SET'
window = 'MAIN'
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = itcpp
RDI_RESULT =
TABLES
OTFDATA = DATATAB[]
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
OTHERS = 5
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 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
IMPORTING
BIN_FILESIZE = BINFILESIZE
TABLES
OTF = DATATAB[]
LINES = PDFTAB[]
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 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.
*ENDIF.
Similar Messages
-
Dear all,
I am converting script to PDF format, after convention other than English text is problem.
(English is text is visible and other language text is converting into symbol) how to solve this problem.
When I am taking a printout or print preview it is ok.
Thanks in advance
Regards
ManoharHi Manohar,
You have to log on in the environment specific to the language to see the output correctly. Eg: if ur script has japanese font you have to login in japanese environment to get it right in the PDF format.
Regards,
Sookshma -
How to print form into pdf format using smart forms in abap
please let me know how to print form into pdf format using smart forms in abap.
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Mar 25, 2011 2:04 PMHi ,
refer this link
<removed by moderator>
Regards,
Dhina..
Moderator message: please do not reply to questions that violate forum rules.
Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM -
How To Generate And Print Reports In PDF Format From EBS With The UTF8 Char
Hi,
I want to know How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set in R12.0.4.
RegardsRefer to Note: 239196.1 - PASTA 3.0 Release Information
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=239196.1
Or, you can use XML Publisher.
Note: 551591.1 - Need Latest XML Publisher / BI Publisher Patches For R12
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=551591.1 -
Unable to Generate Printed Documentation in PDF Format
This past week I started having a consistent error when attempting to generate a Printed Documentation layout. This error reads "Internal error encountered, Failed to generate Printed Documentation." Prior Printed Documentation builds on this same project completed fine. Nothing was done to the Help project between the times when this worked and when it no longer was able to create Printed Documentation.
I receive this error even if I generate an entirely new "blank project" build, and then attempt to create a Printed Documentation build from this new blank project. Researching this error, I see this has been a reoccuring problem with this product for some time. The few threads that list the problem as having been "fixed" provide resolution steps that have not worked in my case. Right now I am waiting for our IT Helpdesk people to re-install the Suite. Hopefully this will resolve this problem.
Additional information on this problem - PDF Printed Documentation is failing - the HTML build works fine. If I select just a .DOC Printed Documentation output, this also works correctly. The resulting Word document looks good, although hyperlinks do not work within this Word document. I have reloaded Office 2003 as a troubleshooting effort, but this has nbot resulted in any change in symptoms.
The entire error text is enclosed below, although several other people have also done this in past entries. The few lines that read "Warning, and then report a style issue is NOT the problem here. As stated earlier, when I do this same Printed Documentation build on an entirely new "blank project" it does not work, and the Output text in that case does not contain any such "Warnings" about Styles.
Error text below:
Starting to build Printed Documentation...
Printed Documentation processor 8.0.1.204
Building C:\Documents and Settings\tcleary\My Documents\My RoboHelp Projects\Adobe RoboHelp 8\10515-0366-5004_7800v-hh rsp\!SSL!\Printed_Documentation.doc ...
Preparing to create Printed Documentation...
Clearing output folder...
Preparing files for Print Document...
Copying files...
Updating files...
Finished preparing in 2 seconds.
Preparing environment...
Printed Document Generator Environment: Word 11.0.8313, OS 5.1.2600, RAM 2048 M Bytes
Building Printed Documentation 'Printed Documentation'...
Building Single Document 'Printed_Documentation.doc'...
Building 'RF-7800V-HH About this Help'...
Building 'Table of Contents'...
Preparing to build chapters...
Building 'RF-7800V-HH Help and Support'...
Processing 'RF-7800V-HH Welcome'...
Building 'RF-7800V-HH RSP Help'...
Processing 'RF-7800V-HH Station Information'...
Building 'RF-7800V-HH Features'...
Processing 'RF-7800V-HH Features'...
Processing 'RF-7800V-HH Anc. Connector Mode'...
Processing 'RF-7800V-HH No-Sync Beeps'...
Processing 'RF-7800V-HH Power Management'...
Processing 'RF-7800V-HH Retransmit'...
Processing 'RF-7800V-HH USB Mode'...
Processing 'RF-7800V-HH Broadcast Gateway'...
Processing 'RF-7800V-HH IP Routing'...
Processing 'RF-7800V-HH Voice Settings'...
Processing 'RF-7800V-HH Time and Date Settings'...
Processing 'RF-7800V-HH Position Reporting'...
Processing 'RF-7800V-HH User Interfaces'...
Processing 'RF-7800V-HH Net Switches'...
Processing 'RF-7800V-HH Ethernet Interface'...
Building 'RF-7800V-HH Global Settings'...
Processing 'RF-7800V-HH Global Settings'...
Processing 'RF-7800V-HH Radio Passwords'...
Processing 'RF-7800V-HH GPS'...
Processing 'RF-7800V-HH Locksets'...
Building 'RF-7800V-HH Network Types'...
Processing 'RF-7800V-HH Network Types'...
Building 'RF-7800V-HH Fixed Frequency LOS'...
Processing 'General Information - Fixed Frequency LOS'...
Processing 'RF-7800V-HH FF Network Information'...
Processing 'RF-7800V-HH FF Preset'...
Processing 'RF-7800V-HH FF General'...
Processing 'RF-7800V-HH FF Comsec'...
Processing 'RF-7800V-HH FF Data-Voice'...
Processing 'RF-7800V-HH FF Squelch'...
Processing 'RF-7800V-HH FF Advanced'...
Warning: style (p.Heading7) is not defined and will be mapped to 'Normal'.
Building 'RF-7800V-HH Quicklook'...
Processing 'General Information - Quicklook'...
Processing 'Hopset Creation - Quicklook'...
Processing 'RF-7800V-HH QL Network Information'...
Processing 'RF-7800V-HH QL Preset'...
Processing 'RF-7800V-HH QL General'...
Processing 'RF-7800V-HH QL Comsec'...
Processing 'RF-7800V-HH QL Data-Voice'...
Processing 'RF-7800V-HH QL Advanced'...
Building 'RF-7800V-HH Sample Plans'...
Processing 'General Information - Sample Plans'...
Processing 'Simple Fixed and Quicklook Nets'...
Processing 'Single Fixed and Quicklook Nets'...
Processing 'RF-7800V-HH Manage Keys'...
Processing 'RF-7800V-HH Program Radio'...
Building 'RF-7800V-HH Tech Support'...
Processing 'RF-7800V-HH Technical Support'...
Processing 'RF-7800V-HH Radio Firmware Compatibility'...
Building 'FAQs'...
Processing 'RF-7800V-HH FAQ Index'...
Processing 'FAQ 01'...
Warning: style (span.strong) is not defined and will be removed.
Warning: style (p.para) is not defined and will be mapped to 'Normal'.
Processing 'FAQ 02'...
Processing 'FAQ 03'...
Processing 'FAQ 04'...
Processing 'FAQ 05'...
Processing 'RF-7800V-HH Glossary'...
Warning: style (p.FM_CellRowHead) is not defined and will be mapped to 'Normal'.
Warning: style (span.Glossary) is not defined and will be removed.
Warning: style (p.FM_CellBodyLeft) is not defined and will be mapped to 'Normal'.
Warning: style (p.FM_GLOSSARY) is not defined and will be mapped to 'Normal'.
Warning: style (p.FM_Para) is not defined and will be mapped to 'Normal'.
Completed building chapters...
Building 'Index'...
Updating list paragraphs...
Updating images...
Updating page numbers...
Updating page headers...
Updating Table of Contents...
Updating Index...
Saving 'Printed_Documentation.doc'...
Generating 'Printed_Documentation.pdf'...
Failed the generate PDF file 'C:\Documents and Settings\tcleary\My Documents\My RoboHelp Projects\Adobe RoboHelp 8\10515-0366-5004_7800v-hh rsp\!SSL!\Printed_Documentation.pdf'...
Failed to save 'Printed_Documentation.doc'...
Cleaning up temporary files...
I am pretty sure nobody will have any fix suggestions that work to solve this problem, but I am making this entry for historical purposes. I will add an entry stating whether the Suite reload resolves this issue.
Thanks,
Tim C @ HarrisIf I select ONLY the Word DOC Output format in the Printed Documentation
setup, the output is created without an error (output text below). Links do work within
this Word document (a symptom change since installing patch 8.0.2).
When I use this Word document to create a PDF (using the Adobe PDF
printer driver) a PDF is successfully created, however no bookmarks are
created in the bookmarks panel and none of the links in this PDF work
(although they are created looking like they will work, i.e., blue
underlined text).
Regards,
Tim
------------- Output Text --------------------------
Starting to build Printed Documentation...
Printed Documentation processor 8.0.1.204
Building C:\Documents and Settings\tcleary\My Documents\My RoboHelp Projects\Adobe RoboHelp 8\10515-0366-5004_7800v-hh rsp\!SSL!\Printed_Documentation.doc ...
Preparing to create Printed Documentation...
Clearing output folder...
Preparing files for Print Document...
Copying files...
Updating files...
Finished preparing in 3 seconds.
Preparing environment...
Printed Document Generator Environment: Word 11.0.8313, OS 5.1.2600, RAM 2048 M Bytes
Building Printed Documentation 'Printed Documentation'...
Building Single Document 'Printed_Documentation.doc'...
Building 'RF-7800V-HH About this Help'...
Building 'Table of Contents'...
Preparing to build chapters...
Building 'RF-7800V-HH Help and Support'...
Processing 'RF-7800V-HH Welcome'...
Building 'RF-7800V-HH RSP Help'...
Processing 'RF-7800V-HH Station Information'...
Building 'RF-7800V-HH Features'...
Processing 'RF-7800V-HH Features'...
Processing 'RF-7800V-HH Anc. Connector Mode'...
Processing 'RF-7800V-HH No-Sync Beeps'...
Processing 'RF-7800V-HH Power Management'...
Processing 'RF-7800V-HH Retransmit'...
Processing 'RF-7800V-HH USB Mode'...
Processing 'RF-7800V-HH Broadcast Gateway'...
Processing 'RF-7800V-HH IP Routing'...
Processing 'RF-7800V-HH Voice Settings'...
Processing 'RF-7800V-HH Time and Date Settings'...
Processing 'RF-7800V-HH Position Reporting'...
Processing 'RF-7800V-HH User Interfaces'...
Processing 'RF-7800V-HH Net Switches'...
Processing 'RF-7800V-HH Ethernet Interface'...
Building 'RF-7800V-HH Global Settings'...
Processing 'RF-7800V-HH Global Settings'...
Processing 'RF-7800V-HH Radio Passwords'...
Processing 'RF-7800V-HH GPS'...
Processing 'RF-7800V-HH Locksets'...
Building 'RF-7800V-HH Network Types'...
Processing 'RF-7800V-HH Network Types'...
Building 'RF-7800V-HH Fixed Frequency LOS'...
Processing 'General Information - Fixed Frequency LOS'...
Processing 'RF-7800V-HH FF Network Information'...
Processing 'RF-7800V-HH FF Preset'...
Processing 'RF-7800V-HH FF General'...
Processing 'RF-7800V-HH FF Comsec'...
Processing 'RF-7800V-HH FF Data-Voice'...
Processing 'RF-7800V-HH FF Squelch'...
Processing 'RF-7800V-HH FF Advanced'...
Warning: style (p.Heading7) is not defined and will be mapped to 'Normal'.
Building 'RF-7800V-HH Quicklook'...
Processing 'General Information - Quicklook'...
Processing 'Hopset Creation - Quicklook'...
Processing 'RF-7800V-HH QL Network Information'...
Processing 'RF-7800V-HH QL Preset'...
Processing 'RF-7800V-HH QL General'...
Processing 'RF-7800V-HH QL Comsec'...
Processing 'RF-7800V-HH QL Data-Voice'...
Processing 'RF-7800V-HH QL Advanced'...
Building 'RF-7800V-HH Sample Plans'...
Processing 'General Information - Sample Plans'...
Processing 'Simple Fixed and Quicklook Nets'...
Processing 'Single Fixed and Quicklook Nets'...
Processing 'RF-7800V-HH Manage Keys'...
Processing 'RF-7800V-HH Program Radio'...
Building 'RF-7800V-HH Tech Support'...
Processing 'RF-7800V-HH Technical Support'...
Processing 'RF-7800V-HH Radio Firmware Compatibility'...
Building 'FAQs'...
Processing 'RF-7800V-HH FAQ Index'...
Processing 'FAQ 01'...
Warning: style (span.strong) is not defined and will be removed.
Warning: style (p.para) is not defined and will be mapped to 'Normal'.
Processing 'FAQ 02'...
Processing 'FAQ 03'...
Processing 'FAQ 04'...
Processing 'FAQ 05'...
Building 'RF-7800V-HH Glossary'...
Warning: style (p.FM_CellRowHead) is not defined and will be mapped to 'Normal'.
Warning: style (span.Glossary) is not defined and will be removed.
Warning: style (p.FM_CellBodyLeft) is not defined and will be mapped to 'Normal'.
Warning: style (p.FM_GLOSSARY) is not defined and will be mapped to 'Normal'.
Warning: style (p.FM_Para) is not defined and will be mapped to 'Normal'.
Completed building chapters...
Building 'Index'...
Updating list paragraphs...
Updating images...
Updating page numbers...
Updating page headers...
Updating Table of Contents...
Updating Index...
Saving 'Printed_Documentation.doc'...
Completed building Printed Documentation...
Preparing output directory...
Cleaning up temporary files...
Finished Printed Documentation generation in 5 minutes 36 seconds.
Building Printed Documentation complete. -
Printing Problem in PDF format
HI,
Apps - 11.5.10.2
DB-10.0.2.0.4
OS RHEL 4.6
Configure printer in OS level
a. Download the cups software & Install it.
b. Download the printer driver (PPD file) & copy it to /usr/share/cups/model/.
c. /etc/init.d/cups restart
d. Open browser- localhost:631
e. Configure the printer.
Test the print is Coming or not from OS level.
Lp -<filename>
Modify pasta_pdf.cfg for PDF printing
Check PDF package is available
Restart Concurrent Processing Server after changes
Register the printer with Oracle Applications
a. Login with System Administrator Responsibility
b. Navigation: System Administrator - Install – Printer
c. select type accordingly else select PASTA Universal Printer
We need to Register Printer with the same name which has been derived at the Linux Box Level.
Navigation: System Administrator-Install-Printer-Driver
We need to register printer in following steps: Driver -> Styles->Types -> Register
In order to make use of PDF Printing Directly from a Concurrent Program we need to have
PASTA_PDF Driver existing in the Oracle Applications.
Navigation: System Administrator -> Install -> Printer -> Driver
Driver Name : PASTA_PDF
User Driver : Pasta PDF Driver
Description : Pasta driver to print pdf converted to PostScript by 3rd party utility
Driver Method : Program
Driver Method Parameters : Spool File
Program Name : FNDPSTAX
Arguments:
pn$PROFILES$.PRINTER-f$PROFILES$.FILENAME–c$PROFILES$.CONC_COPIES-Fpasta_pdf.cfg
We need to check whether PDF Publisher is exists or not.
Navigation: System Administrator -> Install ->Printer -> Style
Check that for the type PASTA Universal Printer Type – PDF Publisher & PASTA_PDF are present.
Defining and Assigning the Printer at Concurrent Program Level
Am able to get PDF format print for Standard Report like ACT USERS etc..
For Custom report am facing Error
sh: pdftops: command not found
Pasta: Error: Preprocess failed. Command=pdftops /testAPP/testcomn/admin/out/TEST_rofdbs3/o417217.out /testAPP/testcomn/temp/pasta8982_0.tmp
Pasta: Error: Preprocess or Print command failed!!!
APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1
Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.
Action: Review your concurrent request log file for more detailed information.
Thanks
KSV.DBA
Edited by: KSV.DBA on Dec 6, 2010 11:35 PMHi;
Please check below notes:
APP-FND-00500 and lp:Destination Non-Existent [ID 248071.1]
APP-FND-00500 "Oracle Apps Printing Completed With Warning. No Output To Printer" [ID 759089.1]
APP-00500 Or APP-FND-00500 Error When Printing A Report [ID 1018291.102]
APP-FND-00500: AFPPRN ... An Error Occurred In Getting Printer Driver Information [ID 867965.1]
ARDLGP errors with APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN [ID 1124476.1]
Error: APP-FND-00500 XML Report Output is not Printed when Used in Request Set with 'Print Together' Option [ID 801419.1]
Regard
Helios -
Issue in printing table to PDF format
Hi all,
I am really facing an issue in designing reports. I have to customize the report that i am displaying in the dashboard while printing or sending it as mail.I need to create a multipage report.
I have a table displayed on the dashboard. Now with the help of the print button i can print the table to PDF format. But before printing in need to add some pages to the report like on first page i have a introduction(static) then on second page i have a table of content then after that i need to place the table that is on the dashboard etc.
Could it be possible to modify a report like this or any other alternative?
Thanks a lot.I found the solution .
I incorporated query,infofield,company logo in report designer and then i imported the report designer into WAD -
hi,
i want to print the form i created in sapscript. how to do that? need to save the form into pdf format and then print it.
please advise.
thanks.Hi
This is my routine used to generate a pdf file from print, u need only to get the OTF data from CLOSE_FORM fm:
CALL FUNCTION 'CLOSE_FORM'
TABLES
OTFDATA = T_OTF
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE I208(00) WITH 'Errore chiusura stampa'(A02).
ELSE.
PERFORM DOWNLOAD_PDF.
ENDIF.
FORM DOWNLOAD_PDF.
DATA: BIN_FILESIZE TYPE I.
DATA: T_FILE_PDF TYPE STANDARD TABLE OF TLINE,
DOCTAB_ARCHIVE TYPE STANDARD TABLE OF DOCS.
DATA: FILE_TABLE TYPE FILETABLE WITH HEADER LINE.
DATA: RC TYPE I,
USER_ACTION TYPE I.
DATA: TITLE TYPE STRING,
FILENAME TYPE STRING.
CHECK P_PDF = 'X'.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
BIN_FILESIZE = BIN_FILESIZE
TABLES
OTF = T_OTF
DOCTAB_ARCHIVE = DOCTAB_ARCHIVE
LINES = T_FILE_PDF
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE I208(00) WITH 'Errore conversione PDF'(A03).
EXIT.
ENDIF.
TITLE = 'Creare File'(T02).
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE = TITLE
DEFAULT_EXTENSION = '*.pdf'
CHANGING
FILE_TABLE = FILE_TABLE[]
RC = RC
USER_ACTION = USER_ACTION
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
EXIT.
ELSE.
IF USER_ACTION = 9. EXIT. ENDIF.
IF RC = 1.
READ TABLE FILE_TABLE INDEX 1.
ENDIF.
ENDIF.
MOVE FILE_TABLE-FILENAME TO FILENAME.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
BIN_FILESIZE = BIN_FILESIZE
FILENAME = FILENAME
FILETYPE = 'BIN'
CHANGING
DATA_TAB = T_FILE_PDF
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 I208(00) WITH 'Errore creazione PDF'(A04).
EXIT.
ELSE.
MESSAGE S208(00) WITH 'File creato con successo'(S01).
ENDIF.
CHECK P_OPEN = 'X'.
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
URL = FILE_TABLE-FILENAME
EXCEPTIONS
FRONTEND_NOT_SUPPORTED = 1
FRONTEND_ERROR = 2
PROG_NOT_FOUND = 3
NO_BATCH = 4
UNSPECIFIED_ERROR = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
MESSAGE S208(00) WITH 'Impossibile aprire file'(A05).
ENDIF.
ENDFORM. " DOWNLOAD_PDF
Max -
Smart form print preview in PDF format
Hi ABAP Experts,
I have 2 requirements
1) I want to print preview of a smartform in pdf format
2) I also want to attach a local pdf file to the smartform which is displaying in the pdf print preview format
or to rephrase:
I want a pdf attached to a smartform which i want to open in the pdf print preview format.
Regards,
NilouferUse following function modules:
Please see the below code to download a PDF file on to your computer.
PERFORM F_CONVERT_OTF.
FORM F_CONVERT_OTF .
PERFORM F_CALL_SMARTFORM. " Call the smartform to get data in I_OTF_FINAL
**appending the otf data into the final table & save the pdf file.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = C_PDF_U "Value is 'PDF'
IMPORTING
BIN_FILESIZE = L_BIN_FILESIZE "L_BIN_FILESIZE TYPE I,
TABLES
OTF = I_OTF_FINAL
LINES = I_PDF_TAB "It is of type TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
* Check if the file is already existing.
CALL FUNCTION 'TMP_GUI_GET_FILE_EXIST'
EXPORTING
FNAME = L_FILE1 " Path where file is saved
IMPORTING
EXIST = L_RESULT
* ISDIR =
* FILESIZE =
EXCEPTIONS
FILEINFO_ERROR = 1
OTHERS = 2
PERFORM F_GUI_DOWNLOAD USING L_FILE.
ENDFORM.
FORM F_GUI_DOWNLOAD USING P_FILE TYPE STRING.
CONSTANTS: C_BIN(10) TYPE C VALUE 'BIN'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = P_FILE "same as L_FILE
FILETYPE = C_BIN
CONFIRM_OVERWRITE = C_X "value 'X'
TABLES
DATA_TAB = I_PDF_TAB
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.
ELSE.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<removed by moderator>
Edited by: vishalmurgai58 on Mar 6, 2012 1:43 PM
Edited by: Thomas Zloch on Mar 6, 2012 - please do not ask for ... -
Problem selecting tray when printing according to PDF format
When printing a PDF file according to the PDF format the program is not selecting the proper tray for legal size documents. Everything is printed on letter size paper.
You need to tell your printer what tray to use. Reader doesn't tell the printer what tray to use, it is the printer driver. If you are asserting that you have properly set the printer driver to print to a tray while using the Print command in Reader, you will need to tell us what OS? What version of Reader? What printer? What printer driver? How and when you are setting the printer driver info into the Print Dialog box.
-
IPhoto Printing Services from pdf format?
I created a book in iPhoto 08 but it was deleted accidentally. I have Time Machine, but the the book under Project does not show up at all.
Fortunately, i have printed out a pdf version. Can I send the pdf to Apple to order the printing of photo book? Thanks.a book is just a part of the iPhoto library - not something on its own in any way, just entries in the database that can be found or restored alone - so if you open TM in the dock and go back to when the book was there - select the iPhoto library and click restore (restore to the desktop so you do not overwrite your current library unless you want to totally go back to that library) and then depress the option key and launch iPhoto and select the restored library on the desktop - your book should be there
Apple does not print form PDFs according to their documentation - you could ask them - http://www.apple.com/support/photoservices/ordering_options/ - or use Google to look for other alternatives
LN
Message was edited by: LarryHN -
I have a report region based on sql query. I want to print that report region in PDF or word format. How can I do that.
It may further be stated that I dnt have print server configured. Is it possible to do this wihout the configuration of report server.Syed,
If you want to use the PDF printing functionality built into APEX 3.0, you do have to configure a print server, see this document for further information:
http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
There have been discussions on other solutions on this forum, but whichever solution you choose, you'll need to install something that actually generates a PDF or Word (or RTF) document. As an alternative, you could perhaps use the CSV export to open your report in Excel, that option is available out of the box.
Regards,
Marc -
I can't print websites to pdf format
I cannot print a website as a pdf file from Firefox 3.6.13 (I use a Mac OSX 10.6.6). Basically, what I do is go to the pull down menu, select print, and then Save as pdf. It only prints the first page. The print function for Firefox is also smaller, with fewer options, than the normal Mac print function (found in other applications like Office or Safari). The print to pdf works fine with Safari and Chrome (even though Chrome has a print function like Firefox, with fewer options).
You'll need to tell us more information: What version of PowerPoint? How are you "printing to PDF"? (Exactly what are you selecting? PDF in the Print dialog, the Acrobat PDF printer? what?) What Mac OS X version?
-
Unable to print webpage to pdf format.
Hi guys,
i'm using acrobat 7. works fine until i upgrade the pc to windows 7 pro. tried to do a print web page to pdf but gotten tis error " error printing"
its work when i'm using my administrator account but not my user account even if it is set to have administrator rights.
adobe will auto convert the web page to pdf file after i print to desktop but now showing error printing all the time.
any solution?To my knowledge, no one has been successful with AA7 and Win7. Adobe only supports AA9 for Win7. You will likely have to upgrade.
-
(9iAS) problem printing reports in pdf format on NT client
Hi
Some details first:
iAS version=9.0.2.3.0
Reports Version=9.0.2.0.3
Portal Version=9.0.2.3b
Client NT Version=4 SP4
Via a portal connection, a report is called by following a series of hyperlinks and the resulting url is like below:
http://devoc4j.testcentre.co.uk/nrdms/xml/xmlResultSetPDF.xml?PID=eip&SID=vPXP9kQLR2NK1us1004&RID=aGa3Bhbn2PkffA81014&DOCID=2uRpdWVlscVNCab1012&&ieh=report.pdf
This report produces a pdf output fine for a client that has Win2K, however, with Windows NT we receive the following error message:
The requested URL could not be retrieved
While trying to retrieve the URL:
http://devoc4j.testcentre.co.uk/nrdms/xml/xmlResultSetPDF.xml?PID=eip&SID=vPXP9kQLR2NK1us1004&RID=aGa3Bhbn2PkffA81014&DOCID=2uRpdWVlscVNCab1012&&ieh=report.pdf
The following error was encountered:
Unable to determine IP address from host name for unknown server name
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
This is consistent across all NT client boxes.
I have changed the following settings on the NT boxes:
Select TOOLS > INTERNET OPTIONS > CONNECTIONS > LAN
SETTINGS and uncheck AUTOMATICALLY DETECT SETTINGS
This has had no effect, the problem is still existent. Does anyone have any ideas why?
Apologies for the length of the message, it's just to make it all clear!!
Regards
Andy1. From Task Bar at bottom of screen, Select Start, ALL Programs, and Open Adobe Reader
2. Click edit
3. Click Preferences
4. Click Internet
5. Remove check mark for Display PDF in browser
6. Click ok
7a. Close Adobe Reader
7b Restart your PC to apply changes
8. Run your app
9. Generate a PDF report
10. A pop window will appear and check remember and then click ALLOW. Click Remember my action for this site.
11. You may need to Enter username and password (this needs to be done only once to initialize the connection between Adobe and Oracle login app) or if the password/username changes.
Maybe you are looking for
-
CS6 - Is it possible to rotate multiple objects independent of one another?
CS6 - Is it possible to rotate multiple objects independent of one another? In other words selecting say 9 object in a grid then rotating the all 30 degrees on their own axis.
-
How do I change the background color for the knockout effect in Final Cut Pro?
One person suggested to me before to change the video player background in the preference section. It did change the color in the preview, but once I export it. It reverts back to its original color. I want to change the black background you see in t
-
Can incidents be deleted in SolMan 7.1?
I inadvertently had auto-incidents turned on so now I have over 5,000 incidents in my system and it makes things very slow. I would like to delete these incidents. Is there a way to do this without configuring archiving (if you can even do that)? I l
-
I wish to speak to adviser who can help with my problem , not start a discussion about it
I wish to speak to an advisor about my problem nor start a discussion about it
-
Like I wrote above I just want to see how much storage I have left, any other methods on how to view it?