SAP CL_ITEM_TREE_CONTROL OO Class - Internal Tree Control Class
CL_ITEM_TREE_CONTROL 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_ITEM_TREE_CONTROL 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_ITEM_TREE_CONTROL is CL_TREE_CONTROL_BASEMethod list of CL_ITEM_TREE_CONTROL 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_COLUMN_EX | For internal use only | Protected |
| CALL METHOD cl_item_tree_control=>ADD_COLUMN_EX...more details | ||
| ADD_NODES_AND_ITEMS | Insert Nodes and Items | Public |
| CALL METHOD cl_item_tree_control=>ADD_NODES_AND_ITEMS...more details | ||
| ASSIGN_TABLE_BY_METHOD | Assign Table By Method Call | Protected |
| CALL METHOD cl_item_tree_control=>ASSIGN_TABLE_BY_METHOD...more details | ||
| CALL_HEADER_METHOD | Set Method of a Header | Protected |
| CALL METHOD cl_item_tree_control=>CALL_HEADER_METHOD...more details | ||
| CONSTRUCTOR | Constructor | Public |
| CALL METHOD cl_item_tree_control=>CONSTRUCTOR...more details | ||
| DELETE_ALL_ITEMS_OF_NODES | Deletes all Items In a Set of Nodes | Public |
| CALL METHOD cl_item_tree_control=>DELETE_ALL_ITEMS_OF_NODES...more details | ||
|
| ||
| DELETE_COLUMN_EX | For internal use only | Protected |
| CALL METHOD cl_item_tree_control=>DELETE_COLUMN_EX...more details | ||
| DELETE_ITEMS | Delete Items | Public |
| CALL METHOD cl_item_tree_control=>DELETE_ITEMS...more details | ||
| DELETE_TEXT_COLUMN | Delete TEXT Column | Protected |
| CALL METHOD cl_item_tree_control=>DELETE_TEXT_COLUMN...more details | ||
| GET_COLUMN_INFO | Internal use only | Public |
| CALL METHOD cl_item_tree_control=>GET_COLUMN_INFO...more details | ||
| GET_HEADER_BY_KEY | Get Header Object | Protected |
| CALL METHOD cl_item_tree_control=>GET_HEADER_BY_KEY...more details | ||
| GET_HEADER_PROPERTY | Read Property of a Header (queue_only = ' ') | Protected |
| CALL METHOD cl_item_tree_control=>GET_HEADER_PROPERTY...more details | ||
| GET_SELECTED_ITEM | Returns Node Key and Item Name of Selected Item | Public |
| CALL METHOD cl_item_tree_control=>GET_SELECTED_ITEM...more details | ||
| HANDLE_DRAG_DROP_COMPLETE | Handle ONDRAG and ONDROPCOMPLETE | Private |
| CALL METHOD cl_item_tree_control=>HANDLE_DRAG_DROP_COMPLETE...more details | ||
| HANDLE_EVENT_CHECKBOX_CHANGE | Handle Event CHECKBOX_CHANGE | Private |
| CALL METHOD cl_item_tree_control=>HANDLE_EVENT_CHECKBOX_CHANGE...more details | ||
| HANDLE_EVENT_HEADER_CLICK | Handle Event HEADER_CLICK | Private |
| CALL METHOD cl_item_tree_control=>HANDLE_EVENT_HEADER_CLICK...more details | ||
| HANDLE_EVENT_ITEM_KEYPRESS | Handle Event ITEM_KEYPRESS | Private |
| CALL METHOD cl_item_tree_control=>HANDLE_EVENT_ITEM_KEYPRESS...more details | ||
| HANDLE_EVT_HEADER_CTX_MEN_REQ | Handle Event HEADER_CONTEXT_MENU_REQUEST | Private |
| CALL METHOD cl_item_tree_control=>HANDLE_EVT_HEADER_CTX_MEN_REQ...more details | ||
| HANDLE_NODE_KEY_ITEM_NAME_EVT | Handle Events With Form EVENT(NODE_KEY, ITEM_NAME) | Private |
| CALL METHOD cl_item_tree_control=>HANDLE_NODE_KEY_ITEM_NAME_EVT...more details | ||
| HEADER_GET_WIDTH | Returns the Width of a Header | Protected |
| CALL METHOD cl_item_tree_control=>HEADER_GET_WIDTH...more details | ||
| HEADER_SET_TEXT | Sets the Title for a Header | Protected |
| CALL METHOD cl_item_tree_control=>HEADER_SET_TEXT...more details | ||
| HEADER_SET_TOOLTIP | Sets the Tool Tip For a Header | Protected |
| CALL METHOD cl_item_tree_control=>HEADER_SET_TOOLTIP...more details | ||
| HEADER_SET_T_IMAGE | Sets the Picture for a Header | Protected |
| CALL METHOD cl_item_tree_control=>HEADER_SET_T_IMAGE...more details | ||
| HEADER_SET_WIDTH | Sets the Width of a Header | Protected |
| CALL METHOD cl_item_tree_control=>HEADER_SET_WIDTH...more details | ||
| ITEM_SET_CHOSEN | Sets Checked State for a Checkbox | Public |
| CALL METHOD cl_item_tree_control=>ITEM_SET_CHOSEN...more details | ||
| ITEM_SET_DISABLED | Sets Whether an Item Can be Selected | Public |
| CALL METHOD cl_item_tree_control=>ITEM_SET_DISABLED...more details | ||
| ITEM_SET_EDITABLE | Sets Whether an Item Can be Edited | Public |
| CALL METHOD cl_item_tree_control=>ITEM_SET_EDITABLE...more details | ||
| ITEM_SET_FONT | Sets the Font of an Item | Public |
| CALL METHOD cl_item_tree_control=>ITEM_SET_FONT...more details | ||
| ITEM_SET_HIDDEN | Sets the Visibility of an Item | Public |
| CALL METHOD cl_item_tree_control=>ITEM_SET_HIDDEN...more details | ||
| ITEM_SET_STYLE | Sets the Style Property of an Item | Public |
| CALL METHOD cl_item_tree_control=>ITEM_SET_STYLE...more details | ||
| ITEM_SET_TEXT | Sets the Text for an Item | Public |
| CALL METHOD cl_item_tree_control=>ITEM_SET_TEXT...more details | ||
| ITEM_SET_T_IMAGE | Sets the Picture for an Item | Public |
| CALL METHOD cl_item_tree_control=>ITEM_SET_T_IMAGE...more details | ||
| SELECT_ITEM | Selects an Item | Public |
| CALL METHOD cl_item_tree_control=>SELECT_ITEM...more details | ||
| SETUP_HIERARCHY_HEADER | Sets Properties of the Hierarchy Header | Protected |
| CALL METHOD cl_item_tree_control=>SETUP_HIERARCHY_HEADER...more details | ||
| SET_HEADER_PROPERTIES | Sets Properties of a Header | Protected |
| CALL METHOD cl_item_tree_control=>SET_HEADER_PROPERTIES...more details | ||
| SET_HEADER_PROPERTY | Sets Property of a Header | Protected |
| CALL METHOD cl_item_tree_control=>SET_HEADER_PROPERTY...more details | ||
| SET_MIN_NODE_HEIGHT | Sets Minimum Height of Nodes in Tree | Public |
| CALL METHOD cl_item_tree_control=>SET_MIN_NODE_HEIGHT...more details | ||
| UPDATE_NODES_AND_ITEMS | Insert Nodes and Items | Public |
| CALL METHOD cl_item_tree_control=>UPDATE_NODES_AND_ITEMS...more details | ||
CL_ITEM_TREE_CONTROL 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 |
| ALIGN_CENTER | Constant | Centered | 1 | LIKE I | Public |
| ALIGN_LEFT | Constant | Left-justified | 0 | LIKE I | Public |
| ALIGN_RIGHT | Constant | Right-justified | 2 | LIKE I | Public |
| CTX_MEN_REQ_HEADER_NAME | Instance Attribute | ' | LIKE TV_HDRNAME | Private | |
| CTX_MEN_REQ_ITEM_NAME | Instance Attribute | ' | LIKE TV_ITMNAME | Private | |
| CTX_MEN_REQ_NODE_KEY | Instance Attribute | Key Node of Last Context Menu Request | LIKE TV_NODEKEY | Private | |
| CTX_MEN_REQ_OBJECT | Instance Attribute | Object From Last Context Menu Request | LIKE I | Private | |
| CTX_MEN_REQ_OBJ_HEADER | Constant | Context Menu Request on Header | 2 | LIKE I | Private |
| CTX_MEN_REQ_OBJ_ITEM | Constant | Context Menu Request on Item | 1 | LIKE I | Private |
| EVENTID_BUTTON_CLICK | Constant | Pushbutton Clicked | 29 | LIKE I | Public |
| EVENTID_CHECKBOX_CHANGE | Constant | Change State of a Checkbox | 33 | LIKE I | Public |
| EVENTID_HEADER_CLICK | Constant | Header Clicked | 28 | LIKE I | Public |
| EVENTID_HEADER_CONTEXT_MEN_REQ | Constant | Context Menu on Header | 41 | LIKE I | Public |
| EVENTID_ITEM_CONTEXT_MENU_REQ | Constant | Context Menu on Item | 26 | LIKE I | Public |
| EVENTID_ITEM_DOUBLE_CLICK | Constant | Double-Click on Item | 22 | LIKE I | Public |
| EVENTID_ITEM_KEYPRESS | Constant | Key Pressed on Selected Item | 39 | LIKE I | Public |
| EVENTID_LINK_CLICK | Constant | Link Clicked | 35 | LIKE I | Public |
| HEADER | Static Attribute | ' | LIKE CL_GUI_OBJECT | Private | |
| HEADERS | Static Attribute | ' | LIKE CL_GUI_OBJECT | Private | |
| HEADER_VARIABLE | Constant | User Can Change Header Width | 1 | LIKE I | Protected |
| H_DP | Static Attribute | ' | LIKE CNTL_HANDLE | Private | |
| H_OBJ | Static Attribute | ' | LIKE CNTL_HANDLE | Private | |
| ITEM_CLASS_BUTTON | Constant | Pushbutton Item | 4 | LIKE I | Public |
| ITEM_CLASS_CHECKBOX | Constant | Checkbox Item | 3 | LIKE I | Public |
| ITEM_CLASS_LINK | Constant | Link Item | 5 | LIKE I | Public |
| ITEM_CLASS_TEXT | Constant | Text Item | 2 | LIKE I | Public |
| ITEM_FONT_DEFAULT | Constant | Default Font | 0 | LIKE I | Public |
| ITEM_FONT_FIXED | Constant | Fixed Font | 1 | LIKE I | Public |
| ITEM_FONT_PROP | Constant | Proportional Font | 2 | LIKE I | Public |
| ITEM_SELECTION | Instance Attribute | 'X': Item Selection | LIKE AS4FLAG | Protected | |
| MT_COLUMN_INFO | Instance Attribute | LIKE | Private | ||
| MV_EXISTS_INS | Instance Attribute | LIKE | Private | ||
| MV_EXISTS_UPD | Instance Attribute | LIKE | Private | ||
| MV_TEST_INS | Instance Attribute | LIKE | Private | ||
| MV_TEST_UPD | Instance Attribute | LIKE | Private | ||
| STRUCTURES | Static Attribute | ' | LIKE CL_GUI_OBJECT | Private | |
| THIS_CLASS_NAME | Constant | Name of Class | 'CL_ITEM_TREE_CONTROL' | LIKE CHAR80 | Private |
| WITH_HEADERS | Instance Attribute | 'X': Tree Has Header | LIKE AS4FLAG | Protected |
Events of Class CL_ITEM_TREE_CONTROL
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 - Pushbutton ClickedCHECKBOX_CHANGE - Change State of a Checkbox
HEADER_CLICK - Header Clicked
HEADER_CONTEXT_MENU_REQUEST - Request Context Menu for Header
HEADER_CONTEXT_MENU_SELECT - Context Menu Entry Selected
ITEM_CONTEXT_MENU_REQUEST - Request Context Menu for an Item
ITEM_CONTEXT_MENU_SELECT - Context Menu Entry Selected
ITEM_DOUBLE_CLICK - Double-Click on Item
ITEM_KEYPRESS - Key Pressed, Node Was Selected
LINK_CLICK - Link Clicked
ON_DRAG - Event for Filling Drag and Drop Data Object
ON_DRAG_MULTIPLE - Event for Filling Drag and Drop Data Object
ON_DROP_COMPLETE - Drop Event Processed Successfully
ON_DROP_COMPLETE_MULTIPLE - Drop Event Processed Successfully
CL_ITEM_TREE_CONTROL types
COLUMN_INFO_S -COLUMN_INFO_T -
Links to Related Class(s)
CL_ITEM_...Full list of available SAP object classes
Search for further information about these or an SAP related objects