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

Remote Code Analysis in ATC – Technical Setup step by step

This is the second blog of the blog series about Remote Code Analysis in ABAP Test Cockpit (ATC).

See also blogs:

 

Technical Requirements

To use Remote Code Analysis in ABAP Test Cockpit (ATC) you need to install and configure one ATC central check system SAP_BASIS 7.51 or >=SAP_BASIS 7.52. Depending on how many custom objects you need to consider, SAP recommendation for system sizing is about 1 CPU and 4GB RAM per 16000 objects, for data volume on the DB about 400kB per object.

The systems, which you want to check in your landscape, must be on SAP_BASIS 7.00 (not before SP15), 7.01 (not before SP01), 7.02 (not before SP09), 7.31 (not before SP03), 7.40 (not before SP02) or 7.50 releases. For supported SP levels see also the SAP Note 2385520.

The RFC destinations for all checked systems must be provided in the ATC central check system and RFC-stubs must be implemented in all checked systems.

Depending on your support package level you need to apply the respective SAP Notes for using ATC to perform remote analysis. See the collective SAP Note 2364916.

If you intend to run ATC for the objects in your own custom namespaces (other as Z* or Y* namespaces), you will need to register custom namespaces of the checked systems at the central ATC system.

You would also need authorizations for administrative and quality assurance activities. See Authorizations for the ABAP Test Cockpit.

Please also assign your RFC user the corresponding roles as described in SAP Note 2672703 Authorization roles for remote check scenarios

PLEASE NOTE: The ATC central check system can only analyze systems at the same or lower software levels.

1. Setup System Role

By setting up the system role you can specify the current system as a central check system for remote ATC checks.

Log on to the ATC central check system as ATC administrator and call transaction ATC. Under ATC Administration -> Setup double-click the Set System Role entry:

Switch to change mode, choose ATC Checks by Object Providers Only option and click Save button.

This option defines that the current system takes the role of the ATC central check system and ATC is used to analyze development objects in remote systems.

 

2. Define RFC destinations for checked systems

Use transaction SM59 to create RFC destinations for each ABAP system, which will be checked in the current central ATC system.

 

3. Maintain Object Providers

While ATC check runs in the central system, the ATC framework uses RFC connections to the remotely checked systems to extract a model from the custom code for analysis. Object Providers define these RFC connections and therefore they must be configured for usage.

Every Object Provider must be assigned to a System Group, therefore before you configure Object providers, you need to create System Groups. A System Group contains multiple SAP systems of the same SAP release. It can be helpful to define more than one System Group (e.g. for each subsidiary of your company with its own custom code). In the central check system ATC exemptions are valid only for the whole relevant System Group.

To create a System Group, in the ATC transaction, under ATC Administration -> Setup double-click Maintain Object Providers and then double-click the item System Groups for selection. Switch to change mode, click the New Entries button in the toolbar and enter an ID and short Description for the new system group to be added.

Now you can maintain Object Providers. Select RFC Object Providers by double-clicking, switch to change mode and click the New Entries button. Specify ID, Description, System Group and the valid RFC destination to the remote SAP system. Repeat these steps for each Object Provider you want to set up.

Correction Systems define RFC connections which can be used to view and change the source code.

 

4. Configure Run Series

Now you need to configure ATC run series for remote ATC checks. In the ATC transaction under ATC Administration -> Runs double-click Schedule Runs and click the Create button in the toolbar. Enter the name for the series in the dialog and click Enter. Specify the data for the new series configuration: Description, Check Variant (global Code Inspector Variant), Object Provider and Object Selection (choose the packages or the object set in the remote system.). Save your configuration.

 

5. Schedule Run Series

Now you can schedule ATC check run in a central system to check remote systems. In the ATC transaction, in der Overview, under ATC Administration -> Runs double-click the Schedule Runs entry. Select the run series in question from the list with run series and click the Schedule button in the toolbar. Choose Execute (or F8) to run ATC checks.

 

6. View Results

After successful execution of the ATC run, the check results from the remotely checked SAP systems will be available in the ATC central check system for analysis.

Now you can logon to ATC central check system as developer, and view the ATC results in the ATC Result Browser (switch to the ATC Result Browser in the SE80).

In the ATC Result Browser, choose Results by system group, select the relevant system group and display its ATC run series.

Double-clicking the node of the run series allows to view the list of findings. Double-click a finding to view the details. And now you can examine the finding in detail, access the related documentation with information on how to correct it, navigate to the relevant source code line and correct the finding or request an exemption. That’s it.

 

Assigned Tags

      155 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Kavita Mane
      Kavita Mane

      Hi Olga,

      In the baselined code as well, Objects are tagged to old ids who has created the Object. We are not able to see who has recently changed the code.

       

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

      Hi Kavita,

      I proposed you to change display layout. Just choose "Change Layout menu"

       

       

       

       

       

       

       

      and add "Last Changed By" column (or other columns, which you need) to the displayed column set:

      Kind Regards,

      Olga.

      Author's profile photo Mohamed Atif Ali Hassan
      Mohamed Atif Ali Hassan

      Hi Olga Dolinskaja

      Could you please support us here

      https://answers.sap.com/questions/13809199/atc-error-please-update-stub-version-in-sid-source.html

       

      We appreciate your support

      Thanks and Regards,

      M.Atif

      Author's profile photo Kavita Mane
      Kavita Mane

      Hello Olga,

      We are facing error when trying to add Reference check RFC in satellite system. Could you please assist on this.

      Our reference check system/ATC central  system is on 752 SP08 version

      Satellite system is on 750 SP25 version

      Author's profile photo Thomas Fiedler
      Thomas Fiedler

      Could you please create a support ticket for that.

      Thanks,

      Thomas.

      Author's profile photo Sri Krishna Chaitanya Kuppili
      Sri Krishna Chaitanya Kuppili

      Hello,

      We are getting this error while saving the RFC object providers for Remote ATC.

      Our checked system is SAP BASIS 7.50 0018 and ATC system is SAP BASIS 7.56 001.

       

      Short Text
      Syntax error in program "SAPLSCA_REMOTE_DATA_ACCESS ".

       

      What happened?
      Error in the ABAP application program.

      The current ABAP program "SAPMSSY1" had to be terminated because it found a
      statement that could not be executed.
      In include "LSCA_REMOTE_DATA_ACCESSP01 ", in line 712 of program
      "SAPLSCA_REMOTE_DATA_ACCESS ", the following syntax errors
      have occurred:
      Die Methode "GET_CHECKABLE_KEYS_4_TRANSPORT" ist unbekannt bzw. PROTEC
      TED oder PRIVATE.

      Any info or any note, which can fix this ?

      Author's profile photo Thomas Fiedler
      Thomas Fiedler

      Hi,

      looks like something went wrong during note installation on your system.

      Could you please create a ticket on component BC-DWB-TOO-ATF and we can check the situation  on your system.

      Regards,

      Thomas.