Skip to Content

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

select all check box DEMO program BCALV_TREE_DEMO

How to select all the check boxes in the demo program BCALV_TREE_DEMO using select all.

I have a problem in the my ALV program where i have created my node using this piece of code.

ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.

ls_item_layout-editable = 'X'.

ls_item_layout-t_image = icon_ws_truck. "'@3Y@'.

ls_item_layout-fieldname = tree1->c_hierarchy_column_name.

APPEND ls_item_layout TO lt_item_layout.

DATA: l_node_text TYPE lvc_value.

  • add node

MOVE wa_podelsdisp-vgbel TO l_node_text.


wa_podelsdisp-vgbel '/' wa_podelsdisp-vgpos

INTO l_node_text.

CALL METHOD tree1->add_node


i_relat_node_key = p_lifnr_node

i_relationship = cl_gui_column_tree=>relat_last_child

i_node_text = l_node_text

is_outtab_line = ls_outtab

it_item_layout = lt_item_layout


e_new_node_key = p_ebeln_node.

I can select individual check box using check box event but how do i select all check box in the node when i press the select all button.

Note : I have not declared check box as a field.

Former Member
Not what you were looking for? View more on this topic or Ask a question