‎2010 Aug 04 4:47 PM
Dear All,
Am getting the subject exception while creating dynamic internal tables. Can you please let me know how to handle this?
I an using the following code....
loop at....
unassign <apptab>
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = ddic_structure
CHANGING
ct_fieldcat = lt_fcat_app
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt_fcat_app
IMPORTING
ep_table = tabref
EXCEPTIONS
generate_subpool_dir_full = 1
others = 2.
if sy-subrc eq 0.
ASSIGN tabref->* TO <apptab>.
else.
exit.
endif.
endloop.
Please share your concerns...
Regards,
John
‎2010 Aug 04 4:55 PM
I think method create_dynamic_table uses GENERATE SUBROUTINE POOL somewhere deep down, and there is a limit of 36 of such pools in one internal mode.
There are better means of creating dynamic internal tables in newer releases, please search for keyword RTTC.
Thomas