I have copied this program for something that i want to do in my client, my problem is that once I add perform add_complete_line im adding this because i want to add the values for the rest of columns in my alv ( in the case of BCALV_TREE_DEMO the price of the ticket ) however MY program take ages and it finishes with a dump , my table has 34,000 records ( is no that much , isn´t ? ) :
the dump : TSV_TNEW_BLOCKS_NO_ROLL_MEMORY
The internal table "DATA=MT_ITEM_LAYOUT" could not be enlarged further. Memory location: "Session memory" You attempted to extend the data structure for the management of the memory blocks for table "DATA=MT_ITEM_LAYOUT".
However, the 530448 bytes required for
this were no longer available in the specified memory area.
The amount of memory requested is no longer available.
MY CODE :
form add_complete_line using ps_niveis type zfi_enc_niveis p_relat_key type lvc_nkey changing p_node_key type lvc_nkey. data: l_node_text type lvc_value. data: lt_item_layout type lvc_t_layi, ls_item_layout type lvc_s_layi. clear: ls_item_layout, lt_item_layout. REFRESH lt_item_layout. ls_item_layout-fieldname = tree1->c_hierarchy_column_name. ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox. ls_item_layout-editable = 'X'. append ls_item_layout to lt_item_layout. clear ls_item_layout. ls_item_layout-fieldname = 'ZZSISTORIG'. ls_item_layout-alignment = cl_gui_column_tree=>align_right. append ls_item_layout to lt_item_layout. l_node_text = ps_niveis-mkoar. data: ls_node type lvc_s_layn. ls_node-n_image = space. ls_node-exp_image = space. call method tree1->add_node exporting i_relat_node_key = p_relat_key i_relationship = cl_gui_column_tree=>relat_last_child is_outtab_line = ls_niveis i_node_text = l_node_text is_node_layout = ls_node it_item_layout = lt_item_layout importing e_new_node_key = p_node_key. endform. " add_complete_line
Thank you very much for your ideas guys , stay cool.