Incremental Tree Construction

Use

Transferring node informatino to the SAP Tree at the frontend is a critical operation in performance terms. If you have a large tree with more than 500 nodes, you should not transfer the child nodes of a particular node to the frontend until the user actually expands that node.

To do this, you must implement the following steps:

  • For node Child1, set the field EXPANDER = 'X' in the node structure ( TREEV_NODE). By doing this, you ensure that the event EXPAND_NO_CHILDREN is triggered when the user tries to expand this node.

  • Register the event EXPAND_NO_CHILDREN.

  • In the event handler method, include a runtime that transfers the child nodes of the expanded node to the SAP Tree.