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

Runtime Error in ALV Tree Output

Dear All, I am trying to create a ALV Tree using Class cl_gui_alv_tree. The Report Shows the Output with the first Node but when i try to expand it is dumping with a runtime error GETWA_NOT_ASSIGNED in class CL_ALV_TREE_BASE and method SET_ITEMS_FOR_COLUMN. The Reason being the data which was copied in the initial node display to mt_outtab is getting refreshed.

Can any one of you help me the reason for the table getting refreshed. Do i need to pass any data.

I am doing the following steps.

1. Create Container,

2. Create Tree Class object

3. Generate the Field Catalog.

4. Set table for first display " With empty internal table

5. Generate the Hierarchy

6. Call the Method Frontend Update.

Let me know if i had missed any steps in the process.

Thank you,

Regards,

Swaroop Patri

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2009 at 02:47 AM

    hi ,

    u need to check the relation key field values.

    regards

    Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 23, 2011 at 07:49 AM

    Hi Swaroop,

    I am facing a similar issue. how did you resolve this?

    Regards,

    Amith

    Edited by: Amith Menezes on May 23, 2011 9:49 AM

    Add a comment
    10|10000 characters needed characters exceeded

    • One reason for getting this error is using local defined tables for it_outtab parameter in the below code:

      To get rid of the dump, define two distinct output tables globally: one is an empty table which you will pass to the below method, other one is your real output table whose size increases dependently.

      CALL METHOD go_tree->set_table_for_first_display

      EXPORTING

      is_hierarchy_header = ls_hier_header

      CHANGING

      it_outtab = gt_data_e "Empty table

      it_fieldcatalog = gt_fcat_tree.

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.