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

Generate-subpool_dir_full exception while creating dynamic internal tables

john_vinukonda
Explorer
0 Likes
423

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

1 REPLY 1
Read only

ThomasZloch
Active Contributor
0 Likes
340

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