Hi all,
I'm walking in circles for a while tying to figure it out what is wrong in my ALV tree. I have a report that is working properly and I checked out the messages in the SDN to find the answer to my question. I copied and pasted from the working report to the not working one all the error pointed in the discussions opened in here and it is still not working.
So, I do hope that someone knows what is that:
1) The fieldcatalog is genarate dinamically using a type in declarations.
2) container declarations and set ups: CREATE OBJECT l_custom_container & CREATE OBJECT tree1
3) Table reference, titles, logo, background being created by CALL METHOD tree1->set_table_for_first_display
4) Hierarchy being created using CALL METHOD tree1->add_node
5) CALL METHOD tree1->update_calculations.
6) CALL METHOD tree1->frontend_update.
I can see the first screen perfectly, when I try to opend the 1st level I got this dump:
Runtime Errors GETWA_NOT_ASSIGNED
ABAP Program CL_ALV_TREE_BASE==============CP
Short text
Field symbol has not yet been assigned.
METHOD: SET_ITEMS_FOR_COLUMN (CL_ALV_TREE_BASE)
assign mt_outtab->* to <tab1>.
" assign local copy of initial line of <tab1> to <wa>.
create data l_dref_wa like line of <tab1>. ******************* The error is here
assign l_dref_wa->* to <wa>.
I am using CALL METHOD tree1->set_table_for_first_display to set up mt_outtab->*
Just to make it really clear. I copied and paste it from another program that is working. It was working before and I made some changes, including a new field on the type declarations used to generate fieldcat, and it stopped to work.
Does anyone had this same problem before and know how to fix it or what am I missing or am I doing wrong?
I really want to understand what is wrong in here...
Thanks a million.
Regards,
Andréa