Skip to Content
avatar image
Former Member

Hierarchy isplay

Hi folks,

i am trying to display a hierarchial tree display with 3 levels. upto two levels my program is working find. only the problem when add the third level. let me know if there is mistake in the code.

Sample code.

CLEAR node.

node-node_key = 'Root'.

node-isfolder = 'X'.

node-text = GC_SETTOP.

node-dragdropid = ' '.

APPEND node TO node_itab.

*

    • Preare hierarchy set from individula internal tables

    CLEAR :WA_PGROUP.

    LOOP AT I_PGROUP INTO WA_PGROUP WHERE SETNAME = GC_SETTOP.

    CLEAR node.

    node-node_key = WA_PGROUP-SUBSETNAME.

    node-relatkey = 'Root'.

    node-isfolder = 'X'.

    • node-relatship = cl_gui_simple_tree=>relat_last_child.

    node-text = WA_PGROUP-SUBSETNAME.

    node-dragdropid = ' '. "handle_tree. " handle of behaviour

    APPEND node TO node_itab.

    *

    *

    CLEAR: WA_PLEVEL.

    LOOP AT I_PLEVEL INTO WA_PLEVEL WHERE SETNAME = WA_PGROUP-SUBSETNAME .

    CLEAR node.

    node-node_key = WA_PLEVEL-SUBSETNAME.

    node-relatkey = WA_PGROUP-SUBSETNAME.

    node-isfolder = 'X'.

    node-relatship = cl_gui_simple_tree=>relat_last_child.

    node-text = WA_PLEVEL-SUBSETNAME.

    node-dragdropid = handle_tree. " handle of behaviour

    APPEND node TO node_itab.

    endloop.

    endloop.

    Add comment
    10|10000 characters needed characters exceeded

    • Follow
    • Get RSS Feed

    1 Answer

    • avatar image
      Former Member
      Aug 09, 2007 at 01:01 PM

      I think you have the WRONG forum buddy!

      Add comment
      10|10000 characters needed characters exceeded