Application Development and Automation 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: 
Read only

Issue in using CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE

Former Member
0 Likes
479

Hi,

I am using CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE to create dynamic internal table. I am displaying a tree in the output, based on the value selected in the tree, dynamic internal table is generated. If I continuously select the tree value for more than 36 times. This method is giving me a dump.

Kindly help me in resolving this issue.

Thanks in advance.

Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
451

Hi,

As per <b>OSS 422930</b> The method possible for 36 times.

<removed_by_moderator>

Regards

Edited by: Julius Bussche on Aug 20, 2008 5:48 PM

3 REPLIES 3
Read only

Former Member
0 Likes
451

If you could give details of Dump, it will be helpful

Regards,

manju

Read only

Former Member
0 Likes
452

Hi,

As per <b>OSS 422930</b> The method possible for 36 times.

<removed_by_moderator>

Regards

Edited by: Julius Bussche on Aug 20, 2008 5:48 PM

Read only

athavanraja
Active Contributor
0 Likes
451

once you build the field catalog use the following code to create the itab. this doesnt have the limitation of 36

data: struct_type type ref to cl_abap_structdescr,
tab_type type ref to cl_abap_tabledescr ,
      comp_tab type cl_abap_structdescr=>component_table,
      comp like line of comp_tab,
      dref type ref to data ,
      dref1 type ref to data ,
      op_len type i .     

 clear: comp , comp_tab ,is_fieldcat .
      refresh comp_tab .

      loop at it_fieldcat into is_fieldcat .
        clear op_len .
        op_len = is_fieldcat-outputlen .
        comp-name = is_fieldcat-fieldname.
        comp-type = cl_abap_elemdescr=>get_c( op_len ).
        append comp to comp_tab.
        clear : is_fieldcat , comp .
      endloop .

      clear struct_type .

call method cl_abap_structdescr=>create
  exporting
    p_components = comp_tab
    p_strict     = cl_abap_structdescr=>false
  receiving
    p_result     =  struct_type .

*      struct_type = cl_abap_structdescr=>create( comp_tab ).
      clear tab_type .
      call method cl_abap_tabledescr=>create
        exporting
          p_line_type  = struct_type
          p_table_kind = cl_abap_tabledescr=>tablekind_std
*    P_UNIQUE     = ABAP_FALSE
*    P_KEY        =
*    P_KEY_KIND   = KEYDEFKIND_DEFAULT
        receiving
          p_result     = tab_type .

      create data dref1 type handle tab_type.