Read ATC Results and Display on ALV Programmatically in ABAP
For code quality ABAP programmers use ATC checks (ABAP Test Cockpit tool). In this ABAP tutorial, I will show how to get list of ATC check findings for a given set of ABAP objects and display ATC results on an AVL display object. ABAP developers can use ATC results as a KPI for their ABAP programming process.
To get most recent ATC results, ABAP programmers can use function module /SDF/CC_ATC_RESULTS (ATC and CI code integration for AdHoc reporting).
In order to limit ATC results to display on ALV and read only ATC findings which are related a selected list of ABAP objects, first ABAP programmers can choose target objects from SAP table TADIR (Directory of Repository Objects) then within an ABAP Loop related ATC errors are selected.
When all related ATC errors are collected in an internal table, ABAP programmers can use cl_demo_output=>display class method to display and output data.
When you run above ABAP code, the results will be as seen in below screenshot. Summarized ATC data includes the ABAP object name and its type, the author of the ABAP object and its package. Additionally, the number of ATC findings categorized by its priority like high, medium and low.