Dear Colleagues !
I'd like to develop a tree in the class CL_TREE_MODEL because it has an own method PRINT_TREE to print the content in a tree form. But how can I fill the tree with nodes and items, which method is responsible for it ?
Thank You for Your helps !
You cannot use class CL_TREE_MODEL for building your tree control because this is just the basic class for a class hierarchy (e.g. it does not have a method ADD_NODE).
Instead, you need to use one of its subclasses, e.g. CL_ITEM_TREE_MODEL -> CL_COLUMN_TREE_MODEL or CL_SIMPLE_TREE_MODEL.
All these subclasses inherit the PRINT_TREE method of CL_TREE_MODEL.
For sample reports of these classes have a look through the programs in package SEU_TREE_MODEL.