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: 

Convert an internal table data into PDF without converting into spool

Former Member
0 Kudos
1,720

Hello Experts,

In my requirement, i need to convert the data present in an internal table into PDF format and email it. But i don't want to convert the internal table into spool ( because it leads to spool overflow error).

So is there any way by which the contents of the internal table can be converted into PDF without spooling???

Your replies are awaited.

Regards,

Mansi.

4 REPLIES 4

Former Member
0 Kudos
134

Hi,

Check this link..

Edited by: Avinash Kodarapu on Mar 9, 2009 9:23 AM

Former Member
0 Kudos
134

Hi,

[Convert internal table to PDF|]

Thanks!

Former Member
0 Kudos
134

hi,

You try this code,


CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132 
ARCHIVE_INDEX = ' ' 
COPYNUMBER = 0 
ASCII_BIDI_VIS2LOG = ' ' 
PDF_DELETE_OTFTAB = ' ' 
IMPORTING
BIN_FILESIZE = w_size
BIN_FILE = ' '
TABLES
otf = t_otf
lines = t_pdf
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
.
IF sy-subrc 0.

RAISE error.  
ENDIF.

Thanks

Arun

former_member156446
Active Contributor
0 Kudos
134

[Save Report Output to a PDF File>>|https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/save%252breport%252boutput%252bto%252ba%252bpdf%252bfile]