Skip to Content
Former Member
Aug 10, 2007 at 05:43 AM

Getting table metadata?



As I've stated before, I'm a new ABAP developer, so this may be an easy question for experienced devs. Most of my work consists of maintaining old code and provide bug fixes. My biggest problem is that I'll see select statements from tables that I have no idea what they are used for.

I'd like to generate some automatic documentation for the tables, so that I can reference it at a later time. Word document, HTML, or something like a personal JavaDoc (but for tables). The thing is, I want to be able to easily search them.

So, I came up with the idea of dumping table metadata from the database into an XML file and then with a simple script, generate the documentation.

Are there any functions that can return the names of all tables? Is there any function that can give me all column names for a given table? Lastly, is there any function that can return column type info, description, and anything else that might help me understand the fields?

I have an additional question:

Where can I get a list of all ABAP functions? I've searched the SDN but all I get are 'Getting Started' kind of tutorials/blogs. I can hit 'F1' and get the help on the system. But I'm trying to get a feel for the language by studying at night and I currently don't have Netweaver here. I thought about buying "The Official ABAP Reference", but I'm trying to find a less expensive solution.