ADD_NODE_TO_TREE SAP Method Adds a node to the tree
Below is documentation, parameters and attributes of ABAP Method ADD_NODE_TO_TREE within SAP class CL_GUI_BROWSER_OHFW. 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_BROWSER_OHFW 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 ADD_NODE_TO_TREE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADD_NODE_TO_TREE
.Name | Type | Data Type | Description | Default Value |
IR_NODE | Importing | TYPE REF TO CL_NODE_OHFW | Hierarchy nodes | |
I_ADJUST_SUB_NODES | Importing | TYPE XFLAG | Adjusts child nodes under new node | |
I_SET_SELECTED | Importing | TYPE XFLAG | Set node as selected | |
I_UPDATE_TREE | Importing | TYPE XFLAG | Update tree | |
E_NODE_KEY | Exporting | TYPE LVC_NKEY | ALV tree control: Node-key |
Exceptions of Method ADD_NODE_TO_TREE
LVC_NKEY
Example ABAP coding
DATA: lo_class TYPE REF TO CL_GUI_BROWSER_OHFW.
DATA: lv_E_NODE_KEY TYPE LVC_NKEY,
lv_IR_NODE TYPE CL_NODE_OHFW,
lv_I_ADJUST_SUB_NODES TYPE XFLAG,
lv_I_SET_SELECTED TYPE XFLAG,
lv_I_UPDATE_TREE TYPE XFLAG,
lv_other TYPE c.
CALL METHOD lo_class=>ADD_NODE_TO_TREE(
EXPORTING
IR_NODE = lv_IR_NODE
I_ADJUST_SUB_NODES = lv_I_ADJUST_SUB_NODES
I_SET_SELECTED = lv_I_SET_SELECTED
I_UPDATE_TREE = lv_I_UPDATE_TREE
IMPORTING
E_NODE_KEY = lv_E_NODE_KEY ).
Links to Related Class(s)
CL_GUI_B...Full list of available SAP object classes
Search for further information about these or an SAP related objects