LOAD_HTML_DOCUMENT SAP Method Loads an HTML document from the Web Object Repository
Below is documentation, parameters and attributes of ABAP Method LOAD_HTML_DOCUMENT within SAP class CL_GUI_HTML_VIEWER. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_GUI_HTML_VIEWER into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method LOAD_HTML_DOCUMENT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method LOAD_HTML_DOCUMENT
.| Name | Type | Data Type | Description | Default Value |
| AS_COMPRESSED_DATA | Importing | TYPE C | flag for the data compress | |
| DOCUMENT_ID | Importing | TYPE C | Document ID | |
| DOCUMENT_TEXTPOOL | Importing | TYPE SYREPID | texpool | |
| DOCUMENT_URL | Importing | TYPE C | URL | |
| I_TIDYT | Importing | TYPE BOOLEAN | For special calls only | |
| LANGUAGE | Importing | TYPE LANG | ||
| NEEDFILTERING | Importing | TYPE I | Set to 1 for filtering the document else set to 0 | |
| ASSIGNED_URL | Exporting | TYPE C | URL | |
| ISCONTENTCHANGED | Changing | TYPE BOOLEAN | Set to 1 if the content is changed else it is set to 0 | |
| MERGE_TABLE | Changing | TYPE SWWW_T_MERGE_TABLE | merge table |
Exceptions of Method LOAD_HTML_DOCUMENT
C
Example ABAP coding
DATA: lo_class TYPE REF TO CL_GUI_HTML_VIEWER.
DATA: lv_ASSIGNED_URL TYPE C,
lv_AS_COMPRESSED_DATA TYPE C,
lv_DOCUMENT_ID TYPE C,
lv_DOCUMENT_TEXTPOOL TYPE SYREPID,
lv_DOCUMENT_URL TYPE C,
lv_ISCONTENTCHANGED TYPE BOOLEAN,
lv_I_TIDYT TYPE BOOLEAN,
lv_LANGUAGE TYPE LANG,
lv_MERGE_TABLE TYPE SWWW_T_MERGE_TABLE,
lv_NEEDFILTERING TYPE I,
lv_other TYPE c.
CALL METHOD lo_class=>LOAD_HTML_DOCUMENT(
EXPORTING
AS_COMPRESSED_DATA = lv_AS_COMPRESSED_DATA
DOCUMENT_ID = lv_DOCUMENT_ID
DOCUMENT_TEXTPOOL = lv_DOCUMENT_TEXTPOOL
DOCUMENT_URL = lv_DOCUMENT_URL
I_TIDYT = lv_I_TIDYT
LANGUAGE = lv_LANGUAGE
NEEDFILTERING = lv_NEEDFILTERING
IMPORTING
ASSIGNED_URL = lv_ASSIGNED_URL
CHANGING
ISCONTENTCHANGED = lv_ISCONTENTCHANGED
MERGE_TABLE = lv_MERGE_TABLE ).
Links to Related Class(s)
CL_GUI_H...Full list of available SAP object classes
Search for further information about these or an SAP related objects