Code: Alles auswählen.
TRY.
go_salv_nodes = go_salv_tree->get_nodes( ).
go_salv_nodes->delete_all( ).
CATCH cx_salv_error.
FREE go_salv_nodes.
ENDTRY.
TRY.
go_salv_tree->set_data( CHANGING t_table = gt_outtab ).
CATCH cx_salv_no_new_data_allowed .
CATCH cx_salv_error .
ENDTRY.
Mit einer While-Schleife kommst du m.E. nicht weit.