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
.| Name | Type | Data Type | Description | Default Value |
| CHARSET | Importing | TYPE SYCHAR60 | Encoding for MIME Object | |
| ENCODING | Importing | TYPE SYCHAR60 | Encoding for MIME Object | |
| I_TIDYT | Importing | TYPE BOOLEAN | For special calls only | |
| LANGUAGE | Importing | TYPE LANG | ||
| NEEDFILTERING | Importing | TYPE I | Set to 1 if content needs to be filtered else it will be 0 | |
| SIZE | Importing | TYPE I | Length of Data | |
| SUBTYPE | Importing | TYPE C | Subtype of a MIME Object | |
| TYPE | Importing | TYPE C | Type of a MIME Object | |
| URL | Importing | TYPE C | URL | |
| NEEDFILTERING | Importing | TYPE I | If it is 1 or 2, content is filtered, else no filter | |
| ASSIGNED_URL | Exporting | TYPE C | URL | |
| DATA_TABLE | Changing | TYPE STANDARD TABLE | data table | |
| ISCONTENTCHANGED | Changing | TYPE BOOLEAN | Sets to 1 if the content is filtered else it is 0 |
Exceptions of Method LOAD_DATA
C
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