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

How to create a structure from dynamiclly created internal table

jayesh_mudaliar
Explorer
0 Likes
1,113

The requirement is like that I will maintain entries in a Ztable. Now for each and every entry there should b a column in an internal table.

For that I have created a dynamic internal table where I got the structure from the table using field symbols, after that i used include structure statement which is giving me error.

Now my only question is if it is not the right way den how to do this.

Regards

Jayesh Mudaliar

1 ACCEPTED SOLUTION
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
985

For real dynamic type determination and type creation you use RTTS.

INCLUDE STRUCTURE is evaluated at compile time.

The requirement is like that I will maintain entries in a Ztable. Now for each and every entry there should b a column in an internal table.

For that I have created a dynamic internal table where I got the structure from the table using field symbols, after that i used include structure statement which is giving me error.

Now my only question is if it is not the right way den how to do this.

Regards

Jayesh Mudaliar

2 REPLIES 2
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
985

What's the error?

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
986

For real dynamic type determination and type creation you use RTTS.

INCLUDE STRUCTURE is evaluated at compile time.