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_BASE

Method 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 NameDescriptionVisability
ADD_COLUMN_EXFor internal use onlyProtected
CALL METHOD cl_item_tree_control=>ADD_COLUMN_EX...more details

ADD_NODES_AND_ITEMSInsert Nodes and ItemsPublic
CALL METHOD cl_item_tree_control=>ADD_NODES_AND_ITEMS...more details

ASSIGN_TABLE_BY_METHODAssign Table By Method CallProtected
CALL METHOD cl_item_tree_control=>ASSIGN_TABLE_BY_METHOD...more details

CALL_HEADER_METHODSet Method of a HeaderProtected
CALL METHOD cl_item_tree_control=>CALL_HEADER_METHOD...more details

CONSTRUCTORConstructorPublic
CALL METHOD cl_item_tree_control=>CONSTRUCTOR...more details

DELETE_ALL_ITEMS_OF_NODESDeletes all Items In a Set of NodesPublic
CALL METHOD cl_item_tree_control=>DELETE_ALL_ITEMS_OF_NODES...more details

DELETE_COLUMN_EXFor internal use onlyProtected
CALL METHOD cl_item_tree_control=>DELETE_COLUMN_EX...more details

DELETE_ITEMSDelete ItemsPublic
CALL METHOD cl_item_tree_control=>DELETE_ITEMS...more details

DELETE_TEXT_COLUMNDelete TEXT ColumnProtected
CALL METHOD cl_item_tree_control=>DELETE_TEXT_COLUMN...more details

GET_COLUMN_INFOInternal use onlyPublic
CALL METHOD cl_item_tree_control=>GET_COLUMN_INFO...more details

GET_HEADER_BY_KEYGet Header ObjectProtected
CALL METHOD cl_item_tree_control=>GET_HEADER_BY_KEY...more details

GET_HEADER_PROPERTYRead Property of a Header (queue_only = ' ')Protected
CALL METHOD cl_item_tree_control=>GET_HEADER_PROPERTY...more details

GET_SELECTED_ITEMReturns Node Key and Item Name of Selected ItemPublic
CALL METHOD cl_item_tree_control=>GET_SELECTED_ITEM...more details

HANDLE_DRAG_DROP_COMPLETEHandle ONDRAG and ONDROPCOMPLETEPrivate
CALL METHOD cl_item_tree_control=>HANDLE_DRAG_DROP_COMPLETE...more details

HANDLE_EVENT_CHECKBOX_CHANGEHandle Event CHECKBOX_CHANGEPrivate
CALL METHOD cl_item_tree_control=>HANDLE_EVENT_CHECKBOX_CHANGE...more details

HANDLE_EVENT_HEADER_CLICKHandle Event HEADER_CLICKPrivate
CALL METHOD cl_item_tree_control=>HANDLE_EVENT_HEADER_CLICK...more details

HANDLE_EVENT_ITEM_KEYPRESSHandle Event ITEM_KEYPRESSPrivate
CALL METHOD cl_item_tree_control=>HANDLE_EVENT_ITEM_KEYPRESS...more details

HANDLE_EVT_HEADER_CTX_MEN_REQHandle Event HEADER_CONTEXT_MENU_REQUESTPrivate
CALL METHOD cl_item_tree_control=>HANDLE_EVT_HEADER_CTX_MEN_REQ...more details

HANDLE_NODE_KEY_ITEM_NAME_EVTHandle 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_WIDTHReturns the Width of a HeaderProtected
CALL METHOD cl_item_tree_control=>HEADER_GET_WIDTH...more details

HEADER_SET_TEXTSets the Title for a HeaderProtected
CALL METHOD cl_item_tree_control=>HEADER_SET_TEXT...more details

HEADER_SET_TOOLTIPSets the Tool Tip For a HeaderProtected
CALL METHOD cl_item_tree_control=>HEADER_SET_TOOLTIP...more details

HEADER_SET_T_IMAGESets the Picture for a HeaderProtected
CALL METHOD cl_item_tree_control=>HEADER_SET_T_IMAGE...more details

HEADER_SET_WIDTHSets the Width of a HeaderProtected
CALL METHOD cl_item_tree_control=>HEADER_SET_WIDTH...more details

ITEM_SET_CHOSENSets Checked State for a CheckboxPublic
CALL METHOD cl_item_tree_control=>ITEM_SET_CHOSEN...more details

ITEM_SET_DISABLEDSets Whether an Item Can be SelectedPublic
CALL METHOD cl_item_tree_control=>ITEM_SET_DISABLED...more details

ITEM_SET_EDITABLESets Whether an Item Can be EditedPublic
CALL METHOD cl_item_tree_control=>ITEM_SET_EDITABLE...more details

ITEM_SET_FONTSets the Font of an ItemPublic
CALL METHOD cl_item_tree_control=>ITEM_SET_FONT...more details

ITEM_SET_HIDDENSets the Visibility of an ItemPublic
CALL METHOD cl_item_tree_control=>ITEM_SET_HIDDEN...more details

ITEM_SET_STYLESets the Style Property of an ItemPublic
CALL METHOD cl_item_tree_control=>ITEM_SET_STYLE...more details

ITEM_SET_TEXTSets the Text for an ItemPublic
CALL METHOD cl_item_tree_control=>ITEM_SET_TEXT...more details

ITEM_SET_T_IMAGESets the Picture for an ItemPublic
CALL METHOD cl_item_tree_control=>ITEM_SET_T_IMAGE...more details

SELECT_ITEMSelects an ItemPublic
CALL METHOD cl_item_tree_control=>SELECT_ITEM...more details

SETUP_HIERARCHY_HEADERSets Properties of the Hierarchy HeaderProtected
CALL METHOD cl_item_tree_control=>SETUP_HIERARCHY_HEADER...more details

SET_HEADER_PROPERTIESSets Properties of a HeaderProtected
CALL METHOD cl_item_tree_control=>SET_HEADER_PROPERTIES...more details

SET_HEADER_PROPERTYSets Property of a HeaderProtected
CALL METHOD cl_item_tree_control=>SET_HEADER_PROPERTY...more details

SET_MIN_NODE_HEIGHTSets Minimum Height of Nodes in TreePublic
CALL METHOD cl_item_tree_control=>SET_MIN_NODE_HEIGHT...more details

UPDATE_NODES_AND_ITEMSInsert Nodes and ItemsPublic
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.

NameLevelDescriptionInitial ValueTypeVisability
ALIGN_CENTERConstantCentered1LIKE
I
Public
ALIGN_LEFTConstantLeft-justified0LIKE
I
Public
ALIGN_RIGHTConstantRight-justified2LIKE
I
Public
CTX_MEN_REQ_HEADER_NAMEInstance Attribute'LIKE
TV_HDRNAME
Private
CTX_MEN_REQ_ITEM_NAMEInstance Attribute'LIKE
TV_ITMNAME
Private
CTX_MEN_REQ_NODE_KEYInstance AttributeKey Node of Last Context Menu RequestLIKE
TV_NODEKEY
Private
CTX_MEN_REQ_OBJECTInstance AttributeObject From Last Context Menu RequestLIKE
I
Private
CTX_MEN_REQ_OBJ_HEADERConstantContext Menu Request on Header2LIKE
I
Private
CTX_MEN_REQ_OBJ_ITEMConstantContext Menu Request on Item1LIKE
I
Private
EVENTID_BUTTON_CLICKConstantPushbutton Clicked29LIKE
I
Public
EVENTID_CHECKBOX_CHANGEConstantChange State of a Checkbox33LIKE
I
Public
EVENTID_HEADER_CLICKConstantHeader Clicked28LIKE
I
Public
EVENTID_HEADER_CONTEXT_MEN_REQConstantContext Menu on Header41LIKE
I
Public
EVENTID_ITEM_CONTEXT_MENU_REQConstantContext Menu on Item26LIKE
I
Public
EVENTID_ITEM_DOUBLE_CLICKConstantDouble-Click on Item22LIKE
I
Public
EVENTID_ITEM_KEYPRESSConstantKey Pressed on Selected Item39LIKE
I
Public
EVENTID_LINK_CLICKConstantLink Clicked35LIKE
I
Public
HEADERStatic Attribute'LIKE
CL_GUI_OBJECT
Private
HEADERSStatic Attribute'LIKE
CL_GUI_OBJECT
Private
HEADER_VARIABLEConstantUser Can Change Header Width1LIKE
I
Protected
H_DPStatic Attribute'LIKE
CNTL_HANDLE
Private
H_OBJStatic Attribute'LIKE
CNTL_HANDLE
Private
ITEM_CLASS_BUTTONConstantPushbutton Item4LIKE
I
Public
ITEM_CLASS_CHECKBOXConstantCheckbox Item3LIKE
I
Public
ITEM_CLASS_LINKConstantLink Item5LIKE
I
Public
ITEM_CLASS_TEXTConstantText Item2LIKE
I
Public
ITEM_FONT_DEFAULTConstantDefault Font0LIKE
I
Public
ITEM_FONT_FIXEDConstantFixed Font1LIKE
I
Public
ITEM_FONT_PROPConstantProportional Font2LIKE
I
Public
ITEM_SELECTIONInstance Attribute'X': Item SelectionLIKE
AS4FLAG
Protected
MT_COLUMN_INFOInstance AttributeLIKE
Private
MV_EXISTS_INSInstance AttributeLIKE
Private
MV_EXISTS_UPDInstance AttributeLIKE
Private
MV_TEST_INSInstance AttributeLIKE
Private
MV_TEST_UPDInstance AttributeLIKE
Private
STRUCTURESStatic Attribute'LIKE
CL_GUI_OBJECT
Private
THIS_CLASS_NAMEConstantName of Class'CL_ITEM_TREE_CONTROL'LIKE
CHAR80
Private
WITH_HEADERSInstance Attribute'X': Tree Has HeaderLIKE
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 Clicked
CHECKBOX_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



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!