Our company provides ABAP system analysis services offline. That is, a system's ABAP code is extracted and sent to us as XML. We analyze the system with a tool written in Java. Personally, I'm not an ABAP expert.
One upcoming task is building a class inheritance graph. One could certainly do that based on the XML. But as ABAP provides the RTTS/RTTI, why not using it? My idea is:
- Write an ABAP program that queries the RTTI and extracts the full class hierarchy
- Send the result as XML and provide an interface to access that information (not part of this question)
Now my question: Does the first point sound like a good/feasible idea? Any are there any pitfalls, e.g., performance bottlenecks?
This should be easy as long as you restrict your analysis to global classes. Local classes and class hierarchies provide a challenge: They can be part of any kind of program and are not easily discovered. You'd have to examine a vast number of programs for potential candidates, and that can be very time-consuming. Other than that, it's a perfectly viable idea.