Skip to Content
-1

Refresh ALV tree after deleting the node

May 09 at 06:17 AM

22

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Simone Milesi May 09 at 08:04 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded