Skip to Content

Adding Execute Icon as a Button in a Tree Structure(Similar to Application SPRO(Img-activity))

Hello All,

I have created a tree structure similar to SPRO Tcode. I want to add Execute Icon as a button to navigate to a different screen on click. Can anybody suggest how to achieve this?


Mrunali Shimpi

Add a comment
10|10000 characters needed characters exceeded

  • The "simple" tree doesn't provide buttons at node level (just the possibility to change the node/leaf icon and eventually you may handle the double click). You have to use an "item" tree like either the "list" tree (CL_LIST_TREE_MODEL) or the "column" tree (CL_COLUMN_TREE_MODEL).

    But you will have to restart the coding from scratch, there are several important differences.

    For each tree node (line), you will have to define an item of class ITEM_CLASS_BUTTON (constant defined in CL_ITEM_TREE_MODEL).

    It's a little bit complex to explain you everything, but you may find examples in demo program SAPTLIST_TREE_MODEL_DEMO and in the Web.

  • I have created the tree using cl_simple_tree_model class. I have also used the method add_nodes to add child nodes, which is where the execute button button is to be added.

  • You will need to provide little bit more information. How did you create this tree ? using witch class ?

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.