09-30-2008 12:13 PM
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 !
Regards Peter
09-30-2008 8:10 PM
Hello Peter
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.
Regards
Uwe
09-30-2008 8:10 PM
Hello Peter
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.
Regards
Uwe
10-01-2008 2:00 PM
Hi Uwe,
thank You for Your help, I changed the program - and it functions fine !
Kind regards
Peter