SAP SE_CONVERT_ITF_TO_HTML Function Module for









SE_CONVERT_ITF_TO_HTML is a standard se convert itf to html SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for se convert itf to html FM, simply by entering the name SE_CONVERT_ITF_TO_HTML into the relevant SAP transaction such as SE37 or SE38.

Function Group: SEF1
Program Name: SAPLSEF1
Main Program: SAPLSEF1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SE_CONVERT_ITF_TO_HTML pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SE_CONVERT_ITF_TO_HTML'"
EXPORTING
* I_CODEPAGE = "Target character set
* I_TITLE = ' ' "Title in HTML header
* I_BACKGROUND = ' ' "File name for HTML image as background
* I_BGCOLOR = ' ' "Background color of text
* I_HEADER_CSS_TDNAME = ' ' "
* I_ESCAPE_' 'S = 'X' "
* IS_HEADER = "
* I_PAGE = ' ' "Page specification for page window format
* I_WINDOW = ' ' "Window specification for page window format
* I_SYNTAX_CHECK = ' ' "Activating the ITF syntax check
* I_REPLACE = 'X' "Expanding symbols and includes
* I_PRINT_COMMANDS = ' ' "Outputting commands and text elements
* I_HTML_HEADER = 'X' "Output of the HTML header tag
* I_FUNCNAME = ' ' "Exit module for link interpretation

TABLES
* IT_ITF_TEXT = "Text lines in ITF (input)
IT_HTML_TEXT = "
* IT_CONV_CHARFORMATS = "Table for character formats
* IT_CONV_PARFORMATS = "Table for paragraph formats

EXCEPTIONS
SYNTAX_CHECK = 1 REPLACE = 2 ILLEGAL_HEADER = 3 DOCUMENT_NOT_FOUND = 4
.



IMPORTING Parameters details for SE_CONVERT_ITF_TO_HTML

I_CODEPAGE - Target character set

Data type: CPCODEPAGE
Optional: Yes
Call by Reference: Yes

I_TITLE - Title in HTML header

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_BACKGROUND - File name for HTML image as background

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_BGCOLOR - Background color of text

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_HEADER_CSS_TDNAME -

Data type: THEAD-TDNAME
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_ESCAPE_SPACES -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

IS_HEADER -

Data type: THEAD
Optional: Yes
Call by Reference: Yes

I_PAGE - Page specification for page window format

Data type: ITCTH-TDPAGE
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_WINDOW - Window specification for page window format

Data type: ITCTH-TDWINDOW
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_SYNTAX_CHECK - Activating the ITF syntax check

Data type: IWPARAMS-FLAG
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_REPLACE - Expanding symbols and includes

Data type: IWPARAMS-FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_PRINT_COMMANDS - Outputting commands and text elements

Data type: IWPARAMS-FLAG
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_HTML_HEADER - Output of the HTML header tag

Data type: IWPARAMS-FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_FUNCNAME - Exit module for link interpretation

Data type: TFDIR-FUNCNAME
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for SE_CONVERT_ITF_TO_HTML

IT_ITF_TEXT - Text lines in ITF (input)

Data type: TLINE
Optional: Yes
Call by Reference: Yes

IT_HTML_TEXT -

Data type: HTMLLINE
Optional: No
Call by Reference: Yes

IT_CONV_CHARFORMATS - Table for character formats

Data type: TLINE
Optional: Yes
Call by Reference: Yes

IT_CONV_PARFORMATS - Table for paragraph formats

Data type: TLINE
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

SYNTAX_CHECK -

Data type:
Optional: No
Call by Reference: Yes

REPLACE - Errors expanding includes and symbols

Data type:
Optional: No
Call by Reference: Yes

ILLEGAL_HEADER -

Data type:
Optional: No
Call by Reference: Yes

DOCUMENT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SE_CONVERT_ITF_TO_HTML Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_codepage  TYPE CPCODEPAGE, "   
lt_it_itf_text  TYPE STANDARD TABLE OF TLINE, "   
lv_syntax_check  TYPE TLINE, "   
lv_i_title  TYPE C, "   SPACE
lv_i_background  TYPE C, "   SPACE
lv_i_bgcolor  TYPE C, "   SPACE
lv_i_header_css_tdname  TYPE THEAD-TDNAME, "   SPACE
lv_i_escape_spaces  TYPE C, "   'X'
lv_replace  TYPE C, "   
lv_is_header  TYPE THEAD, "   
lt_it_html_text  TYPE STANDARD TABLE OF HTMLLINE, "   
lv_i_page  TYPE ITCTH-TDPAGE, "   SPACE
lv_illegal_header  TYPE ITCTH, "   
lt_it_conv_charformats  TYPE STANDARD TABLE OF TLINE, "   
lv_i_window  TYPE ITCTH-TDWINDOW, "   SPACE
lv_document_not_found  TYPE ITCTH, "   
lt_it_conv_parformats  TYPE STANDARD TABLE OF TLINE, "   
lv_i_syntax_check  TYPE IWPARAMS-FLAG, "   SPACE
lv_i_replace  TYPE IWPARAMS-FLAG, "   'X'
lv_i_print_commands  TYPE IWPARAMS-FLAG, "   SPACE
lv_i_html_header  TYPE IWPARAMS-FLAG, "   'X'
lv_i_funcname  TYPE TFDIR-FUNCNAME. "   SPACE

  CALL FUNCTION 'SE_CONVERT_ITF_TO_HTML'  "
    EXPORTING
         I_CODEPAGE = lv_i_codepage
         I_TITLE = lv_i_title
         I_BACKGROUND = lv_i_background
         I_BGCOLOR = lv_i_bgcolor
         I_HEADER_CSS_TDNAME = lv_i_header_css_tdname
         I_ESCAPE_SPACES = lv_i_escape_spaces
         IS_HEADER = lv_is_header
         I_PAGE = lv_i_page
         I_WINDOW = lv_i_window
         I_SYNTAX_CHECK = lv_i_syntax_check
         I_REPLACE = lv_i_replace
         I_PRINT_COMMANDS = lv_i_print_commands
         I_HTML_HEADER = lv_i_html_header
         I_FUNCNAME = lv_i_funcname
    TABLES
         IT_ITF_TEXT = lt_it_itf_text
         IT_HTML_TEXT = lt_it_html_text
         IT_CONV_CHARFORMATS = lt_it_conv_charformats
         IT_CONV_PARFORMATS = lt_it_conv_parformats
    EXCEPTIONS
        SYNTAX_CHECK = 1
        REPLACE = 2
        ILLEGAL_HEADER = 3
        DOCUMENT_NOT_FOUND = 4
. " SE_CONVERT_ITF_TO_HTML




ABAP code using 7.40 inline data declarations to call FM SE_CONVERT_ITF_TO_HTML

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
DATA(ld_i_title) = ' '.
 
DATA(ld_i_background) = ' '.
 
DATA(ld_i_bgcolor) = ' '.
 
"SELECT single TDNAME FROM THEAD INTO @DATA(ld_i_header_css_tdname).
DATA(ld_i_header_css_tdname) = ' '.
 
DATA(ld_i_escape_spaces) = 'X'.
 
 
 
 
"SELECT single TDPAGE FROM ITCTH INTO @DATA(ld_i_page).
DATA(ld_i_page) = ' '.
 
 
 
"SELECT single TDWINDOW FROM ITCTH INTO @DATA(ld_i_window).
DATA(ld_i_window) = ' '.
 
 
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_i_syntax_check).
DATA(ld_i_syntax_check) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_i_replace).
DATA(ld_i_replace) = 'X'.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_i_print_commands).
DATA(ld_i_print_commands) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_i_html_header).
DATA(ld_i_html_header) = 'X'.
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_i_funcname).
DATA(ld_i_funcname) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!