Dynamicaly created internal tables based on Select

Question: Hello
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 ?

Answer:
DD03L is the table you are looking for.

However, the practice of appending to an ITAB between SELECT and ENDSELECT is frowned upon. You should use INTO TABLE instead.
_________________
Sudhi Karkada

Answer:
http://sapfans.com/forums/search.php?sid=e6a26fc417adf60628d3c53fd5d7ae78
_________________
First he pinches my sig, Now he's cribbing my posts too!
Copyright ?2007 - 2008 www.jt77.com