Hello everybody
I am trying to loop on all structure's fields of table T000 (as an example) and get the technical names of the fields and their attributes. I found some code in an old post but it is erroring out as tabname is not recognized.
Any help is appreciated.
Here is the original post : https://answers.sap.com/questions/2284467/looping-on-abap-structure%27s-fields.html
Thanks
Omar
REPORT ZMY_ALV_9.
data: lst_dd07l LIKE dd07l,<br>lt_dd07l LIKE STANDARD TABLE OF lst_dd07l INITIAL SIZE 0.<br>field-symbols: <lfs_field>.<br>select * from dd07l into table lt_dd07l where tabname = T000.<br>loop at lt_dd07l into lst_dd07l.<br>ASSIGN (lst_dd07l-fieldname) OF STRUCTURE T000 TO <lfs_field>.<br>endloop.