How to write an ATC Check (SAP_BASIS=7.52)

The ABAP test cockpit (ATC) is an important framework for carrying out static checks of ABAP source code and ABAP dictionary objects. In this document, you will learn how to write your own ATC check to analyze source code and how to ensure it is able to be carried out remotely. This document is valid for SAP NetWeaver AS ABAP 7.52 release. Download the Document

How to write an ATC CheckA brief introduction.PUBLIC
The ATC is an important framework for carrying out static checks of ABAP source code and ABAPdictionary objects.A major use case is to carry out these static checks remotely: The checks are supposed to run on acentral test system that gathers all necessary information remotely from the systems on which theobjects to be tested are located. The remote scenario allows a check system running the newestrelease to run its checks against a system running an older release.In the following, you will learn how to write your own check to analyze source code and how toensure it is able to be carried out remotely.TABLE OF CONTENTSPreliminaries .................................................................................................................................................................. 4Creating a check class ................................................................................................................................................. 41. Checks based on CL_CI_TEST_ABAP_COMP_PROCS ...................................................................... 52. Checks based on CL_CI_TEST_ROOT .............................................................................................. 53. Checks based on CL_CI_TEST_SCAN .............................................................................................. 5Implementing your check .......................................................................................................................................... 6Setting up attributes of your check ................................................................................................................... 6Registering checked object types ...................................................................................................................... 7Defining the messages of your check ................................................................................................................ 7Statically unknown T100 messages ................................................................................................................... 8The RUN method ................................................................................................................................................ 9The ANALYZE_PROC method .......................................................................................................................... 10Reporting a finding .......................................................................................................................................... 11Reporting a finding directly via INFORM.......................................................................................................... 12Reporting a finding for statically unknown T100 messages ............................................................................ 14Verification of test prerequisites ..................................................................................................................... 14Activating your check ...................................................................................................................................... 15Allowing configurable settings for your check ................................................................................................ 15Results and result classES ........................................................................................................................................ 17Short texts and long texts ................................................................................................................................ 17