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

dynamic internal table problem

Former Member
0 Likes
316

Hello everyone...

I am facing a problem with the dynamic internal table..


ref_table_desc ?=
                cl_abap_typedescr=>describe_by_name( v_tablename ).

    it_details[] = ref_table_desc->components[].

    loop at it_details into wa_details.
      wa_fieldcat-fieldname = wa_details-name.
      wa_fieldcat-datatype = wa_details-type_kind.
      wa_fieldcat-inttype = wa_details-type_kind.
      wa_fieldcat-intlen = wa_details-length.
      wa_fieldcat-decimals = wa_details-decimals.

      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
      clear wa_details.
    endloop.

    call method cl_alv_table_create=>create_dynamic_table
      exporting
        it_fieldcatalog = it_fieldcat
      importing
        ep_table        = dyn_table.

    assign dyn_table->* to <dyn_table>.
    create data dyn_line like line of <dyn_table>.
    assign dyn_line->* to <dyn_wa>.

    select * into table <dyn_table>
             from (v_tablename)
           where jobid eq v_jobid.

the select statment in the above code is going to dump ...the dump message is

With ABAP/4 Open SQL array select, the output table is too small

could any one please help me out in solving this problem

thanks and regards

chandu reddy sunkari

1 ACCEPTED SOLUTION
Read only

Former Member
1 REPLY 1
Read only

Former Member