Skip to Content
Technical Articles

How to create and use your own ATC check variant in SAP BTP ABAP Environment

For the ATC execution in the SAP BTP ABAP Environment, we currently offer some standard ATC check variants.

But surely, you may want to create your own ATC check variants as you can do it in your on-premise SAP systems to bundle ATC checks as it is suitable for your own development use case. It became possible with SAP BTP ABAP Environment 2105.

If you want to create your own ATC check variant in SAP BTP ABAP Environment, you can either create it from scratch or copy and change an existing ATC check variant delivered by SAP.

Create an ATC check variant from scratch

To create an ATC check variant just create a new ABAP Repository object (New->ABAP Repository Object or “Ctrl + Shift + N”) “Check Variant” under the “ABAP Test Cockpit” category:

After clicking the Next button enter the Name and the Description of your new ATC check variant and choose Finish:

This is how the new ADT in Eclipse editor for an ATC check variant looks like. The checks are grouped by categories as you know it from the Code Inspector. Now you can select the checks which you want to use in your variant by clicking on the respective check boxes:

For each ATC check you can change its parameters or description and switch on the bottom between the Parameters and Documentation views to see the details:

After you have selected and adjusted (if necessary) the required ATC checks save and activate your new ATC check variant. It is ready to use.

If you now execute ABAP Test Cockpit (context menu Run As ->ABAP Test Cockpit with….) your newly created ATC check variant will appear under the selection of available check variants and you can choose it:

The ATC run analyzes your source code using your new ATC check variant and you can see the results in the ATC Problem View as usual:

Create an ATC check variant by copying and changing an SAP ATC check variant

Open an existing SAP ATC check variant, which you want to adapt to your needs, e.g., the default ATC check variant for developments in the SAP BTP ABAP Environment ABAP_CLOUD_DEVELOPMENT_DEFAULT (“Open ABAP Development Object (Ctrl + Shift + A)”):

Create a copy of it by using the “Duplicate” context menu in the Project Explorer:

and copying it, for example, into your local package:

Now you can modify this ATC check variant: add or remove some checks, add your own checks, or change parameters of a check. In the example below, some Cloud Readiness checks are added:

By the way: Your newly created ATC check variant can be now also selected in the ATC Configurator app if you want to configure it later, for example: change ATC check priorities or configure transport settings:

You can use your new ATC check variant to check your custom development in SAP BTP ABAP Environment or if you want to run remote ATC checks in your on-premise SAP system.

 

Be the first to leave a comment
You must be Logged on to comment or reply to a post.