How to use ABAP Test Cockpit (ATC) in the cloud as a developer in an on-premise system
2023-11-13 04:27:55 Author: blogs.sap.com(查看原文) 阅读量:31 收藏

As you probably already know, you can use the Custom Code Migration app in the SAP BTP, ABAP environment to check your ABAP custom code in an SAP Business Suite, SAP S/4HANA Cloud, private edition (or SAP S/4HANA on-premise) system (further referenced as “on-premise” system) for quality issues. Over and above that, to enable central ABAP test cockpit (ATC) quality checking in the cloud for on-premise landscapes, we have delivered further essential capabilities for using ATC in the cloud. These include, amongst others, the configuration via the ATC Configurator app, and the management of custom ATC check variants. For further information, see the blog ABAP Test Cockpit in the Cloud – What is already possible.

With SAP BTP, ABAP environment 2311 (November 2023 release) we have now also enabled the remote developer scenario between ATC in the cloud and developers in on-premise systems.

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

Prerequisites

Central ATC check system (cloud)

You need access to the SAP BTP, ABAP environment, and you have to create  communication arrangement based on the communication scenario Custom Code Migration Integration  (SAP_COM_0464) to enable communication from the ABAP environment to on-premise systems using RFC and SAP Cloud Connector. For more details, see the SAP Help Portal documentation Enable Usage of the Custom Code Migration App.

Checked system (on-premise)

The on-premise system must be on the SAP_BASIS >= 7.40 release.

Depending on the support package level of your on-premise system you need to apply the respective SAP Notes for using ATC to perform remote analysis. See the collective SAP Note 2364916 under the “Checked System” section.

In addition the SAP Note 3358660 – Developer Scenario Cloud must be implemented.

Technical Setup

Central ATC check system (cloud)

In order to enable developers in on-premise systems to check their code using a remote ATC check variant of the central ATC check system in the cloud you need to create a communication arrangement based on the communication scenario ABAP Test Cockpit – Reference Check System Inbound Integration (SAP_COM_0936) in your SAP BTP, ABAP environment system.

To do this, you need to log on to the SAP Fiori launchpad of your SAP BTP, ABAP environment. Next, in the Communication Management section, select the Communication Arrangement tile and create a new communication arrangement using the SAP_COM_0936 scenario. Enter Communication System and Object Provider. The Communication System must be defined as Inbound Only beforehand under the Communication System tile. The Object Provider is specified in the communication arrangement for the integration of your on-premise system based on the communication scenario SAP_COM_0464.

Checked system (on-premise)

For the configuration of the developer scenario in an on-premise checked system (in transaction ATC under Basic Settings), you need to enter the connection to the central ATC check system in the cloud (Reference Check System) and a corresponding reference ATC check variant that points to the check variant of the central ATC system in the cloud (Global Check Variant):

To do this, the RFC destination to the central ATC check system in the cloud must be created beforehand in the SM59 transaction (SKZ_ATC_CC in this case, classic Type 3 connection over SAP Cloud Connector). The ATC check variant (Z_CLOUD_REF in this case) must be created in the Code Inspector (SCI transaction) as a reference check variant (use Reference Check System checkbox) that references the variant in the central ATC check system (for example SLIN_SEC) that you want to use.

See also the SAP Help Portal documentation Using an SAP BTP System as ATC Central Check System for more details.

Check your source code

Just run the ATC over your code using the default system check variant in an on-premise system in ABAP development tools for Eclipse (in the context menu, choose Run As > ABAP Test Cockpit) and your code will be checked with the ATC check variant (that you specified as a reference check variant) of the central ATC check system in the cloud:

Check transport before release

With the central ATC check system in the cloud, you can also execute remote ATC checks for your transport requests before release. In the Transport Organizer view, select your transport request and run ATC using the default system check variant (in the context menu, choose Run As > ABAP Test Cockpit):

Typically, your system is configured so that the checks are also performed upon the release of the transport requests.

Request exemption

To request an exemption for a finding, position the cursor on the ATC finding and choose Request Exemption from the context menu.

The exemption processing will take place in the central ATC check system in the cloud. For more details, see the blog post How to work with exemptions using ABAP Test Cockpit (ATC) in the cloud during development in an on-premise system.

Use Quick Fixes

When using a central ATC check system in the cloud, you can also apply Quick Fixes in ABAP development tools for Eclipse for your source code in an on-premise system (Quick Fixes are supported in the releases >= SAP S/4HANA 1809).


文章来源: https://blogs.sap.com/2023/11/12/how-to-use-abap-test-cockpit-atc-in-the-cloud-as-a-developer-in-an-on-premise-system/
如有侵权请联系:admin#unsafe.sh