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

.

NameTypeData TypeDescriptionDefault Value
AS_COMPRESSED_DATAImportingTYPE
C
flag for the data compress
DOCUMENT_IDImportingTYPE
C
Document ID
DOCUMENT_TEXTPOOLImportingTYPE
SYREPID
texpool
DOCUMENT_URLImportingTYPE
C
URL
I_TIDYTImportingTYPE
BOOLEAN
For special calls only
LANGUAGEImportingTYPE
LANG
NEEDFILTERINGImportingTYPE
I
Set to 1 for filtering the document else set to 0
ASSIGNED_URLExportingTYPE
C
URL
ISCONTENTCHANGEDChangingTYPE
BOOLEAN
Set to 1 if the content is changed else it is set to 0
MERGE_TABLEChangingTYPE
SWWW_T_MERGE_TABLE
merge table



Exceptions of Method LOAD_HTML_DOCUMENT

ASSIGNED_URLExportingTYPE
CURLHTML_SYNTAX_NOTCORRECT - HTML data is invalid and check all the tags' syntax

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



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!