Creating your own Code Inspector checks

In this recipe, we will see how we can create our own company specific checks and categories and display them with the standard check categories. For simplicity's sake, we will create a check by the name My Check under a new category My Check category. When this check will run, it will search for the token T512T in the program and will display the number of occurrences and the corresponding line numbers.

How to do it...

Follow these steps:

  1. Call the SAP transaction SE24. Enter the class name CL_CI_CATEGORY_TEMPLATE in the class field and click the Copy button. The screenshot appears as follows:
    How to do it...
  2. Open the new class ...

Get SAP ABAP Advanced Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.