2007-03-21

Displaying a tree in a list

data: gt_mytree type snodetext occurs 0,
      gw_mytree type snodetext.

  gw_mytree-name = 'Verwendungsnachweis'(001).
  gw_mytree-tlevel = 1.
  APPEND gw_mytree TO gt_mytree.
* ... * Create the whole tree here by filling gt_mytree * ...
  CALL FUNCTION 'RS_TREE_CONSTRUCT'
    TABLES
      nodetab                  = gt_mytree
   EXCEPTIONS
     tree_failure             = 1
     id_not_found             = 2
     wrong_relationship       = 3
     OTHERS                   = 4.

  CALL FUNCTION 'RS_TREE_LIST_DISPLAY'.

No comments:

Post a Comment