2009 Mar 09 3:46 AM
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.
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.
2009 Mar 09 3:49 AM
2009 Mar 09 3:55 AM
2009 Mar 09 3:58 AM
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
2009 Mar 09 3:59 AM
[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]
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |