I create a new function modul in abap which should return a list of the data element AGVAL
.
AFAIK there are two ways now:
- I use an already available table type
- I create a new table type
How to do this kind of introspection? I would like to now if there is already a table type with one column, which is of type AGVAL?
I don't know any option else but using SQL to query the ABAP dictionary directly.
For instance, this query extracts all table types having a structure whose first component has the data element
SO_TEXT255
(and which is not embedded in a nested structure) :Of course, it doesn't restrict to structures with only this one component but you may adapt it a little bit.