Entering content frame

Syntax documentation constructor Locate the document in its SAP Library structure

The constructor method is called automatically when you instantiate the class cl_column_tree_model . To do this, you must declare a reference variable as follows:

DATA column_model TYPE REF TO cl_column_tree_model.

You can then create an instance using the CREATE OBJECT statement.

CREATE OBJECT column_model
      EXPORTING node_selection_mode = node_selection_mode
                hide_selection      = hide_selection
                item_selection      = item_selection
                hierarchy_column_name = hierarchy_colunm_name
                hierarchy_header    = hierarchy_header.

Parameter and Type

Opt.

Description

node_selection_mode
TYPE I

 

Specifies whether or not multiple nodes can be selected simultaneously. Possible values are

  • cl_column_tree_model=>node_sel_mode_single
    Only one node at a time may be selected
  • cl_column_tree_model=>node_sel_mode_multiple
    Multiple nodes may be selected

hide_selection
TYPE AS4FLAG

X

Specifies whether the selection should be hidden. Possible values:

  • 'X' : Selection is hidden
  • ' ' : Selection is visible

item_selection
TYPE AS4FLAG

X

Specifies whether items can be selected individually. Possible values:

  • 'X' : Items can be selected individually
  • ' ' : Items cannot be selected individually. Clicking on an item selects the whole node.

hierarchy_column_name
TYPE C(12)

 

The name of the column that appears under the hierarchy heading.

hierarchy_header
TYPE TREEMHHDR

 

A structure containing information about the hierarchy heading. For full details, refer to Structures for Headings of Item Trees.

 

 

 

Leaving content frame