SAP Function Modules

WWW_ITAB_TO_HTML_HEADERS SAP Function module







WWW_ITAB_TO_HTML_HEADERS 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 WWW_ITAB_TO_HTML_HEADERS into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM WWW_ITAB_TO_HTML_HEADERS - WWW ITAB TO HTML HEADERS





CALL FUNCTION 'WWW_ITAB_TO_HTML_HEADERS' "
* EXPORTING
*   field_nr = 0                " w3fields-nr   Number of field in internal table
*   text =                      " w3head-text   Column header
*   text_length = 'S'           "               With Dictionary reference, length of key word
*   justified =                 " w3fields-just  Alignment of text (as in HTML standard)
*   icon =                      " w3fields-icon  Flag indicating whether column contents are displayed as an icon
*   symbol =                    " w3fields-symbol  Flag indicating whether column contents are displayed as a symbol
*   size =                      " w3fields-size  Size of text (as in HTML standard)
*   link =                      " w3fields-link  If link desired, specify URL here
*   fgcolor =                   " w3fields-fg_color  Text color (as in HTML, e.g. red, green ...)
*   bgcolor =                   " w3fields-bg_color  Background color of a line (as in HTML)
*   font =                      " w3fields-font  Text font (as in HTML standard)
*   table_name =                " dfies-tabname  Name of a Dictionary table for headers
  TABLES
    header =                    " w3head        Contains all headers
    .  "  WWW_ITAB_TO_HTML_HEADERS

ABAP code example for Function Module WWW_ITAB_TO_HTML_HEADERS





The ABAP code below is a full code listing to execute function module WWW_ITAB_TO_HTML_HEADERS 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_header  TYPE STANDARD TABLE OF W3HEAD,"TABLES PARAM
wa_header  LIKE LINE OF it_header .


DATA(ld_field_nr) = 123

DATA(ld_text) = some text here
DATA(ld_text_length) = 'some text here'.

DATA(ld_justified) = some text here

DATA(ld_icon) = some text here

DATA(ld_symbol) = some text here

DATA(ld_size) = some text here

DATA(ld_link) = some text here

DATA(ld_fgcolor) = some text here

DATA(ld_bgcolor) = some text here

DATA(ld_font) = some text here

DATA(ld_table_name) = some text here

"populate fields of struture and append to itab
append wa_header to it_header. . CALL FUNCTION 'WWW_ITAB_TO_HTML_HEADERS' * EXPORTING * field_nr = ld_field_nr * text = ld_text * text_length = ld_text_length * justified = ld_justified * icon = ld_icon * symbol = ld_symbol * size = ld_size * link = ld_link * fgcolor = ld_fgcolor * bgcolor = ld_bgcolor * font = ld_font * table_name = ld_table_name TABLES header = it_header . " WWW_ITAB_TO_HTML_HEADERS
IF SY-SUBRC EQ 0. "All OK 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_field_nr  TYPE W3FIELDS-NR ,
it_header  TYPE STANDARD TABLE OF W3HEAD ,
wa_header  LIKE LINE OF it_header,
ld_text  TYPE W3HEAD-TEXT ,
ld_text_length  TYPE STRING ,
ld_justified  TYPE W3FIELDS-JUST ,
ld_icon  TYPE W3FIELDS-ICON ,
ld_symbol  TYPE W3FIELDS-SYMBOL ,
ld_size  TYPE W3FIELDS-SIZE ,
ld_link  TYPE W3FIELDS-LINK ,
ld_fgcolor  TYPE W3FIELDS-FG_COLOR ,
ld_bgcolor  TYPE W3FIELDS-BG_COLOR ,
ld_font  TYPE W3FIELDS-FONT ,
ld_table_name  TYPE DFIES-TABNAME .


ld_field_nr = 123

"populate fields of struture and append to itab
append wa_header to it_header.

ld_text = some text here
ld_text_length = 'some text here'.

ld_justified = some text here

ld_icon = some text here

ld_symbol = some text here

ld_size = some text here

ld_link = some text here

ld_fgcolor = some text here

ld_bgcolor = some text here

ld_font = some text here

ld_table_name = some text here

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 WWW_ITAB_TO_HTML_HEADERS or its description.