cancel
Showing results for 
Search instead for 
Did you mean: 

ALV tree is not getting refreshed

Former Member
0 Kudos

Hi Team,

ALV tree is not getting refreshed in not displaying the entire tree structure.

Please provide soln.

Regards

Navin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dude,

Please try this code below.

collect all the top level nodes in internal table GT_NODE_KEY .

DATA: ALL_KEY TYPE LVC_NKEY.

LOOP AT GT_NODE_KEY INTO ALL_KEY .

*gt_final is final internal table for data tree.

IF NOT GT_FINAL IS INITIAL.

CALL METHOD TREE2->EXPAND_NODE

EXPORTING

I_NODE_KEY = ALL_KEY

I_EXPAND_SUBTREE = 'X'.

CALL METHOD CL_GUI_CFW=>FLUSH.

ENDIF.

ENDLOOP.

Regards,

Ravi.

Answers (0)