Ansicht
Dokumentation

RJVSDNODE01 - IS-M: Tree Control: Characteristics of a Node (Material)

RJVSDNODE01 - IS-M: Tree Control: Characteristics of a Node (Material)

BAL Application Log Documentation   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Use

This structure contains the characteristics of a node in a tree control.

TREE_CLASS is the tree control class used:

  • CL_GUI_SIMPLE_TREE
  • CL_GUI_COLUMN_TREE
  • CL_GUI_LIST_TREE

Fields for structure

  • NODE_KEY contains the key of the node in the tree. The key must be unique for the entire tree. Blank keys are not allowed. Please only use letters, digits and underscores (_).
  • RELATKEY and RELATSHIP are used for inserting nodes in the tree. In this case, NODE_KEY contains the key of the new node to be inserted. RELATKEY and RELATSHIP describe the position at which the new node is to be inserted: RELATKEY is the key of a related node (e.g. parent node) and RELATSHIP defines the relationship. If you want to insert a root node, RELAT_KEY must be initial. The following values are allowed for RELATSHIP:
  • TREE_CLASS=>RELAT_FIRST_CHILD: The new node is inserted as the first child of the node with the key RELATKEY. If RELAT_KEY is blank, the node is inserted as the first root node.

  • TREE_CLASS=>RELAT_LAST_CHILD: The new node is inserted as the last child of the node with the key RELATKEY. If RELAT_KEY is blank, the node is inserted as the last root node.

  • TREE_CLASS=>RELAT_PREV_SIBLING: RELATKEY indicates the sibling node before which the new node is inserted (two nodes are siblings if they both have the same parent node). If RELAT_KEY is blank, the node is inserted as the first root node.

  • TREE_CLASS=>RELAT_NEXT_SIBLING: RELATKEY specifies the sibling node after which the new node is inserted. If RELAT_KEY is blank, the node is inserted as the last root node.

  • TREE_CLASS=>RELAT_FIRST_SIBLING: The new node is inserted as the first sibling of the node with the key RELAT_KEY. If RELAT_KEY is blank, the node is inserted as the first root node.

  • TREE_CLASS=>RELAT_LAST_SIBLING: The new node is inserted as the last sibling of the node with the key RELAT_KEY. If RELAT_KEY is blank, the node is inserted as the last root node.

  • HIDDEN: If you set the parameter HIDDEN, the node is invisible.
  • DISABLED: If you set DISABLED, the node cannot be selected. A double click on a node that cannot be seleted has no effect.
  • ISFOLDER: If IS_FOLDER is selected, the node is a folder. Otherwise, the node is a leaf. Caution: children cannot be attached to a leaf.
  • N_IMAGE: If the node is a leaf, N_IMAGE compares the leaf symbol for the node. If the node is a folder, N_IMAGE contains the symbol for a closed folder. The following values are allowed:
  • Blank field: The system uses the default symbol.

  • Icon: An icon is specified in the form @XY@.

  • Value 'BNONE': No symbol is displayed. Caution: the first item of the node then begins where the folder or leaf symbol would otherwise be displayed. If a node does not have a folder or leaf symbol, the same should apply to its siblings.

  • EXP_IMAGE contains the symbol for an open folder. The same values as for N_IMAGE apply here.
  • EXPANDER: You can only select this parameter for folders. It has the following effect: If the folder is empty, it displays a '+' (an empty folder does not normally display a '+' because it cannot be expanded). If the user clicks on the '+', this triggers the event EXPAND_NO_CHILDREN. The programmer can then transfer the child nodes for the open node into the tree control in the event handler for this event. Please note that the event EXPAND_NO_CHILDREN must be registered in control generation and a handling method must be specified for the event.
  • STYLE: A node style comprises the text color and background color for the node. The values for this field have the form TREE_CLASS=>STYLE_... The style TREE_CLASS=>STYLE_INHERITED has the same meaning for a node as the style TREE_CLASS=>STYLE_DEFAULT: the standard text color and background color are used. The sample program SAPTREX_NODE_STYLES demonstrates the different styles.
  • LAST_HITEM: This field is only for use with a LIST_TREE that has headers. LAST_HITEM contains the name of the last item that is to be displayed under the hierarchy header. Caution: in a LIST_TREE, item names are whole numbers (1,2,3,...). All subsequent items are displayed under the list header. If LAST_HITEM = 0, all items are displayed under the hierarchy header.
  • NO_BRANCH: If this flag is selected, a hierarchy line is not drawn for the node.
  • DRAGDROPID: Only if the node is to be drag & drop-enabled: handle for an object belonging to the class CL_DRAGDROP.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 5556 Date: 20240419 Time: 191936     sap01-206 ( 94 ms )