on 2007 Apr 12 3:12 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.