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.