Skip to Content
0
Former Member
Nov 27, 2008 at 11:51 AM

ALV TRee Expand nodes

1451 Views

I have a requirement.... I am using the alv tree... I do some functions like delete recost...

Then press save... Changes are seen... Everything is perfect... But when I press save the nodes shrinks.. to half bu the total appears... Sub compoenents does not appears..

If I press the save also the nodes should be refreshed and should be as it is....

I have used the following codes....

Can anybody help...

*-Save

WHEN 'ZSAVEXBOM'.

PERFORM CHECK_AND_SAVE_XBOM

USING ' '

CHANGING L_RETURN_CODE.

PERFORM REFRESH_TREE.

DATA: L_NODE_KEY TYPE TV_NODEKEY,

L_TREE_LEVEL TYPE I.

*

L_NODE_KEY = 1.

CALL METHOD G_TREE->EXPAND_NODE

EXPORTING

I_NODE_KEY = L_NODE_KEY

I_LEVEL_COUNT = L_TREE_LEVEL

EXCEPTIONS

FAILED = 1

ILLEGAL_LEVEL_COUNT = 2

CNTL_SYSTEM_ERROR = 3

NODE_NOT_FOUND = 4

CANNOT_EXPAND_LEAF = 5

OTHERS = 6.

The program goes to dump when I included this expand node method...

Is there anyway to keep the nodes as it is...

I would appreciate.... and thanks in advance...