Start of Content Area

Syntax documentation update_nodes  Locate the document in its SAP Library structure

Use this method to change the attributes of nodes in the tree model. You cannot use it to change the RELATKEY or RELATSHIP attributes. If you want to move a node, use the MOVE_NODE method.

CALL METHOD list_model->update_nodes
      EXPORTING node_table = node_table.

Parameter and Type

Opt.

Description

node_table
TYPE TREEMLUNOT

 

An internal table in which each line represents one node whose attributes you want to change. You specify the key of the node, and enter a new value for each attribute that you want to change. Each changeable attribute also has a corresponding flag with the name U_<attribute> . You must check this flag for each attribute that you change.

For example, if you want to change the hidden attribute for a node from ' ' (not hidden) to 'X' (hidden), you would enter 'X' in the HIDDEN field and 'X' in the field U_HIDDEN (to indicate that the field must be updated). If you want to change all of the changeable attributes for a given node, you should check the U_ALL field instead of all of the individual U_<attribute> flag fields.

The line type of data type TREEMLUNOT is made up as follows:

  • It includes the structure TREEMLNODT. In these fields, you can enter the changed values.
  • For each changeable value, there is a flag field u_<attribute> , which must have the value 'X' for each attribute you change.