SAP CL_GUI_ALV_TREE OO Class - ALV Tree Control
CL_GUI_ALV_TREE 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_GUI_ALV_TREE including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Inheritance
This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for CL_GUI_ALV_TREE is CL_ALV_TREE_BASEMethod list of CL_GUI_ALV_TREE 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 |
ADD_NODE | Add Node Key | Public |
CALL METHOD cl_gui_alv_tree=>ADD_NODE...more details | ||
CHANGE_ITEM | Change Item, Only Update when Changed | Public |
CALL METHOD cl_gui_alv_tree=>CHANGE_ITEM...more details | ||
CHANGE_NODE | Change Line, Update Changed Line Only | Public |
CALL METHOD cl_gui_alv_tree=>CHANGE_NODE...more details | ||
COLLAPSE_SUBTREE | Collapses all Branches of a Part of the Tree | Public |
CALL METHOD cl_gui_alv_tree=>COLLAPSE_SUBTREE...more details | ||
CONSTRUCTOR | Constructor | Public |
CALL METHOD cl_gui_alv_tree=>CONSTRUCTOR...more details | ||
DELETE_SUBTREE | Deletes Node | Public |
CALL METHOD cl_gui_alv_tree=>DELETE_SUBTREE...more details | ||
| ||
ENSURE_NODES_VISIBLE | Node on Frontend, Implicit Call of FRONTEND_UPDATE | Public |
CALL METHOD cl_gui_alv_tree=>ENSURE_NODES_VISIBLE...more details | ||
EXPAND_NODE | Expands one Node | Public |
CALL METHOD cl_gui_alv_tree=>EXPAND_NODE...more details | ||
EXPAND_NODES | Expands Several Nodes | Public |
CALL METHOD cl_gui_alv_tree=>EXPAND_NODES...more details | ||
GET_CHECKED_ITEMS | Returns Items in Which Checkbox is Selected | Public |
CALL METHOD cl_gui_alv_tree=>GET_CHECKED_ITEMS...more details | ||
GET_CHILDREN | Returns Children of Tree Model | Public |
CALL METHOD cl_gui_alv_tree=>GET_CHILDREN...more details | ||
GET_EXPANDED_NODES | Returns Selected Nodes | Public |
CALL METHOD cl_gui_alv_tree=>GET_EXPANDED_NODES...more details | ||
GET_FIRST_CHILD | Returns the First Child Node | Public |
CALL METHOD cl_gui_alv_tree=>GET_FIRST_CHILD...more details | ||
GET_LAST_CHILD | Returns the Last Child Node | Public |
CALL METHOD cl_gui_alv_tree=>GET_LAST_CHILD...more details | ||
GET_NEXT_SIBLING | Returns the Next Node | Public |
CALL METHOD cl_gui_alv_tree=>GET_NEXT_SIBLING...more details | ||
GET_OUTTAB_LINE | Get Data From Model | Public |
CALL METHOD cl_gui_alv_tree=>GET_OUTTAB_LINE...more details | ||
GET_PARENT | Returns Parent of one Node in Tree Model | Public |
CALL METHOD cl_gui_alv_tree=>GET_PARENT...more details | ||
GET_PREV_SIBLING | Returns the Preceding Node | Public |
CALL METHOD cl_gui_alv_tree=>GET_PREV_SIBLING...more details | ||
GET_SELECTED_ITEM | Returns Item Selected | Public |
CALL METHOD cl_gui_alv_tree=>GET_SELECTED_ITEM...more details | ||
GET_SELECTED_NODES | Returns Selected Nodes | Public |
CALL METHOD cl_gui_alv_tree=>GET_SELECTED_NODES...more details | ||
GET_SUBTREE | Returns all Nodes of Subtree of Node | Public |
CALL METHOD cl_gui_alv_tree=>GET_SUBTREE...more details | ||
GET_TOP_NODE | Returns the Key of the Node at Top of Control | Public |
CALL METHOD cl_gui_alv_tree=>GET_TOP_NODE...more details | ||
HANDLE_BUTTON_CLICK | Pushbutton Clicked | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_BUTTON_CLICK...more details | ||
HANDLE_CHECKBOX_CHANGE | handle_CHECKBOX_CHANGE | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_CHECKBOX_CHANGE...more details | ||
HANDLE_EXPAND_NC | handle_EXPAND_NC | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_EXPAND_NC...more details | ||
HANDLE_HEADER_CLICK | handle_HEADER_CLICK | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_HEADER_CLICK...more details | ||
HANDLE_ITEM_CONTEXT_MENU_RQ | handle_ITEM_CONTEXT_MENU_REQUEST | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ITEM_CONTEXT_MENU_RQ...more details | ||
HANDLE_ITEM_CONTEXT_MENU_SEL | handle_ITEM_CONTEXT_MENU_SELECT | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ITEM_CONTEXT_MENU_SEL...more details | ||
HANDLE_ITEM_DOUBLE_CLICK | handle_ITEM_DOUBLE_CLICK | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ITEM_DOUBLE_CLICK...more details | ||
HANDLE_ITEM_KEYPRESS | HANDLE_ITEM_KEYPRESS | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ITEM_KEYPRESS...more details | ||
HANDLE_LINK_CLICK | handle_LINK_CLICK | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_LINK_CLICK...more details | ||
HANDLE_NODE_CONTEXT_MENU_RQ | handle_node_context_menu_rq | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_NODE_CONTEXT_MENU_RQ...more details | ||
HANDLE_NODE_CONTEXT_MENU_SEL | Handle NODE_CONTEXT_MENU_SELECT | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_NODE_CONTEXT_MENU_SEL...more details | ||
HANDLE_NODE_DOUBLE_CLICK | handle_NODE_DOUBLE_CLICK | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_NODE_DOUBLE_CLICK...more details | ||
HANDLE_NODE_KEYPRESS | HANDLE_ITEM_KEYPRESS | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_NODE_KEYPRESS...more details | ||
HANDLE_ON_DRAG | Handle on_drag | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ON_DRAG...more details | ||
HANDLE_ON_DRAG_MULTIPLE | Handle on_drag | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ON_DRAG_MULTIPLE...more details | ||
HANDLE_ON_DROP | Handle on_drop-event | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ON_DROP...more details | ||
HANDLE_ON_DROP_COMPLETE | Handle ON_DROP_COMPLETE | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ON_DROP_COMPLETE...more details | ||
HANDLE_ON_DROP_COMPLETE_MULT | Handle ON_DROP_COMPLETE | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ON_DROP_COMPLETE_MULT...more details | ||
HANDLE_ON_DROP_EXTERNAL_FILES | Handle on_drop_external_files | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ON_DROP_EXTERNAL_FILES...more details | ||
HANDLE_ON_DROP_GET_FLAVOR | Handle ON_DROP_GET_FLAVOR | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_ON_DROP_GET_FLAVOR...more details | ||
HANDLE_SELECTION_CHANGED | Handle_SELECTION_CHANGED | Private |
CALL METHOD cl_gui_alv_tree=>HANDLE_SELECTION_CHANGED...more details | ||
MOVE_NODE | Move a Node Within Tree | Public |
CALL METHOD cl_gui_alv_tree=>MOVE_NODE...more details | ||
REFRESH_TABLE_DISPLAY | Redraw Tree | Private |
CALL METHOD cl_gui_alv_tree=>REFRESH_TABLE_DISPLAY...more details | ||
REMOVE_ALL_KEY_STROKES | For internal use only | Protected |
CALL METHOD cl_gui_alv_tree=>REMOVE_ALL_KEY_STROKES...more details | ||
SEARCH_IN_EXTERNAL_FORMAT | Searches for String | Public |
CALL METHOD cl_gui_alv_tree=>SEARCH_IN_EXTERNAL_FORMAT...more details | ||
SEARCH_IN_INTERNAL_FORMAT | Searches for Data in a Column | Public |
CALL METHOD cl_gui_alv_tree=>SEARCH_IN_INTERNAL_FORMAT...more details | ||
SET_FUNCTION_CODE | Sets Function Code | Public |
CALL METHOD cl_gui_alv_tree=>SET_FUNCTION_CODE...more details | ||
SET_HANDLERS | Sets Event Handlers for Column Tree Control | Private |
CALL METHOD cl_gui_alv_tree=>SET_HANDLERS...more details | ||
SET_HIERARCHY_HEADER | Sets Hierarchy Header | Public |
CALL METHOD cl_gui_alv_tree=>SET_HIERARCHY_HEADER...more details | ||
SET_SELECTED_ITEM | Sets Selected Item | Public |
CALL METHOD cl_gui_alv_tree=>SET_SELECTED_ITEM...more details | ||
SET_SELECTED_NODES | Sets Selected Nodes | Public |
CALL METHOD cl_gui_alv_tree=>SET_SELECTED_NODES...more details | ||
SET_TABLE_FOR_FIRST_DISPLAY | Sets Table for First Display | Public |
CALL METHOD cl_gui_alv_tree=>SET_TABLE_FOR_FIRST_DISPLAY...more details | ||
SET_TOP_NODE | Sets Top Node, Implicit Frontend Update! | Public |
CALL METHOD cl_gui_alv_tree=>SET_TOP_NODE...more details | ||
UNSELECT_NODES | Deselect Nodes | Public |
CALL METHOD cl_gui_alv_tree=>UNSELECT_NODES...more details |
CL_GUI_ALV_TREE 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_DEFAULT_HIER_WIDTH | Constant | Default | 6 | LIKE I | Protected |
MT_EXCEPT_QINFO | Instance Attribute | Table for Exception Quickinfo | LIKE LVC_T_QINF | Protected | |
M_FCAT_COMPLETE | Instance Attribute | Field Catalog is Complete | LIKE SAP_BOOL | Private |
Events of Class CL_GUI_ALV_TREE
Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING... BUTTON_CLICK - Button ClickCHECKBOX_CHANGE - CheckboxChange
EXPAND_NC - Expand on No Children (Expander)
HEADER_CLICK - Header Click
HEADER_CONTEXT_MENU - User Command in Header Context Menu (not yet Implemented)
ITEM_CONTEXT_MENU_REQUEST - Application May Change Context Menu
ITEM_CONTEXT_MENU_SELECTED - User Command in Item Context Menu
ITEM_DOUBLE_CLICK - ItemDoubleClick
ITEM_KEYPRESS - Key Pressed, Node Was Selected
LINK_CLICK - LinkClick
NODE_CONTEXT_MENU_REQUEST - Application May Change Context Menu
NODE_CONTEXT_MENU_SELECTED - User Command in Node Context Menu
NODE_DOUBLE_CLICK - NodeDoubleClick
NODE_KEYPRESS - Key Pressed, Node Was Selected
ON_DRAG - Event for Filling Drag and Drop Data Object
ON_DRAG_MULTIPLE - Event for Filling Drag and Drop Data Object
ON_DROP - One Object Dropped
ON_DROP_COMPLETE - Drop Event Processed Successfully
ON_DROP_COMPLETE_MULTIPLE - Drop Event Processed Successfully
ON_DROP_EXTERNAL_FILES - Result for Filling the Drag Drop of External Files
ON_DROP_GET_FLAVOR - There is More Than One Possible Flavor For a Drop
SELECTION_CHANGED - Selection Changed
Links to Related Class(s)
CL_GUI_A...Full list of available SAP object classes
Search for further information about these or an SAP related objects