Use
The SAPscript editor internally calls the function module CONVERT_ITF_TO_HTML. This function module is used by other applications as well, for example, when converting OSS Notes, for ABAP documentation, and for glossary and IMG texts.
The function module CONVERT_ITF_TO_HTML converts a SAPscript text to HTML to allow you to display the text using any HTML3.X browser (Netscape, MS Internet Explorer, and so on). The function module requires the text header (DDIC structure THEAD) and the text lines (DDIC structure TDLINES) as input.
After successful conversion, the function module returns a table that contains the corresponding HTML text (DDIC structure HTMLLINE). During the conversion, SAPscript control commands, standard symbols, and include texts are resolved as far as it is possible without processing the form (that is, without using the composer).
To assign SAPscript paragraph and character formats to HTML formats, use the appropriate tables with the function call.
Conversion is controlled via several parameters:
For an example of how to use CONVERT_ITF_TO_HTML, refer to the report RSTXHTML. You can use this report to convert any standard texts as well as documentation texts to HTML.
For more information, refer to thedocumentation of the function module CONVERT_ITF_TO_HTML.
Procedure