Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Class CL_TREE_MODEL

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

replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question