2007 Dec 22 9:21 AM
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 ?
2007 Dec 22 12:07 PM
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.
2007 Dec 22 9:35 AM
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
2007 Dec 22 12:07 PM
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.