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

My Own BCALV_TREE_DEMO

Hello Abapers,

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2011 at 04:31 PM

    Hi

    Yes I think the data you are trying to upload in the ALV tree are too much, your program is exceeding the memory size available, so that dump occurs.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      No

      I don't think....yes it can ask to your basis to increase the memory available for a report...but I don't know if it's a good idea.

      Anyway I don't believe a tree ALV output is the best solution to display a very large number of record, it doesn't sound good.

      Max

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.