‎2009 Jan 15 5:38 AM
Hi All
My requirement is to display a spool in PDF form in sp02 transaction. I am getting the spool in OTF form, but I need to show it in PDF format. Its not downloading to PDF form. Its just to display in SP02 tcode. Is it possible? If so, how? I tried using CONVERT_ABAPSPOOLJOB_TO_PDF. This function module outputs the data in PDF internal table. After this what can be done to display in PDF form.
Thanks
‎2009 Apr 01 1:35 PM
Hi Shakir,
Use Function Module CONVERT_ABAPSPOOLJOB_2_PDF.
Pass the Spool Number and the Table parameter will return the PDF format.
‎2009 Apr 01 1:25 PM
If you have the PDF into a XSTRING variable, you can use this function module:
call function 'ISH_DALE_PDF_DISPLAY'
exporting
i_pdf = lv_pdf.
TITLE =
.
If you stored the PDF on the presentation server (cl_gui_frontend_services=>gui_download), you can use this method:
call method cl_gui_frontend_services=>execute
exporting
document = lv_filename
operation = 'OPEN'
synchronous = 'X'
exceptions
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
others = 8.
‎2009 Apr 01 1:35 PM
Hi Shakir,
Use Function Module CONVERT_ABAPSPOOLJOB_2_PDF.
Pass the Spool Number and the Table parameter will return the PDF format.