Application Development 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: 

Function module for the output in pdf format.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Harry,

Check out this CONVERT_OTF_2_PDF.

Ashven

7 REPLIES 7

Former Member
0 Kudos

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

0 Kudos

thanx,

i was playing with se37 i found convert_ots

0 Kudos

thanx it works

Former Member
0 Kudos

Hi Harry,

Check out this CONVERT_OTF_2_PDF.

Ashven

0 Kudos

thanx,

i was playing with se37 i found convert_ots

ferry_lianto
Active Contributor
0 Kudos

Hi Harry,

Welcome to SDN.

Please check the FMs used in program RSTXPDFT4.

Regards,

Ferry Lianto

Former Member
0 Kudos

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