MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Eliminar todos los nodos de un TREE y poner nuevos (foro/showthread.php?t=12656)

aldape 15/04/08 22:02:03

Eliminar todos los nodos de un TREE y poner nuevos
 
Como puedo?

Eliminar todos los nodos de un TREE y poner nuevos



Saludos!

aldape 15/04/08 22:15:26

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.


Husos Horarios son GMT. La hora en este momento es 03:40:03.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web