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

ALV Tree Checkbox

Former Member
0 Likes
525

Good day.

I am working with ALV tree. I put a checkbox at each sub node using the following code:

ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.

ls_item_layout-editable = 'X'.

APPEND ls_item_layout TO lt_item_layout.

This is working fine, but now, how can I go about to know which nodes were selected by user. For example the user make his selection via checkboxes and click on a button and I need the marked(checked) data into a interal tabel for example.

If possible, please provide code.

Thanks

Hanno

Good day.

I am working with ALV tree. I put a checkbox at each sub node using the following code:

ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.

ls_item_layout-editable = 'X'.

APPEND ls_item_layout TO lt_item_layout.

This is working fine, but now, how can I go about to know which nodes were selected by user. For example the user make his selection via checkboxes and click on a button and I need the marked(checked) data into a interal tabel for example.

If possible, please provide code.

Thanks

Hanno

2 REPLIES 2
Read only

former_member386202
Active Contributor
0 Likes
458

Hi,

Refer these standard programs

BCALV_TEST_HIERSEQ_LIST Program BCALV_TEST_HIERSEQ_LIST

BCALV_TEST_HIERSEQ_LIST_EVENTS Program BCALV_TEST_HIERSEQ_LIST_EVENTS

BCALV_TREE_01 ALV tree control: build up the hierarchy tree

BCALV_TREE_DND ALV tree control: Drag & Drop within a hierarchy

BCALV_TREE_DND_MULTIPLE ALV tree control: Drag & Drop within a hierarchy

Regards,

Prashant

Read only

0 Likes
458

Hi,

I am a bit new at ABAP and could not see how this could solve my problem. Revering to the DND multiple example. Will it handle a checkbox the same way as when normal selected by cursor, because one could use both simultaneously? I don't know. Some code will be helpful.

Thanks