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

Move dynamic deep internal table to another dynamic table

Former Member
0 Likes
1,177

Hi Experts,

I have to create dynamic Internal table with a deep table which is also dynamic. I am using

cl_alv_table_create=>create_dynamic_table for the same. But for creating a deep table, it is required to pass the data dictionary structure as reference table/field. Since my deep table is also determined at runtime, I can't pass them as reference while creating the fieldcatalog.

Below is the final table I want as output.

The header fields (vbeln, wadat, vstel, kunnr) are determined at runtime. The item fields of the deep table products (matnr, lfimg, meins) are also determined at runtime only. How do I create such a table through ABAP code ?

Thanks,

Afroz

1 ACCEPTED SOLUTION
Read only

Former Member
1,021

Instead of CL_ALV_TABLE_CREATE use well-documented RTTS classes. Method CREATE/GET of CL_ABAP_TABLEDESCR should do the job.

BR,
Gábor

Hi Experts,

I have to create dynamic Internal table with a deep table which is also dynamic. I am using

cl_alv_table_create=>create_dynamic_table for the same. But for creating a deep table, it is required to pass the data dictionary structure as reference table/field. Since my deep table is also determined at runtime, I can't pass them as reference while creating the fieldcatalog.

Below is the final table I want as output.

The header fields (vbeln, wadat, vstel, kunnr) are determined at runtime. The item fields of the deep table products (matnr, lfimg, meins) are also determined at runtime only. How do I create such a table through ABAP code ?

Thanks,

Afroz

1 REPLY 1
Read only

Former Member
1,022

Instead of CL_ALV_TABLE_CREATE use well-documented RTTS classes. Method CREATE/GET of CL_ABAP_TABLEDESCR should do the job.

BR,
Gábor