2005 Aug 01 5:02 AM
Hi Everybody,
Is there any function module/way to convert the report output into PDF in online.i.e, in the online itself, without going to spool.
Regards
Elini.P
2005 Aug 01 5:14 AM
Check this link
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
2005 Aug 01 5:17 AM
Hi Judith,
Again this example is alos using the spool concept only.
Without going to spool, is there any other way to convert into PDF.
Regards
Elini.P
2005 Aug 01 5:40 AM
Hi,
Please take a look at https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1523. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] See if it helps.
Regards
2005 Aug 01 5:57 AM
2005 Aug 01 6:06 AM
Hi,
Just try the following coding.
data itab type standard table of mara.
data : i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
select * from mara into table itab.
i_otf[] = itab[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
IMPORTING
BIN_FILESIZE =
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2005 Aug 01 6:11 AM
you cannot do the following
<b>i_otf[] = itab[].</b>
please check the code before posting.
Regards
Raja