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

internal table inside selection.

Former Member
0 Likes
548

I have a table with field names.

I would like to select the field names from the table and dynamically build internal table with those fields.Something like:

SELECT field_names

FROM fields_table .

"...Here I want to build internal table

and append field_name to the structure the internal table..."

ENDSELECT.

How can I do it ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
524

DD03L is the table you are looking for.

However, the practice of appending to an ITAB between SELECT and ENDSELECT is not a good programming procedure. You should use the addition INTO TABLE "internal_table" instead.

award points if helpful.

2 REPLIES 2
Read only

Former Member
0 Likes
524

while declaring the int tab use INCLUDE STURCTURE <tab_name>. but not in btween select/endselect.

Data begin of itab.

include structure <table_name>.

data end of itab.

Reward if useful

Thanks

ANUPAM

Read only

Former Member
0 Likes
525

DD03L is the table you are looking for.

However, the practice of appending to an ITAB between SELECT and ENDSELECT is not a good programming procedure. You should use the addition INTO TABLE "internal_table" instead.

award points if helpful.