Respuesta
Ok, el siguiente codigo funciono para mi, pero que flojera hacer todo eso...
alguien tendra alguna solucion mejor???
saludos.
data node type lvc_nkey.
data sub_node type lvc_nkey.
call method tree1->get_top_node
importing
e_node_key = node.
sub_node = node.
while sub_node is not initial.
call method tree1->get_next_sibling
exporting
i_node_key = sub_node
importing
e_next_node_key = sub_node.
if sub_node is not initial.
call method tree1->delete_subtree
exporting
i_node_key = sub_node.
endif.
endwhile.
if node is not initial.
call method tree1->delete_subtree
exporting
i_node_key = node.
endif.
|