cancel
Showing results for 
Search instead for 
Did you mean: 

scripts

Former Member
0 Kudos

let me know the step by step procedure HOW TO MODIFY THE PRINT PROGRAM THAT IS USED TO CONVERT THE SCRIPT O/P IN TO PDF. help meout regarding these

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos


Use the FM 'CONVERT_OTFSPOOLJOB_2_PDF' to get the PDF data from Spool by passing the spool number if its a script or smartform related output.Or if its a list by ABAP program then use 'CONVERT_ABAPSPOOLJOB_2_PDF'. It will work.

CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = v_spoolid

* NO_DIALOG = 'X'
* DST_DEVICE =

pdf_destination = 'C:\File.pdf'
IMPORTING
pdf_bytecount = numbytes
pdf_spoolid = pdfspoolid

* OTF_PAGECOUNT =

btc_jobname = jobname
btc_jobcount = jobcount
TABLES
pdf = pdfdata[]
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 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.
*refresh pdfdata[].
*pdfdata-tdformat = 'hello pawan'.
*append pdfdata.