Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function module for the output in pdf format.

Former Member
0 Likes
2,338

hi guys,

this is harry.

i am looking for a function module which can display the output in pdf format.

thanx all.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,342

Hi Harry,

Check out this CONVERT_OTF_2_PDF.

Ashven

7 REPLIES 7
Read only

Former Member
0 Likes
1,342

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

Read only

0 Likes
1,342

thanx,

i was playing with se37 i found convert_ots

Read only

0 Likes
1,342

thanx it works

Read only

Former Member
0 Likes
1,343

Hi Harry,

Check out this CONVERT_OTF_2_PDF.

Ashven

Read only

0 Likes
1,342

thanx,

i was playing with se37 i found convert_ots

Read only

ferry_lianto
Active Contributor
0 Likes
1,342

Hi Harry,

Welcome to SDN.

Please check the FMs used in program RSTXPDFT4.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,342

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