‎2007 Jul 09 11:22 AM
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.
‎2007 Jul 10 5:47 AM
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
‎2007 Jul 09 12:23 PM
If you could give details of Dump, it will be helpful
Regards,
manju
‎2007 Jul 10 5:47 AM
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
‎2007 Jul 10 10:34 AM
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.