Skip to Content
1
Former Member
May 13, 2010 at 06:57 AM

Error in converting Spool to HTML format.

70 Views

Hi Gurus,

I am reading SPool and converting that into HTML formt. Please do find below code for the same.

  • Submit report to convert the spool to HTML format

SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN

WITH rqident = p_spoolno.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = gt_listobj

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

  • Convert the spool to HTML format

CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'

EXPORTING

  • REPORT_NAME =

template_name = 'WEBREPORTING_REPORT'

TABLES

html = p_html_tab

listobject = gt_listobj.

>>>>>>>>>>>>>>>>>>>

And i send p_html_tab as attachement to email.

When I opened the attachement, i can view only half page in htm.

How can i get the full page in htm.