Skip to Content
Technical Articles
Author's profile photo Olga Dolinskaja

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

UPDATE: This functionality is also supported and recommended on-premise with SAP S/4HANA 2022 release

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.

 

Assigned Tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Erik Hansen
      Erik Hansen

      Hi Olga,

      I found that there are some checks in SAP GUI Code Inspector that are missing in Eclipse. How can I manage checks to have them displayed?

      For instance, PERFORMANCE checks in red boxes in SAP GUI Code Inspector are missing in  Eclipse:

      Author's profile photo Olga Dolinskaja
      Olga Dolinskaja
      Blog Post Author

      Hi Erik,

      we currently enabled in the SAP BTP ABAP environment only the ATC checks, which belong to the default check variant. All other checks must be reviewed, if they make sense for the SAP BTP ABAP environment.

      KInd Regards,

      Olga.

      Author's profile photo Praveen Varriam
      Praveen Varriam

      Hi Olga,

      Good information!

      I was wondering if we can use SAP BTP ATC as a central system for ECC to S/4HANA on-premise (1709, 1809, 1909, 2020, 2021) readiness check.

      If yes, how to import the check variants in the SAP BTP ATC ABAP environment?

      Thanks!

      Praveen

      Author's profile photo Olga Dolinskaja
      Olga Dolinskaja
      Blog Post Author

      Hi Praveen,

      yes, you can use (and it is recommended by SAP!) Custom Code Migration app, running in the SAP BTP ABAP Environment to check on-premise ERP systems for SAP S/4HANA readiness. All necessary check variants (for 1709-2022 releases) are provided there, just choose the appropriate "Target Release" in the app. Please see the blog https://blogs.sap.com/2019/02/27/custom-code-analysis-for-sap-s4hana-with-sap-fiori-app-custom-code-migration

      Best regards,

      Olga.

      Author's profile photo Praveen Varriam
      Praveen Varriam

      Thank you Olga for your comments. I could now able to set up the BTP ATC as a central system for multiple systems to do readiness checks.

      Thanks and Regards,

      Praveen.