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
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
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).
| it_header | TYPE STANDARD TABLE OF W3HEAD,"TABLES PARAM |
| wa_header | LIKE LINE OF it_header . |
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 . |
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.