Application Development 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: 

Runtime Error in ALV Tree Output

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi ,

u need to check the relation key field values.

regards

Prabhu

3 REPLIES 3

Former Member
0 Kudos

hi ,

u need to check the relation key field values.

regards

Prabhu

former_member198445
Participant
0 Kudos

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

0 Kudos

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.