Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV tree problem in refreshing ( get a dump when refresh) ?

Former Member
0 Likes
696

hi gurus,

In my program I use ALV tree to display the data like :

Root

Child 1

Child 1 1

Chiild 1 2

Child 2

Child 2 1

Child 2 2

....................................

When I refresh data ( internal table) , If there's no new node ( for example : add child 3) , It 's OK but if there's new record in the internal table ,,,when refresh there will be a dump... in my opinion, The new node must have a new node key? But I do not find a solution...

Could you please help me?

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
539

Hi,

If you are using CL_GUI_ALV_TREE.

CALL METHOD TREE1->EXPAND_NODE

EXPORTING

I_NODE_KEY = ALL_KEY

I_EXPAND_SUBTREE = 'X'.

'ALL_KEY' is the root node of the tree.therfore will refresh the whole tree, with subtree thus it may solve your problem.

Try the code .

thanks and regards

Aditi Wason

2 REPLIES 2
Read only

Former Member
0 Likes
539

Hi TinhLangTham ,

you cumulute call of your dynpro.

DYNP1 --> Action --> Call again DYNP1 --> action --> Call again DYNP1

and when you leave or anything else, you will need to close 3 times DYNP1.

have a look where you call and how, the screen.

or you can choose the other way

refer to to CL_GUI_ALV_TREE and not CL_GUI_ALV_GRID.

In CL_GUI_ALV_TREE REFRESH_TABLE_DISPLAY is a private method.

try using method FRONTEND_UPDATE of CL_GUI_ALV_TREE .

Regards

Saurabh goel

Read only

Former Member
0 Likes
540

Hi,

If you are using CL_GUI_ALV_TREE.

CALL METHOD TREE1->EXPAND_NODE

EXPORTING

I_NODE_KEY = ALL_KEY

I_EXPAND_SUBTREE = 'X'.

'ALL_KEY' is the root node of the tree.therfore will refresh the whole tree, with subtree thus it may solve your problem.

Try the code .

thanks and regards

Aditi Wason