Skip to Content
avatar image
-1
Former Member

Refresh ALV tree after deleting the node

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 09 at 08:04 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded