Вы находитесь на странице: 1из 5

2/5/2020 How to use ATC and Code Inspector with CTS/QGM/ChaRM | SAP Blogs

Community

Ask a Question Write a Blog Post Login

Mahadevan Venkata
April 10, 2015 4 minute read

How to use ATC and Code Inspector with CTS/QGM/ChaRM


Follow RSS feed Like

1 Like 7,342 Views 4 Comments

Bugs in your custom ABAP code can be quite expensive when they impact critical business processes, which is why quality assurance of custom ABAP code is receiving more and more attention in
business. Detecting bugs in early in the development stages before they can be moved across the landscape ensure that the cost and risk is minimal. SAP also develops a great deal of ABAP code, and for
us as well, highest quality is our primary goal. To reach this goal, SAP o ers the ABAP Test Cockpit (ATC) and Code Inspector as quality assurance tools for ABAP.

Both ATC and the Code Inspector are loosely integrated with the following quality management processes

Transport Organizer (transaction code SE09),


Quality Gate Management (QGM) in the Solution Manager
Change Request Management (ChaRM) in the Solution Manager

The goal of this blog is to highlight how ATC and Code Inspector checks are integrated and used in the context of Transport Organizer (SE09), QGM, and ChaRM and how ABAP ‘errors’ can be
prevented from being transported across the landscape.

Global activation of ATC and Code Inspector checks in CTS

For all the three scenarios described above, the feature to trigger the checks during the release of a transport request must be globally activated by performing the following steps in the satellite or managed
system:

1. Start the transport organizer tool (SE03)


2. Double click on entry ‘Global Customizing’
3. Select the option ‘Globally activated’ for the option ‘check objects when request released’.

Behavior of ATC or Code Inspector checks in transport organizer (tcode SE09)

In the framework of the Change and Transport System (CTS), the Transport Organizer is a tool for managing the objects that gather the changes carried on during the development and configuration phases,
and for transporting (i.e. copying) them to quality system first, and then to production system. The two kinds of objects used in the CTS are the Request and the Task.

The Request is the main container, which contains zero to any number of Tasks. The CTS automatically creates one task for each user who adds objects to the request (In fact the objects are added in the task
itself).

When you want to transport the Request, you have to first release all the tasks of the request, and then the request itself. When it is released, the transport is done automatically or manually by the administrator.
The transport goes across the landscape as defined in the transport routes.

The release of a transport request and task serves as the first quality gate to ensure that poor quality custom code is not transported across the landscape.

Steps involved in triggering ATC checks during the release of a transport request via transaction code SE09
1. Globally activate checks during the release of a request

https://blogs.sap.com/2015/04/10/how-to-use-atc-and-code-inspector-with-ctsqgmcharm/ 1/5
2/5/2020 How to use ATC and Code Inspector with CTS/QGM/ChaRM | SAP Blogs

Start the transport organizer tool (SE03)


Double click on entry ‘Global Customizing’
Select the option ‘Globally activated’ for the option ‘check objects when request released’

2. Go to transaction ATC and double click on ‘Con gure ATC’.

         

     3.     Under the ‘Transport tool integration section’, select the option ‘Block on any error (priority 1 and 2)*’ and save your changes.

4. Releasing transport request (via SE09) containing errors will now be blocked.

The above steps illustrate how custom code with errors can be prevented from being transported across the landscape by blocking the transport request. However, in some cases, there may be a need to trigger
ATC or Code Inspector checks during the release of a transport task. Currently, this option is not available as a standard. To address this requirement, SAP provides a standard BAdI ‘CTS_REQUEST_CHECK’
that can be implemented by customers, to trigger the checks during the release of a task. Step-by-step instructions on how to implement the checks at a task level can be found here:

http://scn.sap.com/community/abap/testing-and-troubleshooting/blog/2013/09/19/how-to-trigger-atc-or-code-inspector-checks-during-the-release-of-a-transport-task

Behavior of ATC or Code inspector checks in Quality Gate MANAGEMENT (QGM) or ChaRM

Quality Gate Management and ChaRM gives you an overview of the status of the software distribution of your projects. It gives an integrated and consistent overview of the implementation of changes to your
SAP software solution, for all operational units of the various organizations in a company. This increases the transparency of the software change process. Quality Gate Management combines different software
developments in one logical structure. These developments are in turn collected in projects. You can organize and monitor the distribution of software by projects and their changes.

Quality Gate Management is part of the SAP Solution Manager and is only available via the SAP Solution Manager work centre.

https://blogs.sap.com/2015/04/10/how-to-use-atc-and-code-inspector-with-ctsqgmcharm/ 2/5
2/5/2020 How to use ATC and Code Inspector with CTS/QGM/ChaRM | SAP Blogs

ATC and Code inspector checks are already partially integrated with QGM and ChaRM. This is possible because QGM and ChaRM use the same underlying CTS functionality. So when a request is being
released which contain errors, the checks ensure that that request is not released via QGM or ChaRM.
A full-blown integration between ChaRM/QGM and ATC where different user inputs are possible in cases ATC errors/warnings etc. is currently under development(expected to be available in 2016).
Please find below screenshots of the code quality related ‘errors’ being prevented from being released in QGM and ChaRM.

Note:
To prevent the release of transport requests containing errors via QGM or ChaRM, it is a pre-requisite that the steps in section ‘behaviour of ATC or Code inspector checks in transport organizer (tcode SE09)’
are followed.
If the option ‘inform on error’ is selected in ATC/CI transport properties, then ChaRM and QGM does not get this information and the transport request is simply released without any additional information

For more information about ATC, please refer to the following link

http://scn.sap.com/docs/DOC-31773

For more information about QGM and ChaRM, please refer to the following link in service market place

https://websmp105.sap-ag.de/alm-processes

Alert Moderator

Assigned tags

ABAP Development | atc | charm | code inspector | custom code management |

View more...

https://blogs.sap.com/2015/04/10/how-to-use-atc-and-code-inspector-with-ctsqgmcharm/ 3/5
2/5/2020 How to use ATC and Code Inspector with CTS/QGM/ChaRM | SAP Blogs

Related Blog Posts

Con guration for ATC / Code Inspector check before releasing transport request
By Rameez Khan , Nov 21, 2018

Unicode check with Code Inspector


By Jürgen Creyaufmüller , Mar 11, 2016

Automatic QA and release request


By Rodrigo Paisante , Jun 12, 2013

Related Questions

ATC not checking code in user exit includes


By Aubin Hernandez , Nov 26, 2014

di erence b/w codeinspector and extended program check


By Former Member , Apr 12, 2007

How to set up a periodic series of ATC runs?


By Former Member , Jun 19, 2013

4 Comments

You must be Logged on to comment or reply to a post.

Former Member

July 15, 2015 at 8:40 pm

Hi Venkata,

very Informative blog.

I have some queries in ATC activation in solman and raised the  dsicussion How to enable the ATC in the Solman

Please help it.

Rg,

Karthik

Like (0)

Shuge Guo

July 16, 2015 at 12:23 pm

very useful!

Like (0)

Former Member

July 16, 2015 at 7:43 pm

i got an interesting question from one of my customer whois interested in turning on this ATC check with ChaRM. the question is – is it possible to trigger the check on the TOC (transport of
copies)? if yes, how?

thanks!

errol

Like (0)

https://blogs.sap.com/2015/04/10/how-to-use-atc-and-code-inspector-with-ctsqgmcharm/ 4/5
2/5/2020 How to use ATC and Code Inspector with CTS/QGM/ChaRM | SAP Blogs

Former Member

September 21, 2016 at 3:16 am

Hi Patrick,

Is it possible for ChaRM to show the error/warning of code inspector and still be able to release the TR if the setting of ATC/code inspector is ‘Inform on errors’? Hard blocking on errors is
sometimes di cult for customer to accept especially in case of urgent change.

Thanks!

Yuankai

Like (0)

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

https://blogs.sap.com/2015/04/10/how-to-use-atc-and-code-inspector-with-ctsqgmcharm/ 5/5

Вам также может понравиться