3 weeks ago - last edited 3 weeks ago
Hello,
I am looking for a solution to determine the structure / components of a class.
Regarding "structure and/or components" I mean for example local classes or test classes of a global class!
I do NOT want to analyze attributes or methods by using a type descriptor.
So I guess that tables exist where such information CCAU, CCDEF etc. are stored...
Can anyone give me a hint, in which tables such information is stored?
I would start retrieving the class name of a global class by reading table TADIR.
Maybe there is a "static" variant of a solution by reading several tables or a "dynamic" variant by using any kind of RTTI?
BR
My solution looks at the moment kind of like this:
" 1. Select necessary records of TADIR table
SELECT
FIELDS *
FROM tadir ...
" 2. Get name of include for test classes
DATA(test_classes) = cl_oo_classname_service=>get_ccau_name( ).
" 3. Read source code of include to check if test classes exist or not
READ REPORT test_classes INTO source_code_test_classes.
" 4. Check if test classes exist
Now I am wondering if there is a simpler way to check if test classes exist in the include instead of parsing its whole source code...
Maybe there is another database table aswell where a marker for each local test class is stored?
Maybe anything like the ZCL_....=CMETH=001 for class methods also for test classes exists ZCL_...=CCUA001?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.