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

Refresh ALV tree after deleting the node

nagaswaroopamuddam
Associate
Associate
0 Likes
827

Hello Colleagues,

I am still unable to update the node_key value after deleting the nodes.

I have used the following snippet

CALL METHOD gr_tree_ui->get_selected_node
IMPORTING
es_row = ls_row.


CALL METHOD cl_gui_cfw=>flush.

CALL METHOD mr_tree->delete_subtree
EXPORTING
i_node_key = ls_selected_node
i_update_parents_folder = abap_true
EXCEPTIONS
node_key_not_in_model = 1
OTHERS = 2.


CALL METHOD mr_tree->frontend_update.

Regards,

Naga

Hello Colleagues,

I am still unable to update the node_key value after deleting the nodes.

I have used the following snippet

CALL METHOD gr_tree_ui->get_selected_node
IMPORTING
es_row = ls_row.


CALL METHOD cl_gui_cfw=>flush.

CALL METHOD mr_tree->delete_subtree
EXPORTING
i_node_key = ls_selected_node
i_update_parents_folder = abap_true
EXCEPTIONS
node_key_not_in_model = 1
OTHERS = 2.


CALL METHOD mr_tree->frontend_update.

Regards,

Naga

1 REPLY 1
Read only

SimoneMilesi
Active Contributor
0 Likes
663

The method updating the screen is CALL METHOD cl_gui_cfw=>flush. so you have to call it AFTER CALL METHOD mr_tree->frontend_update.