Skip to Content
author's profile photo Former Member
Former Member

Wrong index being returned after the use of delete_subtree in ALV tree

Hi Experts,

I am using an ALV Tree. On some user action, i have to delete the nodes in the tree for which i use delete_subtree method of class CL_GUI_ALV_TREE.

The problem is that after deleting the nodes using this method, whenever, i select any node which was after the deleted node, the node index returned is incorrect. The node index being returned is the index before the deletion of the upper node.

Could you please help me so that i get the correct node index after using the delete_subtree method.

Your help is highly appreciated.

Thanks/Regards,

Himanshu Aggarwal.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 24, 2012 at 02:01 PM

    Please check if you are executing 'FRONTEND_UPDATE' method after deleting tree or not..

    It is an instance method of CL_GUI_ALV_TREE, inherited from super class.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2012 at 07:22 AM

    Thanks Krishnendu for your prompt response but i was using the frontend_update method already..

    I have solved the problem myself.

    Thanks/Regards,

    Himanshu.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.