Friday, November 23, 2007

sap abap program for Convert SAP Spool List to HTML

* Convert Spool List to HTML
*
* File save should have the extension .htm or .html
*
* Use a browser to open the file.

REPORT ZHTMLLIST LINE-SIZE 90 NO STANDARD PAGE HEADING.

TABLES: W3HTML.

DATA BEGIN OF INT_HTML OCCURS 0.
INCLUDE STRUCTURE W3HTML.
DATA END OF INT_HTML.

SY-TITLE = 'Convert Spool List to HTML'.

WRITE:/ 'Happiness lies in the joy of achievement and the thrill of'.
WRITE:/ 'creative effort.'.

NEW-PAGE.
WRITE:/ 'It is not enough to have great qualities, we should also'.
WRITE:/ 'have the management of them'.

call function 'LIST_DOWNLOAD_HTML'
EXPORTING
LIST_INDEX = 0
EXCEPTIONS
LIST_INDEX_INVALID = 1
DOWNLOAD_ERROR = 2
OTHERS = 3.

TOP-OF-PAGE.
WRITE:/ SY-TITLE, 'Page ', SY-PAGNO.

No comments:

Blog Archive