Hi All,
My requirement is to edit the coloumn in the ALV tree.
Its a module pool programme and iam using the class
cl_gui_alv_tree.
I have passed the field catalog edit 'X' and while creating node I have passed
tha layout edit is 'X'. but iam not getting.
I have tried and searched in standard programs in SAP, and in portal,
thay are saying that we cannot edit the cell or coloumn in ALV tree, is it?
help me..
Field catalog
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'SFLIGHT'
CHANGING
ct_fieldcat = gt_fieldcatalog.
LOOP AT gt_fieldcatalog ASSIGNING <LFS_FCAT>.
<LFS_FCAT>-EDIT = 'X'.
ENDLOOP.
layout
DATA: lt_item_layout TYPE lvc_t_layi,
ls_item_layout TYPE lvc_s_layi.
ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.
ls_item_layout-editable = 'X'.
ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
APPEND ls_item_layout TO lt_item_layout.
* add node
l_node_text = ps_sflight-connid.
CALL METHOD tree1->add_node
EXPORTING
i_relat_node_key = p_relat_key
i_relationship = relat
i_node_text = l_node_text
is_outtab_line = ls_sflight
it_item_layout = lt_item_layout
IMPORTING
e_new_node_key = p_node_key.