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

checkboxes in tree

Former Member
0 Likes
570

Hi,

Can anyone send a sample code for keeping check boxes for the last level nodes(leaves) of the tree?

very urgent. points are assured.

Regards,

Srinivas

7 REPLIES 7
Read only

Former Member
0 Likes
533

<b>BCALV_TREE_VERIFY</b>

when u run this standared code there is option for display item with check box click it and execute...

Read only

Former Member
0 Likes
533

Hi check out this coding

DATA: lt_item_layout TYPE lvc_t_layi,

ls_item_layout TYPE lvc_s_layi,

v_alv type ref to cl_gui_alv_tree.

ls_item_layout-fieldname =v_alv->hierarchy_column_name.

LS_ITEM_LAYOUT-CLASS = CL_GUI_COLUMN_TREE=>ITEM_CLASS_CHECKBOX.

LS_ITEM_LAYOUT-EDITABLE = 'X'.

APPEND ls_item_layout TO lt_item_layout.

try this and let me know the result.

regards

Ram

Read only

0 Likes
533

Hi Ram,

Can you please check the code. Its giving short dump.

Can you edit the code and give me plz?

Regards,

Srinivas

Read only

Former Member
0 Likes
533

what is the dump you are getting.

Read only

0 Likes
533

Hi initially it has shown a systax error saying, The field "hierarchy_column_name" is unknown.There is a field with similar name "c_hierarchy_column_name".

I have modified the code as mentioned. Now i got the short dump..."Access not possible using 'NULL' Object reference.

Regards,

Srinivas

Read only

0 Likes
533

BETTER CHECK OUT THIS STANDARD ALV PROGRAM

<b>BCALV_TREE_DEMO</b>

RAM