Application Development 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: 

internal table inside selection.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.