Application Development 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: 

how to triggar the event EXPAND_NO_CHILDREN of the class CL_GUI_LIST_TREE

Former Member
0 Kudos

Hallo everyone,

I have handled a local class as follows, in order to trigger some events of the class CL_GUI_LIST_TREE

SET HANDLER g_application->handle_checkbox_change FOR mo_alv_tree.

SET HANDLER g_application->handle_expand_no_children FOR mo_alv_tree.

I have also called the following event-handler-calling method.

CALL METHOD cl_gui_cfw=>dispatch

IMPORTING

return_code = l_return_code.

As a result, only the CHECKBOX_CHANGE is triggered.

How can i let also the EXPAND_NO_CHILDREN trigger?

Regards,

Christian

4 REPLIES 4

Former Member
0 Kudos

Have you checked SAPTLIST_TREE_CONTROL_DEMO, and there the registration of the events in list_tree_control_demoF01?

Former Member
0 Kudos

Hello Mathias,

Yes, I have already seen the Program. And I don't understand why by clicking on "Dynpro" the event is not triggered, and why by clicking on "Programs" the event is triggered.

Regards,

Christian

0 Kudos

Hello Christian

On our ERP 4.6c system the sample report SAPTLIST_TREE_CONTROL_DEMO shows the expected behaviour. By clicking on the triangle in front of the nodes "Dynpro" or "Programs" the node is expanded and the children are displayed.

If the node "Dynpro" is not expanded (but node "Programs") this means that "Programs" has children whereas "Dynpro" has not.

Regards

Uwe

0 Kudos

Hello Uwe,

Each of them- "Dynpro" and "Programs" has 2 entries:

Dynpro 0100 Müller

0200 Harryhirsch

Programs SAPTROX1

SAPTRIXTROX

How can you say that "Programs" has children and "Dynpros" not?

Regards,

Christian