Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Interactive ALV tree problem

Former Member
0 Likes
628

Hi all,

Please help,

I have created ALV tree, with the help of standard program bcalv_tree_01. now i want to create it interative like DOUBLE CLICK on any ITEM or NODE. so i have define class and implement it with two method for event NODE_DOUBLE_CLICK and ITEM_DOUBLE_CLICK. and i have register it. when i display the tree it doesn't expand, but i comments the CALL METHOD gd_tree->set_registered_events it works fine. should i have to implement the event EXPAND_NO_CHILDREN also?

and what should be the code, becoz i am new in alv tree and oops. for sytex please refer BCALV_TREE_01.

please help as soon as possible.

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
545

HI,

To understand the click events in a tree ; refer to the program SAPSIMPLE_TREE_CONTROL_DEMO.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
545

Hi!

Ya you have to code for the method EXPAND_NO_CHILDREN

Where you will be defining the childs to the particular node.

the better example for it you can refer to SAPSIMPLE_TREE_CONTROL_DEMO

where

HANDLE_EXPAND_NO_CHILDREN method implemented shows the childs added and METHOD HANDLE_NODE_DOUBLE_CLICK

implemented to handle the doulbe click.

Regards.