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

add_node / delete_subtree methods issue in ALV TREE with OOs

SimoneMilesi
Active Contributor
0 Likes
651

Hi all!

I got a strange issue with the ADD_NODE / DELETE_SUBTREE methods in an ALV-Tree with OOs.

In my Tree, after an user pushes the "A" button, i add some nodes without a problem.

If an user pushes the "B" button, i delete these nodes.

I can make this thing only once, because if the user push again the "A" button, the program add again the nodes, but when try to delete them i got this message

Exception condition "NODE_KEY_NOT_IN_MODEL" raised.

I debugged the program but i didn't find any difference between the first time i add/delete nodes and the second time.

Anyone has a good hint for the problem? :S

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
543

Hello Simone

Without any line of coding it is difficult to analyze the error.

Do you have sample report BCALV_TREE_DEMO available in your SAP system? If so then have a look at its coding. It contains two additional toolbar functions for adding and deleting nodes without any problems.

Regards

Uwe

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
544

Hello Simone

Without any line of coding it is difficult to analyze the error.

Do you have sample report BCALV_TREE_DEMO available in your SAP system? If so then have a look at its coding. It contains two additional toolbar functions for adding and deleting nodes without any problems.

Regards

Uwe

Read only

Former Member
0 Likes
543

Hi,

I think this type of error u would get when system cant get Parent node key.So when adding or deleting node plz check node key under which u are inserting or deleting . i think it would help u.

Reward point if find usefull.

Regards,

Mayank

Read only

SimoneMilesi
Active Contributor
0 Likes
543

I solved it using a little trick that avoid me to add/delete nodes