Structure TREEMCITEM

Definition

TREEMCITEM is a structure that is used to define the line type of the internal table TREEMCITAB. This internal table is used in the Column Tree Model to specify the items that belong to a particular node.

Use

You can use TREEMCITAB to specify the type of the actual parameter you are going to pass to the items_table parameter in the add_node method of cl_column_tree_model.

Structure

Component and Type

Description

item_name

TYPE C(12)

Name of the item

class

TYPE I

Class of the item. Possible values:

  • cl_item_tree_model=>item_class_text: Item is a text

  • cl_item_tree_model=>item_class_button: Item is a pushbutton

  • cl_item_tree_model=>item_class_checkbox: Item is a checkbox

  • cl_item_tree_model=>item_class_link: Item is a link

font

TYPE I

Font in which the item is to be displayed. Possible values:

  • cl_item_tree_model=>item_font_default: Use the default font

  • cl_item_tree_model=>item_font_fixed: Use a fixed font

  • cl_item_tree_model=>item_font_prop: Use a proportional font

disabled

TYPE AS4FLAG

Flag to indicate whether the item should be disabled (disabled items cannot be selected). Possible values:

  • 'X': Item is disabled

  • ' ': Item can be selecte d

editable

TYPE AS4FLAG

Flag to indicate whether the item can be edited. Possible values:

  • 'X': Item can be edited

  • ' ': Item cannot be edite d

hidden

TYPE AS4FLAG

Flag to indicate whether the item is hidden. Possible values:

  • 'X': Item is hidden

  • ' ': Item is not hidde n

t_image

TYPE C(6)

The image or icon to be displayed as part of the icon. Possible values:

  • ' ': No icon

  • '@XY@': The SAP icon with the code XY

  • 'BNONE': No icon. The text is shifted so that it begins in the position where the image would otherwise have been.

chosen

TYPE AS4FLAG

Flag to indicate whether the item should be chosen. Possible values:

  • 'X': Chosen

  • ' ': Not chose n

style

TYPE I

Style of the item. Possible values:

  • cl_tree_model=>style_default

  • cl_tree_model=>style_emphasized

  • cl_tree_model=>style_emphasized_negative

  • cl_tree_model=>style_emphasized_positive

  • cl_tree_model=>style_inactive

  • cl_tree_model=>style_inherited

  • cl_tree_model=>style_intensified_critica

txtisqinfo

TYPE AS4FLAG

Flag to indicate whether the quickinfo of the item should become its text. Possible values:

  • 'X': Quickinfo is used as the item text

  • ' ': Quickinfo is not used as the item tex t

text

TYPE STRING

Text of the item