2016 Jul 12 12:00 PM
Hello Gurus,
We are working on a utility program which will parse the ABAP code and provide information about the same. I am aware of the READ REPORT statement which can parse the complete code of a program. But wanted to check if there are other means to access ABAP code like standard classes or APIs provided by standard?
Thanks in Advance!!
Warm Regards,
Raveesh
2016 Jul 12 12:35 PM
There's only the SAP internal (and very limited) statement SCAN ABAP-SOURCE.
(EDIT: and CL_ABAP_COMP* classes, which are also internal and based on SCAN ABAP-SOURCE)
Hello Gurus,
We are working on a utility program which will parse the ABAP code and provide information about the same. I am aware of the READ REPORT statement which can parse the complete code of a program. But wanted to check if there are other means to access ABAP code like standard classes or APIs provided by standard?
Thanks in Advance!!
Warm Regards,
Raveesh
2016 Jul 12 12:35 PM
There's only the SAP internal (and very limited) statement SCAN ABAP-SOURCE.
(EDIT: and CL_ABAP_COMP* classes, which are also internal and based on SCAN ABAP-SOURCE)
2016 Jul 12 2:04 PM
2016 Jul 12 2:13 PM
Hello Horst, Sandra,
Thanks for replying!!
I could find out some of the classes being used in code inspector e.g. CL_CI_SOURCE_INCLUDE, CL_CI_SCAN etc. They provide an interface to parse ABAP program. But they use SCAN ABAP-SOURCE internally it seems. That looks like an alternative to me.
Can you guys please check once and let me know your views.
Thanks & Warm Regards,
Raveesh
2016 Jul 12 2:21 PM
I think only CL_ABAP_COMP* adds an interesting value to SCAN ABAP-SOURCE, but it's more dedicated to analyzing data objects. So, it depends of what you want to achieve.
2016 Jul 12 4:10 PM
I used some internal SLIN classes only once and found them slower than doing it directly and also sometimes lacking a bit behind the latest language features. No problem for SLIN, since it isn´t a compiler ...
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |