Skip to Content

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

using table tree by key column UI element


I have table tree by key column and a button in my view.

i want to enable the button for the selection of only leaf elements. the 3 rd level i have leaf (no further sub node) elements.

i want to enable the button for these elements only.for the higher nodes i.e. for the 1st and 2 nd level i want to disable the button.

please any sample code for this?



Former Member
Former Member replied

Hi Lakshmi,

check this component WDT_TREE_TABLE_BY_KEY.(this is also having 3 levels with 3rd level as leaf)

and the method GENERATE_DATA.

Bind an attribute of type wdy_boolean to button enabled property and set the attribute value in GENERATE_DATA method by checking the conidition

row-is_leaf = abap_true.

Hope it helps

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