Today we released a new version of the ABAP Development Tools for Eclipse. ADT Version 2.41 is now general available on the SAP Tools Updatesite: SAP Development Tools for Eclipse

In this version we mainly focused on bug fixes, smaller round-offs and preparation work for the upcoming Eclipse Mars release.


We added two cool new features to the client version 2.41:





Editing in the Source Comparision Editor


The first feature might be very helpful when working with the same development object in several systems. There are already a few features available for you when working with several ABAP projects connected to different systems. For example you can open a development object very quickly in the other system just by using the context menu in the editor:
Open in Project -> <project-name>


11-03-2015 20-40-20.png


The editor is opened and displays the object from the chosen system.


Very often you not only want to open the object but you also want to compare the code with each other.

Here we go. Just choose the following context menu item in the editor.
Compare With-><project-name>


/wp-content/uploads/2015/03/2_662801.png


The comparision view for the object is opened and explains you what the differences between the two versions. This is the same comparision view that we provide for the local history of objects and the revision history.


/wp-content/uploads/2015/03/3_662802.png

So far nothing new.But now to the new stuff:


With ADT 2.41 it is possible to edit both versions in the comparision view !


This is very helpful in case you want to bring some source code from one system to the other. So just start typing in one of the pages and do your job. Lock Handling and transport handling is the same as in the standard editor.

In addition to the standard editing capabilities the view also provides these buttons here that helps you to take over complete code sections from left to right or vice versa.


/wp-content/uploads/2015/03/comp_663031.png

This feature is not only working for the classic ABAP development source code objects like classes, reports and function modules. It also works for ther new members of the ABAP family like CDS sources and AMDPs. Here for example you see a screenshots of a CDS view which is editable in two systems in parallel:


/wp-content/uploads/2015/03/cds_662796.png



Outline View for CDS Views

   

The outline view is a very helpful feature in eclipse in general as it gives you a good overview and summary about a development object. For example for classes it shows you the methods, attributes, local classses and so on. The outline view is now also available for CDS views. Because of the rich feature set within the definition of these new views they can get very complex. Therefore we think that the outline can help the developers to get a quick overview about the defined view. 


Here you see a screenshot of the new outline view for a typical CDS view:


/wp-content/uploads/2015/03/outline_663020.png


You can very easily see the different sections of the definition like the FROM clause, the SELECT list, GROUP_BY sections and WHERE clauses. The outline view also gives you nice navigation capabilities as the view is linked with the corresponding editor. That means you can position your cursor on an element in the outline view and the corresponding element in the source code editor is marked and vice versa.


The outline view is also available as inline version in the editor called Quick Outline. Just press CTRL-O in the editor tab of the CDS view and you see the outline view as a small popup directly in the editor. In that case you have an additional filter line to restrict the displayed content:


/wp-content/uploads/2015/03/ctrlo_663022.png


This feature (which is also available for all other source code objects) might help in case you are working in the full screen mode where you don’t have the outline view opened.



So that’s it for today. Hope you like the new version of ABAP in Eclipse.

Feedback as usual very welcome !


Kind Regards,

Thomas.

 









 

To report this post you need to login first.

38 Comments

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

  1. Christian Guenter

    Hi Thomas,

    i just did the update, but unfortunately i’m no longer able to open any ABAP-project and it seems that the ABAP perspective is entirely missing.

    2015-03-12 09_40_49-Clipboard.png

    Version Information

    2015-03-12 09_42_35-ABAP Connectivity & Integration - Eclipse.png

    What can i do?

    Regards Christian

    (0) 
    1. Felix Otto

      Hi Christian,

      that looks really strange. All plug-ins are there (updated version), but the perspective is missing. Can you please send me the support information about you Eclipse instance?

      You can create them via Help=>Collect Support Information.

      If this is missing, plesae check if the emergency .bat file exists next to the eclipse.exe.

      Just send the archive via mail to me (felix.otto@sap.com).

      Regards, Felix

      (0) 
  2. Peter Inotai

    Hi Thomas,

    Thanks for the update.

    I like especially these new CDS features. However I still hope that there will be some improved graphical interface for CDS (and other DDIC view) editing in the future.

    Cheers,

    Peter

    (0) 
      1. Peter Inotai

        Hi Thomas,

        As far as I remember you already mentioned this earlier in one of the blogs comment.

        It’s a great news, I’m looking forward to it.

        Peter

        (0) 
  3. Peter Langner

    Thank you for the update:

    Unfortunately pressing F1 in ABAP code doesn’t lead me to the ABAP Help any more, but the eclipse help. Any Idea what to do?

    Peter

    (0) 
    1. Thomas Fiedler Post author

      /wp-content/uploads/2015/03/keys_663457.pngHi Peter,

      looks like an issue with the eclipse key bindings.

      Please press two times CTRL-SHIFT-L and you will see the keybindings preferences.

      Please check on the screen whether there is a binding for F1:

      Regards,

      Thomas.

      (0) 
  4. Benjamin Kröger

    Did anyone try to include and use patterns from table TSE05 in Eclipse? It seems that ADT does not get the patterns defined there, and defining those patterns manually and locally for every single developer in Eclipse seems a little bit outdated.

    (0) 
    1. Thomas Fiedler Post author

      Hi Benjamin,

      the eclipse templates are stored on the local client that is correct. We are not reusing the ABAP templates. TRhere is the possibility to export the templates from eclipse in order to share the templates with your colleagues. There are ideas to use the ABAP server as central storage for templates but nothing is implemented so far.

      Regards,

      Thomas.  

      (0) 
      1. Benjamin Kröger

        Thanks for your answer.

        Tbh, I am a little confused about the fact, that the defined custom code template is not inserted automatically when I use Eclipse, because the object is still created and managed in the backend system, isn’t it? So, from a very basic point of view, it should trigger the same procedures when I do “new report” in se80 or Eclipse.

        It’s not so important for myself but it can become important when such templates or program headers are recommended or required by conventions or guidelines

        Regards,

        Benjamin

        (0) 
  5. Michael von Keitz

    Hello Thomas,

    I noticed a difference in the search results of the ABAP where-used functionality. I don´t know if it came with the ADT version 2.41, or the recent upgrade of our SAP systems.

    However, in the search result, I only see the line where the searched object occurs. Before, at least the whole statement containing the searched object was displayed, like in in the normal SAPGui.

    I think this is an essential functionality, in order to quickly get an overview of the context. For example, if I search for a function module or a method, you directly saw the interface. Or if you search for a variable, you directly saw the context, how the variable is used. All this is lost with the new search result display.

    Is this just a setting, that I can adjust, or is it a general change?

    Regards,

    Michael

    (0) 
      1. Michael von Keitz

        ok this helps a little bit, but it´s still not optimal. Is there no way to display the context for all search results? Only like this it´s easy to get a good overview. With the tooltip, you would be hovering back and forth between multiple results all the time. Especially for cases with many results this is really a step backwards…

        (0) 
        1. Michael Gutfleisch

          Currently there is no other way…

          We will think about your requirement.

          What do you think about the new features of the where-used result list like

          • switching on/off the package hierarchy
          • filtering the results by package, object type, user and code category
          • counters for found objects and individual matches
          • displaying the matches as flat list
          (0) 
          1. Michael von Keitz

            Ok thanks, this would be very nice, if the full display would be available at least as an optional setting.

            The other features sound also interesting, can be quite useful I think. Only two remarks:

            The counters for individual matches are not displayed directly for all objects. For some there is a “?” (even for cases where only 1 match is in) and it´s only displayed when you open the node.

            For the filter by object type, when I press CTRL+space, I only get function groups, modules and programs. Is this currently all types or are there more available?

            (0) 
            1. Michael Gutfleisch

              Well, the “?” is a tribute to performance. It is expensive to count the matches exactly, so you get the number only if all subnodes are already expanded. You can partly expand the tree by using the expand item in the context menu on each node.

              The content assist provides only those object types of the found objects. So if you have hits in other object types you can use them as filter as well. (same for packages and users)

              (0) 
          2. Michael von Keitz

            Hello Michael,

            now I tested the filtering of the search result. It´s already helpful to go through the list of filter criterias. But it would be even better, if we could use wildcards there. This can be very useful in the filter by package. We have a structured package naming convention and if wildcards were possible, we could easily filter results by team/area,…

            Or a more simple usecase would be to just filter for Z*.

            Regards,

            Michael

            (0) 
            1. Michael Gutfleisch

              Yes sure, the wildcards would be an additional useful feature.

              But concerning the package hierarchy… if you use a package as filter all subpackages will be considered as well… you don’t need an elaborated naming convention for this!

              Regards,

              Michael

              (0) 
      2. Michael von Keitz

        Hello Michael,

        I forgot another point regarding the search results. Before, the line number of the calling position was displayed in the result. This is now not available anymore.

        Can you consider adding the line number again? It is quite useful to also get more context of the calling positions, especially when there are multiple results in one object.

        Thanks,

        Michael

        (0) 
      1. Bruno Esperança

        Hi Felix,

        Thanks so much for your reply.

        Indeed, I tried the direct connection and it worked fine, that’s why I thought it wasn’t a problem with the proxy, but I tried from an unrestricted internet connection later and it worked fine.

        Thanks again.

        Kind regards,

        Bruno

        (0) 
          1. Bruno Esperança

            Hi Florian 🙂

            Still doesn’t work :/

            adt proxy error.png

            But don’t worry about it, I have everything installed now anyway 🙂

            We should talk about those CDS views 😀

            Cheers,

            Bruno

            (0) 
          2. Bruno Esperança

            PS: Let me take the opportunity to ask a completely unrelated question 🙂

            Is it possible to deactivate auto-completion when you are typing variable names, and only have it manually when you press CTRL+SPACE?

            Thanks 😀

            (0) 
              1. Bruno Esperança

                Perfect, thanks!

                I don’t know how it is for you, but to me it’s quite slow sometimes when it’s fetching the list of a structure with many variables, and it’s much faster if you type a few letters before triggering the code completion, so NOT having it automatically triggered works best for me 🙂

                Kind regards,

                Bruno

                (0) 
  6. Vitaliy Tarusin

    Hi, Thomas,

    Editing in Comparison View is very conveniently,

    but I faced with few difficulties when working with it

    1) Cyrillic symbols on the left side displayed correctly, but after saving they turn into  ������� ���������

    Nevertheless, instead of saving in Comparison View, it is possible to save changes (which were made in Comparison View) in separate editor tab without such problem.

    2) there is no familiar editor functions:

      – code completion (Ctrl + Space)

      – drill down function via F3 or Ctrl+Click

      – Tooltip description via F2

      – line deletion via Ctrl+D

    and so on

    Thanks,

    Vitaliy

    (0) 
    1. Michael Schneider

      Hi Vitali,

      Thank you for your feedback.

      1) Cyrillic symbols on the left side displayed correctly, but after saving they turn into  ������� ���������

      Nevertheless, instead of saving in Comparison View, it is possible to save changes (which were made in Comparison View) in separate editor tab without such problem.

      This seems to be a bug. We will take care of this issue.

      2) there is no familiar editor functions:

        – code completion (Ctrl + Space)

        – drill down function via F3 or Ctrl+Click

        – Tooltip description via F2

        – line deletion via Ctrl+D

      and so on

      These are known limitations. We have not added these features due to other priorities. I hope you understand this.

      Regards,

      Michael

      (0) 

Leave a Reply