LOAD_DATA SAP Method Loads the data from the ABAP program through DP









Below is documentation, parameters and attributes of ABAP Method LOAD_DATA 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_DATA can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method LOAD_DATA

.

NameTypeData TypeDescriptionDefault Value
CHARSETImportingTYPE
SYCHAR60
Encoding for MIME Object
ENCODINGImportingTYPE
SYCHAR60
Encoding for MIME Object
I_TIDYTImportingTYPE
BOOLEAN
For special calls only
LANGUAGEImportingTYPE
LANG
NEEDFILTERINGImportingTYPE
I
Set to 1 if content needs to be filtered else it will be 0
SIZEImportingTYPE
I
Length of Data
SUBTYPEImportingTYPE
C
Subtype of a MIME Object
TYPEImportingTYPE
C
Type of a MIME Object
URLImportingTYPE
C
URL
NEEDFILTERINGImportingTYPE
I
If it is 1 or 2, content is filtered, else no filter
ASSIGNED_URLExportingTYPE
C
URL
DATA_TABLEChangingTYPE
STANDARD TABLE
data table
ISCONTENTCHANGEDChangingTYPE
BOOLEAN
Sets to 1 if the content is filtered else it is 0



Exceptions of Method LOAD_DATA

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_CHARSET TYPE SYCHAR60,
lv_DATA_TABLE TYPE STANDARD TABLE,
lv_ENCODING TYPE SYCHAR60,
lv_ISCONTENTCHANGED TYPE BOOLEAN,
lv_I_TIDYT TYPE BOOLEAN,
lv_LANGUAGE TYPE LANG,
lv_NEEDFILTERING TYPE I,
lv_SIZE TYPE I,
lv_SUBTYPE TYPE C,
lv_TYPE TYPE C,
lv_URL TYPE C,
lv_NEEDFILTERING TYPE I,
lv_other TYPE c.

CALL METHOD lo_class=>LOAD_DATA(
EXPORTING
CHARSET = lv_CHARSET
ENCODING = lv_ENCODING
I_TIDYT = lv_I_TIDYT
LANGUAGE = lv_LANGUAGE
NEEDFILTERING = lv_NEEDFILTERING
SIZE = lv_SIZE
SUBTYPE = lv_SUBTYPE
TYPE = lv_TYPE
URL = lv_URL
NEEDFILTERING = lv_NEEDFILTERING
IMPORTING
ASSIGNED_URL = lv_ASSIGNED_URL
CHANGING
DATA_TABLE = lv_DATA_TABLE
ISCONTENTCHANGED = lv_ISCONTENTCHANGED ).

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!