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: 

Call report in bapi

Former Member
0 Kudos

Hi All I am calling a report in a BAPI but when I am giging print through bapi it not properly the font size is getting affected and printing very small.

My code is like follows i am taking o/p in HTML string

Data: LIST_TAB type standard table of ABAPLIST.

Data: MTAB_REPORT_HTML type standard table of W3HTML WITH HEADER LINE.

Submit ZSDRTLRPNEWRPT with SELECTION-TABLE SELTAB

exporting list to Memory and return.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = list_tab

EXCEPTIONS

not_found = 1

OTHERS = 2.

CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'

EXPORTING

TEMPLATE_NAME = 'WEBREPORTING_REPORT'

  • CHARSET = 'UTF8'

TABLES

html = MTAB_REPORT_HTML

listobject = list_tab.

FREE MEMORY.

CLEAR LIST_TAB[].

loop at MTAB_REPORT_HTML.

concatenate htmlstring

MTAB_REPORT_HTML-LINE into htmlstring.

endloop.

1 REPLY 1

Former Member
0 Kudos

Hi,

Please post this question in ABAP General .

Thanks,

Vinoth