01-11-2007 9:40 PM
hi guys,
this is harry.
i am looking for a function module which can display the output in pdf format.
thanx all.
01-11-2007 9:44 PM
01-11-2007 9:43 PM
Try:
report zpdf message-id 00 line-size 255 no standard page heading.
parameters: spoolid like tsp01-rqident obligatory.
data begin of pdf_table occurs 0.
include structure tline.
data end of pdf_table.
data pdf_fsize type i.
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
exporting
src_spoolid = spoolid
no_dialog = 'X'
importing
pdf_bytecount = pdf_fsize
tables
pdf = pdf_table
exceptions
others = 0.
call function 'DOWNLOAD'
exporting
bin_filesize = pdf_fsize
filetype = 'BIN'
tables
data_tab = pdf_table.
Rob
01-11-2007 9:49 PM
01-11-2007 9:54 PM
01-11-2007 9:44 PM
01-11-2007 9:50 PM
01-11-2007 9:45 PM
Hi Harry,
Welcome to SDN.
Please check the FMs used in program RSTXPDFT4.
Regards,
Ferry Lianto
01-11-2007 9:45 PM
Hi,
CALL FUNCTION "CONVERT_OTF"
EXPORTING FORMAT = "PDF"
IMPORTING BIN_FILESIZE = FILE_LEN
TABLES OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
keerthi