Skip to Content
Author's profile photo Former Member

ADT Basics: Versioning and Source Code Comparison

Which levels of versioning do the ABAP Development Tools (ADT) support and how can I compare the source code of specific development objects over time or even across different systems?

The Eclipse-based ABAP Development Tools (ADT) offer two basic, built-in levels of version control or revision control for development resources: A client-side, local history and a server-side revision history. Thus, you can compare and restore different source code versions on both levels and even do a cross-system comparison as shown below.

1. Local History

First of all, ADT keeps a local history of all development resources you are working on. This is a standard Eclipse feature which saves a copy of the current resource on the local file system each time you edit and save it. You can even customize this local history within the Eclipse preferences, for instance I would recommend to increase the number of days to keep these snapshots:


Thus, you can compare and restore all locally saved versions (Eclipse calls it local edits) by calling the Local History view using the context menu in the ABAP source code editor:


Now use the context menu of the Local History view to choose a previous local version/local edit to compare with:

The ABAP Compare editor opens and displays the source code differences of the two local versions using markers:


Using the buttons of the Compare editor you now have the options to copy the changes from one resource to the other or navigate through the changes:


Alternatively, you can quickly replace the current local version with a previous version by using the context menu of the Local History view:


2. Revision History

The second option is to use the revision history which offers access to the server-side version management for all repository objects. In contrast to the first option these ‘revisions’ are managed by the CTS on the server, are visible to all developers, and simply spoken reflect the code level of specific change or transport requests. For more information about the automatic creation of new versions by the CTS and how to create temporary versions on the server please refer to the online documentation.

Simply use the context menu of the ABAP source code editor to call the Revision History view:


Then use the context menu of the Revision History view to choose a previous revision to compare with:

The ABAP Compare editor opens and displays the source code differences of the latest version compared to the selected revision:


You may also use the control-key to mark two specific revisions to compare with each other:

compare_previous revisions.png

On this level restoring the content of a specific revision is currently only supported via copy-and-paste in Eclipse or using the classical Version Management screen in SAP GUI (see online documentation).

3. Cross-system Comparison

The last, but very interesting option is to compare the latest version of a development object within different ABAP systems. For example, you could compare the code level of specific ABAP resources between your DEV, QAS and your PRD system. Just use the context menu in the project explorer to call the compare editor


and browse through the highlighted differences or changes in the source code:

As already mentioned this option is really useful in case you want to check whether your latest source code already reached a specific target system or if you simply want to detect the source-code differences of one system compared to another system.

I hope, this post sheds some light on the different options and their potential usage.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Jun Wu
      Jun Wu

      screenshot is missing

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Don't know what happened to this post. I re-published it and the screenshots seem to be back again.

      Author's profile photo Oliver Tesch
      Oliver Tesch

      Is it possible to compare every property and part of an development object?

      I want to see differences of an whole class with all methods, attributes, Interface and so on.

      We are looking for a possibility to compare our state of development between two Systems.

      Author's profile photo Thomas Fiedler
      Thomas Fiedler

      Hi Oliver,

      yes this is possibille you can compare objects between different systems.

      You find it also in the "Compare With..." context menu. All ABAP projects that are configured in your eclipe are listed there.

      Have fun.



      Author's profile photo Harald Wilde
      Harald Wilde

      SAP GUI: Transaction SREPO

      Author's profile photo Raghu Govindarajan
      Raghu Govindarajan

      Sorry for the extra large screen capture here. I was right clicking all over the place for the last 2 days trying to get the context menu in your screen shot for local history - so, I thought I would share some the places I tried clicking 😛 and the right place which is the program/class name in the code window.

      if there is better place, please let me know. For future versions, is it possible to add this to the context menu on the Project Explorer?


      Author's profile photo Timo John
      Timo John

      We just found the isseu that in our setting the sort order of Methods in a class is done in alphabetical order after transport the methods on the second system are ordered alphabetical. this makes the source code comparism useless...

      What do we have to set up different?


      SAP_BASIS 750 0007 SAPK-75007INSAPBASIS

      SAP_ABA     750 0007 SAPK-75007INSAPABA

      ABAP Development Tools for SAP NetWeaver Version: 2.77.2

      Author's profile photo Patricia Ellis
      Patricia Ellis

      Hello - i have this issue too - did you ever resolve this ?

      Thank-you so much !


      Author's profile photo Wolfgang Röckelein
      Wolfgang Röckelein

      Hi all,

      I also see occasionally changes in the method order displayed in ADT after transport and I am also looking for suggestions on how to avoid this.



      Author's profile photo Edo von Glan
      Edo von Glan

      In the upper left corner, behind the three vertical dots, there is a choice of "ABAP Compare (Sorted Class Methods".

      You should also (via right-click in the compare window) select "Ignore White Space".

      Author's profile photo Kien Weng Chan
      Kien Weng Chan

      Hey Christopher, nice Blog! I've got one question: How to generate a version without any transport etc.? In ABAP / Transaction SE38 I use Utilities --> Versions --> Generate Version. How ist that in Eclipse possible?

      Thanks Kien Weng

      Author's profile photo Larochka Lee
      Larochka Lee

      Hi Christopher,


      Thanks for sharing the info.  I recently downloaded Eclipse Oxygen.2 Release (4.7.2) and having trouble finding Compare With --> Local History option on the right-click.

      The only 2 options that I get are Compare With --> New Project or Compare With --> Revision History.


      Do you know by any chance why I don't get the options as per your blog?

      Thanks 🙂


      Author's profile photo Mircea Neda
      Mircea Neda

      Hi Larochka,

      Recently had the same problem myself. Right-click in the Editor, Team->Local History.

      Author's profile photo Larochka Lee
      Larochka Lee

      Thanks Mircea,

      Got it, Right Click in the Editor (as per your suggestion) --> Compare With --> Local History.