cancel
Showing results for 
Search instead for 
Did you mean: 

script o/p to pdf format

Former Member
0 Kudos

How to modify a print program that is used to convert the script o/p in to PDF FORMAT .. give me procedure to develop & help me sdn..

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

Check the sample programs

RSTXPDFT4 and RSTXPDFT5

Regards,

Ravi Kanth Talagana

Answers (2)

Answers (2)

Former Member
0 Kudos

you can use :

CONVERT_ABAPSPOOLJOB_2_PDF

or

CONVERT_OTFSPOOLJOB_2_PDF

or

RSTXPDFT4 standard program for the same.

Former Member
0 Kudos
Re: script o/p to pdf format

Hi

RSTXPDFT4 is using for download pdf from spool request but i like get the pdf form script output display.

Kindly help me to do.

Advance Thanks.

Former Member
0 Kudos

call function 'CONVERT_OTF'

EXPORTING

format = 'PDF'

max_linewidth = 132

IMPORTING

bin_filesize = v_len_in

TABLES

otf = i_otf

lines = i_tline

EXCEPTIONS

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 3

others = 4.

Fehlerhandling

if sy-subrc 0.

endif.

perform download_pdf.

form download_pdf.

daTA : p_file LIKE rlgrap-filename VALUE 'C:\test.pdf'.

data : file type string.

file = p_file.

data : wf_len_in1 type i.

wf_len_in1 = v_len_in.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE = wf_len_in1

FILENAME = file

FILETYPE = 'BIN'

TABLES

DATA_TAB = i_tline.[/code]

<REMOVED BY MODERATOR>

Dara.

Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:02 PM