Skip to Content
0
Jun 26, 2009 at 09:17 AM

Get the fieldnames of a generic internal table or work area

456 Views

Hi All,

I have one generic work area which I have created in the below manner...

* ET_DATA itself is a generic table of type ANY...can have any internal table data in it.

* Create dynamic internal table
  CREATE DATA lv_new_table LIKE et_data.
  ASSIGN lv_new_table->* TO <fs_dyn_table>.

* Create dynamic work area and assign to fieldsymbol.
  CREATE DATA lv_new_line LIKE LINE OF <fs_dyn_table>.
  ASSIGN lv_new_line->*   TO <fs_dyn_wa>.

Now...I need to get the field names of this dynamic internal table or work area..

I have already searched in forum...got many answers..but none them gives me the output.

Please note that I require the field names and not field position..

Awaiting your suggestions on how to get field names of this dynamic work area...