Skip to Content
0
Former Member
Feb 19, 2009 at 12:28 PM

How to expand a Root-Element in ALV-Tree?

37 Views

Hi,

i use ALV-Tree and try to expand the first hierarchie.

I try this:

  TRY.
      GR_TREE_NODE = GR_TREE_NODES->ADD_NODE(
        RELATED_NODE = ROOT_KEY
        *EXPANDER     = ABAP_TRUE*
        RELATIONSHIP = CL_GUI_COLUMN_TREE=>RELAT_FIRST_CHILD
        TEXT         = 'Meldungen').
    CATCH CX_SALV_MSG.
  ENDTRY.

but this element will not be expandet?

I know this for expand all: CALL METHOD GR_TREE_NODES->EXPAND_ALL.

but want to expand only the first hierarch-elemet (root).

Can anyone tell me what i'm doing wrong?

Thanks.

Regards, Dieter