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: 

ABAP Report Output to PDF

Former Member
0 Kudos

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

6 REPLIES 6

Former Member

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

Check these links:

http://www.sapgenie.com/abap/example_code.htm

Regards,

Anjali

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

0 Kudos

you cannot do the following

<b>i_otf[] = itab[].</b>

please check the code before posting.

Regards

Raja