SAP Function Modules

SE_CONVERT_ITF_TO_HTML SAP Function module







SE_CONVERT_ITF_TO_HTML is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SE_CONVERT_ITF_TO_HTML into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SEF1
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SE_CONVERT_ITF_TO_HTML - SE CONVERT ITF TO HTML





CALL FUNCTION 'SE_CONVERT_ITF_TO_HTML' "
* EXPORTING
*   i_codepage =                " cpcodepage    Target character set
*   is_header =                 " thead
*   i_page = SPACE              " itcth-tdpage  Page specification for page window format
*   i_window = SPACE            " itcth-tdwindow  Window specification for page window format
*   i_syntax_check = SPACE      " iwparams-flag  Activating the ITF syntax check
*   i_replace = 'X'             " iwparams-flag  Expanding symbols and includes
*   i_print_commands = SPACE    " iwparams-flag  Outputting commands and text elements
*   i_html_header = 'X'         " iwparams-flag  Output of the HTML header tag
*   i_funcname = SPACE          " tfdir-funcname  Exit module for link interpretation
*   i_title = SPACE             " c             Title in HTML header
*   i_background = SPACE        " c             File name for HTML image as background
*   i_bgcolor = SPACE           " c             Background color of text
*   i_header_css_tdname = SPACE  " thead-tdname
*   i_escape_spaces = 'X'       " c
  TABLES
*   it_itf_text =               " tline         Text lines in ITF (input)
    it_html_text =              " htmlline
*   it_conv_charformats =       " tline         Table for character formats
*   it_conv_parformats =        " tline         Table for paragraph formats
  EXCEPTIONS
    SYNTAX_CHECK = 1            "
    REPLACE = 2                 "               Errors expanding includes and symbols
    ILLEGAL_HEADER = 3          "
    DOCUMENT_NOT_FOUND = 4      "
    .  "  SE_CONVERT_ITF_TO_HTML

ABAP code example for Function Module SE_CONVERT_ITF_TO_HTML





The ABAP code below is a full code listing to execute function module SE_CONVERT_ITF_TO_HTML including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_it_itf_text  TYPE STANDARD TABLE OF TLINE,"TABLES PARAM
wa_it_itf_text  LIKE LINE OF it_it_itf_text ,
it_it_html_text  TYPE STANDARD TABLE OF HTMLLINE,"TABLES PARAM
wa_it_html_text  LIKE LINE OF it_it_html_text ,
it_it_conv_charformats  TYPE STANDARD TABLE OF TLINE,"TABLES PARAM
wa_it_conv_charformats  LIKE LINE OF it_it_conv_charformats ,
it_it_conv_parformats  TYPE STANDARD TABLE OF TLINE,"TABLES PARAM
wa_it_conv_parformats  LIKE LINE OF it_it_conv_parformats .

DATA(ld_i_codepage) = 'Check type of data required'.
DATA(ld_is_header) = 'Check type of data required'.

DATA(ld_i_page) = some text here

DATA(ld_i_window) = some text here

DATA(ld_i_syntax_check) = some text here

DATA(ld_i_replace) = some text here

DATA(ld_i_print_commands) = some text here

DATA(ld_i_html_header) = some text here

SELECT single FUNCNAME
FROM TFDIR
INTO @DATA(ld_i_funcname).

DATA(ld_i_title) = 'Check type of data required'.
DATA(ld_i_background) = 'Check type of data required'.
DATA(ld_i_bgcolor) = 'Check type of data required'.

DATA(ld_i_header_css_tdname) = some text here
DATA(ld_i_escape_spaces) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_itf_text to it_it_itf_text.

"populate fields of struture and append to itab
append wa_it_html_text to it_it_html_text.

"populate fields of struture and append to itab
append wa_it_conv_charformats to it_it_conv_charformats.

"populate fields of struture and append to itab
append wa_it_conv_parformats to it_it_conv_parformats. . CALL FUNCTION 'SE_CONVERT_ITF_TO_HTML' * EXPORTING * i_codepage = ld_i_codepage * is_header = ld_is_header * i_page = ld_i_page * i_window = ld_i_window * i_syntax_check = ld_i_syntax_check * i_replace = ld_i_replace * i_print_commands = ld_i_print_commands * i_html_header = ld_i_html_header * i_funcname = ld_i_funcname * i_title = ld_i_title * i_background = ld_i_background * i_bgcolor = ld_i_bgcolor * i_header_css_tdname = ld_i_header_css_tdname * i_escape_spaces = ld_i_escape_spaces TABLES * it_itf_text = it_it_itf_text it_html_text = it_it_html_text * it_conv_charformats = it_it_conv_charformats * it_conv_parformats = it_it_conv_parformats EXCEPTIONS SYNTAX_CHECK = 1 REPLACE = 2 ILLEGAL_HEADER = 3 DOCUMENT_NOT_FOUND = 4 . " SE_CONVERT_ITF_TO_HTML
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_codepage  TYPE CPCODEPAGE ,
it_it_itf_text  TYPE STANDARD TABLE OF TLINE ,
wa_it_itf_text  LIKE LINE OF it_it_itf_text,
ld_is_header  TYPE THEAD ,
it_it_html_text  TYPE STANDARD TABLE OF HTMLLINE ,
wa_it_html_text  LIKE LINE OF it_it_html_text,
ld_i_page  TYPE ITCTH-TDPAGE ,
it_it_conv_charformats  TYPE STANDARD TABLE OF TLINE ,
wa_it_conv_charformats  LIKE LINE OF it_it_conv_charformats,
ld_i_window  TYPE ITCTH-TDWINDOW ,
it_it_conv_parformats  TYPE STANDARD TABLE OF TLINE ,
wa_it_conv_parformats  LIKE LINE OF it_it_conv_parformats,
ld_i_syntax_check  TYPE IWPARAMS-FLAG ,
ld_i_replace  TYPE IWPARAMS-FLAG ,
ld_i_print_commands  TYPE IWPARAMS-FLAG ,
ld_i_html_header  TYPE IWPARAMS-FLAG ,
ld_i_funcname  TYPE TFDIR-FUNCNAME ,
ld_i_title  TYPE C ,
ld_i_background  TYPE C ,
ld_i_bgcolor  TYPE C ,
ld_i_header_css_tdname  TYPE THEAD-TDNAME ,
ld_i_escape_spaces  TYPE C .

ld_i_codepage = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_itf_text to it_it_itf_text.
ld_is_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_html_text to it_it_html_text.

ld_i_page = some text here

"populate fields of struture and append to itab
append wa_it_conv_charformats to it_it_conv_charformats.

ld_i_window = some text here

"populate fields of struture and append to itab
append wa_it_conv_parformats to it_it_conv_parformats.

ld_i_syntax_check = some text here

ld_i_replace = some text here

ld_i_print_commands = some text here

ld_i_html_header = some text here

SELECT single FUNCNAME
FROM TFDIR
INTO ld_i_funcname.

ld_i_title = 'Check type of data required'.
ld_i_background = 'Check type of data required'.
ld_i_bgcolor = 'Check type of data required'.

ld_i_header_css_tdname = some text here
ld_i_escape_spaces = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SE_CONVERT_ITF_TO_HTML or its description.