Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Spool

abdulazeez12
Active Contributor
0 Likes
439

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
400

Hi Shakir,

Use Function Module CONVERT_ABAPSPOOLJOB_2_PDF.

Pass the Spool Number and the Table parameter will return the PDF format.

2 REPLIES 2
Read only

D037255
Product and Topic Expert
Product and Topic Expert
0 Likes
400

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.

Read only

Former Member
0 Likes
401

Hi Shakir,

Use Function Module CONVERT_ABAPSPOOLJOB_2_PDF.

Pass the Spool Number and the Table parameter will return the PDF format.