SAP CL_ABAP_TOOLS_XML_VIEWER OO Class - Map XML Document to Tree
CL_ABAP_TOOLS_XML_VIEWER is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_TOOLS_XML_VIEWER including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Method list of CL_ABAP_TOOLS_XML_VIEWER SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
| Method Name | Description | Visability |
| BUILD_TREE | Create XML tree | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>BUILD_TREE...more details | ||
| CHECK_XML | Check full XML (well-formed) | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>CHECK_XML...more details | ||
| CONSTRUCTOR | Constructor | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>CONSTRUCTOR...more details | ||
| CREATE_ATTRIBUTE | Map XML attribute | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>CREATE_ATTRIBUTE...more details | ||
| CREATE_ELEMENT | Map XML element | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>CREATE_ELEMENT...more details | ||
| CREATE_ERROR_MESSAGE | Create Error Message | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>CREATE_ERROR_MESSAGE...more details | ||
|
| ||
| CREATE_ERROR_NODE | Create error node | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>CREATE_ERROR_NODE...more details | ||
| CREATE_NSD | Map XML namespace | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>CREATE_NSD...more details | ||
| CREATE_STACK | Map stack for current depth of XML | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>CREATE_STACK...more details | ||
| CREATE_TEXT | Map XML text | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>CREATE_TEXT...more details | ||
| DESTROY | Destroy all objects in container | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>DESTROY...more details | ||
| DESTROY_SLAVE | Destroy instance of subscreen | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>DESTROY_SLAVE...more details | ||
| DESTROY_SPLIT_SCREEN | Destroy subscreen | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>DESTROY_SPLIT_SCREEN...more details | ||
| GET_ID_BY_NAME | Get ID for a name | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>GET_ID_BY_NAME...more details | ||
| GET_MAX_NODES | Query maximum number of displayed nodes | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>GET_MAX_NODES...more details | ||
| GET_NAME_BY_ID | Get name of an ID | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>GET_NAME_BY_ID...more details | ||
| HANDLE_ITEM_CONTEXT_MENU_REQ | Request handler for context menu event (wrapper) | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>HANDLE_ITEM_CONTEXT_MENU_REQ...more details | ||
| HANDLE_ITEM_CONTEXT_MENU_SEL | Handler for context menu event (wrapper) | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>HANDLE_ITEM_CONTEXT_MENU_SEL...more details | ||
| HANDLE_ITEM_DOUBLE_CLICK | Handle for text double-click event | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>HANDLE_ITEM_DOUBLE_CLICK...more details | ||
| HANDLE_NODE_CONTEXT_MENU_REQ | Request handler for context menu event | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>HANDLE_NODE_CONTEXT_MENU_REQ...more details | ||
| HANDLE_NODE_CONTEXT_MENU_SEL | Handler for context menu selection event | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>HANDLE_NODE_CONTEXT_MENU_SEL...more details | ||
| HANDLE_NODE_DOUBLE_CLICK | Handler for node double-click event | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>HANDLE_NODE_DOUBLE_CLICK...more details | ||
| HANDLE_TOOLBAR_PUSH_BUTTON | Handler for pushbutton event | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>HANDLE_TOOLBAR_PUSH_BUTTON...more details | ||
| LOAD_XML | Constructor | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>LOAD_XML...more details | ||
| PROGRESS_INDICATOR | Processing progress output | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>PROGRESS_INDICATOR...more details | ||
| SEARCH_NEXT | Continue search in displayed tree | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>SEARCH_NEXT...more details | ||
| SEARCH_START | Introduce search in displayed tree | Private |
| CALL METHOD cl_abap_tools_xml_viewer=>SEARCH_START...more details | ||
| SET_MAX_NODES | Set maximum number of displayed nodes | Public |
| CALL METHOD cl_abap_tools_xml_viewer=>SET_MAX_NODES...more details | ||
CL_ABAP_TOOLS_XML_VIEWER attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
| Name | Level | Description | Initial Value | Type | Visability |
| C_MODE_CONTINUE | Constant | Switch: Mode 'continue' | 1 | LIKE I | Private |
| C_MODE_REFRESH | Constant | Switch: Mode 'refresh' | 2 | LIKE I | Private |
| GO_COLUMN_TREE | Instance Attribute | Column Tree Control | LIKE CL_GUI_COLUMN_TREE | Private | |
| GO_CONTAINER | Instance Attribute | Container for customer controls in the dynpro area | LIKE CL_GUI_CONTAINER | Private | |
| GO_GRID_MSG | Instance Attribute | SAP List Viewer | LIKE CL_GUI_ALV_GRID | Private | |
| GO_INNER_SPLITTER | Instance Attribute | Splitter Control | LIKE CL_GUI_SPLITTER_CONTAINER | Private | |
| GO_ITERATOR | Instance Attribute | Instance of used iterator | LIKE LIF_XML_SAX_ITERATOR | Private | |
| GO_MASTER | Instance Attribute | Master Instance | LIKE CL_ABAP_TOOLS_XML_VIEWER | Private | |
| GO_OUTER_SPLITTER | Instance Attribute | Splitter Control | LIKE CL_GUI_SPLITTER_CONTAINER | Private | |
| GO_SLAVE | Instance Attribute | Slave Instance | LIKE CL_ABAP_TOOLS_XML_VIEWER | Private | |
| GO_TOOLBAR | Instance Attribute | Tool Bar Control | LIKE CL_GUI_TOOLBAR | Private | |
| G_ALL_NODES | Instance Attribute | Current number of all nodes in tree | LIKE I | Private | |
| G_FIRST_NODE | Instance Attribute | Tree Control: Node Key | LIKE TV_NODEKEY | Private | |
| G_HIT | Instance Attribute | Search found an occurrence | ABAP_FALSE | LIKE ABAP_BOOL | Private |
| G_HIT_NODE_KEY | Instance Attribute | Offset of last occurrence | LIKE TV_NODEKEY | Private | |
| G_ID_CACHE | Instance Attribute | Cache of all assigned IDs in tree | LIKE LTY_ID_CACHE | Private | |
| G_ITEM_TABLE | Instance Attribute | Tree Control: Item Table | LIKE LTY_ITEM_TABLE_TYPE | Private | |
| G_LAST_HIT | Instance Attribute | Index of last search hit | LIKE I | Private | |
| G_LAST_NODE | Instance Attribute | Tree Control: Node Key | LIKE TV_NODEKEY | Private | |
| G_MAXNODES | Instance Attribute | Maximum number of nodes | 2000 | LIKE I | Private |
| G_MSG_TABLE | Instance Attribute | Table for output of messages | LIKE LTY_MSG | Private | |
| G_NAME_CACHE | Instance Attribute | Cache of all names in tree | LIKE LTY_NAME_CACHE | Private | |
| G_NAME_HITS | Instance Attribute | Table of all hits in name search | LIKE LTY_NAME_CACHE | Private | |
| G_NEXT_NAME_ID | Instance Attribute | Next ID assigned for names | 1 | LIKE I | Private |
| G_NODE_CACHE | Instance Attribute | Cache of all nodes in tree | LIKE LTY_NODE_CACHE | Private | |
| G_NODE_TABLE | Instance Attribute | Tree Control: Node Table | LIKE TREEV_NTAB | Private | |
| G_OFFSET | Instance Attribute | Current offset of XML reader | LIKE I | Private | |
| G_PARENT | Instance Attribute | Tree Control: Node Key | LIKE TV_NODEKEY | Private | |
| G_SEARCH_FIELDS | Instance Attribute | ABAP XML Viewer fields for search dialog | LIKE ABAPTOOLSXMLVIEWER_SEARCH | Private | |
| G_SHOW_QNAMES | Instance Attribute | Switch: Display QNames | ABAP_FALSE | LIKE ABAP_BOOL | Private |
| G_SIZE | Instance Attribute | Length of XML document | LIKE I | Private | |
| G_START | Instance Attribute | First XML element in tree | 1 | LIKE I | Private |
| G_TEXT_LEN | Constant | Maximum output length in tree | 512 | LIKE I | Private |
| G_XML | Instance Attribute | XML Document | LIKE XSTRING | Private |
CL_ABAP_TOOLS_XML_VIEWER types
LTY_ID_CACHE - ID cacheLTY_NAME_CACHE - Name cache
LTY_NAME_CACHE_LINE - Line in name cache and ID cache
LTY_NODE_CACHE - Node cache
LTY_NODE_CACHE_LINE - Entry in node cache
LTY_VALUES - Table of Strings
Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects