Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
OlgaDolinskaja
Product and Topic Expert
Product and Topic Expert
6,952

As you for sure already know, using the remote code analysis with the central ABAP Test Cockpit (ATC) check system is the essential prerequisite for static quality assurance of your private cloud (or on-premise) developments.

While keeping in mind SAP alignment on cloud strategy and the advantages of the cloud solutions for our customers like takeover by SAP of upgrade, system maintenance and operations tasks under the retention of continuous and regular feature delivery, we decided to enable central ATC quality checking for on-premise developments using the SAP BTP, ABAP environment.

Some of you have already used Custom Code Migration app in the SAP BTP, ABAP environment to check your ABAP code in SAP Business Suite systems for SAP S/4HANA readiness during SAP S/4HANA system conversion or for cloud readiness. Over and above that to enable central ATC quality checking in the cloud for on-premise landscapes we have delivered further essential capabilities for using ATC in the cloud like support of classic ATC custom code analysis projects in the Custom Code Migration app, configuration via the ATC Configurator app, management of custom ATC check variants in ABAP development tools for Eclipse and more.

With SAP BTP, ABAP environment 2311 (November 2023 release) we have rounded off the feature scope of the cloud ATC with such indispensable capabilities like developer scenario for using a central ATC cloud system during your on-premise development tasks, and robust exemption workflow.

Learn in this blog how you can use a central ATC quality checking in the cloud for your on-premise landscapes.

 

PLEASE NOTE: after custom code analysis you can stop your SAP BTP, ABAP environment system to save the costs, if the system is temporarily not used. Learn how to do it in this blog SAP BTP ABAP Environment - Manage system hibernation.

Prerequisites

You need to purchase the entitlement to SAP BTP ABAP Environment. For more details see SAP BTP, ABAP environment in SAP Discovery Center or SAP BTP, ABAP environment in the SAP Store.

Technical Setup

With CIAS guided workflow (recommended)

SAP recommends to use for the setup of the Custom Code Migration app the Cloud Integration Automation Service (CIAS), which provides a guided workflow for simpler and faster setup and configuration.

1. First you would need to subscribe to CIAS on SAP BTP and activate it. See the blog How to activate Cloud Integration Automation Service on Cloud Foundry or CIAS User Guide in the SAP Help Portal documentation.

2. Execute CIAS guided workflow, which will prepare your on-premise system for remote code analysis, set up SAP BTP, ABAP environment and RFC connection between the SAP BTP subaccount and the on-premise SAP system across the SAP Cloud Connector and enable Custom Code Migration app. See also for more details the blog Start a scenario integration workflow with Could Integration Automation Service on Cloud Foundry (BT..., containing the Custom Code Migration app as a chosen scenario.

Manual

For manual setup you would need to execute the following steps:

1. First for your on-premise SAP system you need to apply the SAP Notes mentioned in SAP Note 2364916 for the Checked System (Recommended SAP Notes for using ATC to perform remote analysis) and apply the SAP Note 2599695 (Custom Code Migration app: Remote Stubs for the Checked System).

2. After that you have to set up your SAP BTP, ABAP environment. Use a Booster to Automate the Setup of the ABAP Environment.

3. Afterwards you must enable the Custom Code Migration app in the SAP BTP, ABAP environment to check your SAP on-premise system. Use SAP documentation on SAP Help Portal Enable Usage of the Custom Code Migration App.

Now you can start the the Custom Code Migration app on your SAP Fiori Launchpad in the SAP BTP and create your first project.

Setup of developer scenario 

If you as an ABAP developer in an on-premise SAP system want to check your code during the development process using ATC checks from the central ATC check system in the SAP BTP, ABAP environment then you should set up developer scenario in addition.

See the SAP Help Portal documentation Configuring the ATC Developer Scenario for more details.

How to execute custom code analysis for on-premise system

Custom Code Migration app, which is the SAP recommended tool for analysis of your custom code for SAP S/4HANA and cloud, supports also classic custom code analysis projects.

If you press Create button in the Custom Code Migration app you can now select a custom code analysis project:

Then you can enter the project data and select an ATC check variant. In order to check your custom code in the remote on-premise system (as shown on the screenshot below) you need to use remote-enabled ATC check variant and enter the connection to your remote system.

Under the Advanced Configuration you can restrict custom code analysis and choose the packages you want to analyze:

After you saved your custom code analysis project, ATC will execute custom code analysis and you can examine your ATC results under the Analysis tab by clicking the Analyze Findings button or by clicking directly on the reported “Number of Findings” in the project:


How to execute CVA checks in the cloud

You can also execute SAP Code Vulnerability Analyzer (CVA) checks for your custom code using the custom code analysis project of the SAP Fiori Custom Code Migration app. Using SAP CVA in the SAP BTP, ABAP environment is included at no additional licensing fee.

It works as following. Use Create button in the Custom Code Migration app and select a custom code analysis project:


Then enter the project data and select the ATC check variant SLIN_SEC. Choose as location of your custom code your remote on-premise system and enter the connection to this system:


After you saved your project data, the custom code analysis will be executed and afterwards you can see the results as usual, for example by clicking on the Number of Findings:


In the Findings list you will get the results of all CVA checks executed for your custom code:

 

How to set up your own ATC check variant

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.

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.

More details in the blog How to create and use your own ATC check variant in ABAP Development Tools for Eclipse.

How to implement your own ATC checks

Some of you may not only want to configure the ATC checks delivered by SAP and bundle them to custom ATC check variants but are eager to write own ATC checks.

More details how to do it in the blog How to create your own ATC check in ABAP Development Tools for Eclipse.

How to configure ATC in the cloud

If you want to configure the ATC according to your needs for example, set your default ATC check variant, adjust the ATC check messages priorities, set priority levels that block or interrupt transport releases and so on, the SAP Fiori App ABAP Test Cockpit Configurator allows you to maintain ATC configurations for the cloud based on ATC check variants.

More details in the blog How to configure ABAP Test Cockpit (ATC) in the cloud.

How to check your code during development in an on-premise system

As an ABAP developer in an on-premise SAP system you can check your code during your development process using the ATC checks from the central ATC in the SAP BTP, ABAP environment and request exemptions as needed.

More details in the blog How to use ABAP Test Cockpit (ATC) in the cloud as a developer in an on-premise system.

How to handle ATC exemptions

As an ABAP developer in an on-premise SAP system you can request an exemption from your quality expert to suppress the finding from the ATC result. The ATC exemption can be requested in the ABAP development tools for Eclipse. For the exemption processing there is the new SAP Fiori app Approve ATC Exemptions, which must be used by quality experts to accept or reject exemptions from developers.

More details in the blog How to work with exemptions using ABAP Test Cockpit (ATC) in the cloud during development in an on-p....

9 Comments