cancel
Showing results for 
Search instead for 
Did you mean: 

spool to PDF file

Former Member
0 Kudos

I have sevaral spools and I need to transform them to one PDF. is it possible to put all the spool and to create only one ''big spool'' and then transform it to pdf (or to have several pdf files and concatenate them to one pdf file).

Benjamin

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can convert the SPOOL to PDF using the beelow function module

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = gd_spool_nr

no_dialog = c_no

dst_device = c_device

IMPORTING

pdf_bytecount = gd_bytecount

TABLES

pdf = it_pdf_output

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.

So,lets say you want 3 spools in a single PDF,

DO 3 TIMES.

Call the function module and create an internal table, in another internal table append the data. do like this in 3 times.

ENDDO.

After the END DO , you will get all the data in a Single PDF.

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

Regards

Sudheer

former_member181962
Active Contributor
0 Kudos