Skip to Content

Let’s see what this ADT stuff is capable of!

In my first blog about ABAP Development Tools(ADT) I wrote down some information about how to get started. Now I found some time to jump into the development platform and to compare it with the current ABAP Workbench. For this I used a small report which I created by using the ABAP Development Tools with the Netweaver 7.31 Trial. For me it was the proof, that you can easily create new reports within Eclipse :-). At first I thought the ADT is maybe optimized to work with classes at best, but I think I was wrong. It’s also very good in creating the good old ABAP reports.


What’s the difference?

Compared to the ABAP Workbench, Eclipse tools are quite good and offering a lot of stuff for general coding, like creating and editing reports and classes.

/wp-content/uploads/2012/08/overview_complete_131696.jpg


Creating a report and activating it

The creation of a new report is fairly easy and can be done without touching SAP-GUI at all. This means you can create the report by a chosen name in the customer name space, add it to a package and create or choose an existing transport request.

Also the activation of the report works like in the ABAP-Workbench. The Eclipse platform does the syntax checks and confirms the activation with a small message in the lower left corner.

/wp-content/uploads/2012/08/create_report_131759.jpg

/wp-content/uploads/2012/08/activating_131697.jpg

/wp-content/uploads/2012/08/activating_successful_131698.jpg


ABAP Docu

I’m someone who uses the ABAP-Docu quite often to get the syntax right and it was one of the first feautres I tried to use. I was very surprised how good this fits into the Eclipse workbench. By pressing F1 while your cursor is on a ABAP-Keyword, the ABAP-Docu will be opened in a new tab. And here comes the magic trick! Eclipse supports to split the view and so you can open the ABAP-Docu in a view on the right and have simultaneously opened the ABAP-syntax in a separate view on the left. This is really a nice feature!

/wp-content/uploads/2012/08/help_view_complete_131699.jpg


Keyboard Shortcuts

The keyboard shortcuts are almost the same in Eclipse as they are in the ABAP-Workbench. This means if you’re used to the keyboard shortcuts in the old workbench, you can get quick started with Eclipse.


Code completion

Code completion is a really cool feature, which was enhanced with Netweaver 7.02 to support code completion for workbench and dictionary objects. As you can see in the screenshots below, it’s also working under Eclipse almost the same as it works under the ABAP-Workbench.

In the ABAP-Workbench you can use the code-completion by hitting Strg + Space and then select the variables, methods, functions modules etc., you need. This works similar within the ADT.

One thing I’m missing here is the possibility to filter the results. This is something that can be very useful and I found no way to do this with Eclipse.


/wp-content/uploads/2012/08/code_completion_structures_131722.jpg

Fields

You can use code completion to find the needed fields within a structure.

E.g. Type „sflight-„ and then press Strg + Space to see which fields are included in the structure.

/wp-content/uploads/2012/08/code_completion_fields_complete_131700.jpg


Templates

With Shift + Enter you can also create templates for method or function calls. Just type the full method name (or use the code completion) like in the first screenshot below and then press Shift + Enter to add the template.

/wp-content/uploads/2012/08/code_completion_templates_complete_131701.jpg


Syntax Check

The syntax check can be started by the corresponding icon in the upper toolbar. It shows all messages in the middle lower view. Like in the workbench you can navigate to the error in the coding by double-clicking the message.

/wp-content/uploads/2012/08/syntax_errors_complete_131705.jpg


Forward navigation

This one really differs from the ABAP-Workbench. In the ABAP-Workbench you can navigate by double-clicking methods, variables, structures and so on. In Eclipse this will lead you to nothing. But it’s not completely missing, only the way to get there is different. You have to use the keyboard shortcut or the context menu when clicking on e.g. a structure or holding the STRG-Key and single click on the object (Thanks to Michael Schneider 🙂 ). With the menu point „Open declaration“ the declaration will be opened in a new tab. If you use this on a dictionary object, an integrated SAP-GUI will be opened in a new tab and the ABAP-Dictionary (SE11) gets started and shows you the requested object. Also here the split view can be useful. Just drag the tab to the left or right side of the window and drop it there. Then you can have a look on the dictionary object while you’re coding.

/wp-content/uploads/2012/08/split_view_complete_131706.jpg


Transport requests

The creation / selection of transport requests is no problem within the eclipse environment. You can choose a request or create a new one like in the SAP-GUI. One thing I’m currently missing is the possibilty to release a task / transport request.

/wp-content/uploads/2012/08/request_selection_131707.jpg

Running the report

One thing I was very curious about to see, was how the execution of a report is implemented in the ADT.

If you run your report, a new tab gets opened and the report will be started within an integrated SAP-GUI. For the small example I have coded (including ALV-Output) it was a good possibility to execute and test my coding.

/wp-content/uploads/2012/08/running_131708.jpg

What is currently not supported

With the Netweaver trial version there is no debugging support within the Eclipse environment. But this will be added with future versions of Netweaver 7.31, so don’t worry about this one. Currently you can do the debugging with the SAP-GUI, which works also very good.

/wp-content/uploads/2012/08/debugging_not_supported_131760.jpg

At the moment it seems that only creating programs (reports) and classes / interfaces are nativly supported. For all other objects a tab with an integrated SAP GUI will be opened. But I’m quite sure, that there will be support for more object types in the future.

For example: If you create a structure, you can enter the name of that structure in an Eclipse window and if you click finish, a tab with the transaction SE11 will be started. (Same as above with the „Open declaration“ example)


Benefits


Split View

One of the cool things I already mentioned above is the possibility to split views. This is very useful. Not only to show 2 different codings side by side, also to have the docu opened.


ABAP Doc View

The ABAP Doc View shows you the information which you can also see in the tooltips, for example the template of a method.

If you don’t want the information to be vanished after you’re setting the cursor to any other position, you can click on this little icon:/wp-content/uploads/2012/08/link_with_selection_131709.jpg

Outline

The outline is comparable to repository browser when you have opened a class or a report. It shows you the variables, methods, etc of the current development object. For classes you can filter to see only the public methods of a class. This is very helpful if you want to use a framework and only need to use the public methods of the framework interface (For example the ALV-Classes).


Search Objects and Where Used-List

The search for objects returns you the results for your search term, but the search includes all objects and not only a specified one.

/wp-content/uploads/2012/08/where_use_list_131710.jpg

The repository

In the left view you can see the full SAP repository on package level. So you can browse through all objects and even add packages to your favorite list, which is always the first entry in your project.



The End

All in all I think the ABAP Development Tools are easy to use, even if you’re a long time ABAP-Workbench developer. I think the way of SAP is very clear and so I hope the missing features will be added soon. Hopefully then there will follow a new trial to learn about all the new stuff. I haven’t mentioned all features of the ADT because I wanted to try out the basics, and this is in my opinion the creation of ABAP-coding.

At this point I will thank for the trial of the netweaver 7.31 and the ADT. It is very helpful to get hands on new technologies, even if you don’t have the landscape to use this at your company. I really appreciate the developer center here on SDN and I hope the ABAP Development Tools will get an own home place in the future 🙂


Thank you for reading!

To report this post you need to login first.

11 Comments

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

  1. Syam Babu

    Hi,

    How to connect Eclipse to Application Server?

    when i am developing Module Pool programs how to write code in this eclipse is there any other way.

    Cheers,

    Syam.

    (0) 
    1. Andreas Pöschl Post author

      Hi Syam,

      at first you need an Netweaver System 7.31 SP4 or higher. If you don’t have access to such a system you can use the netweaver trial, available here on scn.

      After installing the netweaver system, you can connect to this system by using the ADT for Eclipse.

      You’ll find the information you need for this here on scn:

      http://scn.sap.com/community/abap/eclipse

      Andreas

      (0) 
  2. Michael Schneider

    Hi Andreas,

    Thanks for providing your first experiences with ABAP Development Tools.

    I have one small addition related to the chapter about navigation: Beside the ways you mentioned (short-cut, context menu), it is also possible to navigate by mouse-click while pressing the key <Ctrl>.

    Michael

    (0) 
  3. Thomas Fiedler

    Hi Andreas,

    have you tried CTRL-SHIFT-A to open any development object in Eclipse.

    That’s my favorite shortcut. In adition to “Link with Editor” feature in project explorer you can navigate very quickly through the ABAP repository.

    Kind Regards,

    Thomas.

    (0) 
    1. Andreas Pöschl Post author

      Tried this now and I have to admit that this is also a cool feature! Thanks 😉

      Even under NW 7.02 and higher I like the enhanced features of automatic code completion and the repository lookup possibilities. That really speeds up development if you know how to use this stuff.

      (0) 
      1. Thomas Fiedler

        Hi Andreas,

        what exactly do you mean with Repository Lookup possibilities. Do you mean F2 on a development object to see the related metadata, e.g. the fields of a table etc.

        Automatic Code Completion is really a cool feature. 

        Regards,

        Thomas.

        (0) 
        1. Andreas Pöschl Post author

          Hi Thomas,

          I mean the possibility to get additional information about DDIC-Objects and Development-Objects like classes, function modules, etc… directly while coding.

          In the ABAP-Workbench I like to see the fields of a structure (by pressing strg + space after typing the structurename ie. sflight- ). This was a feature I missed in the eclipse tools, but maybe I just have overseen it.

          BR,

          Andreas

          (0) 
          1. Michael Schneider

            In the ABAP-Workbench I like to see the fields of a structure (by pressing strg + space after typing the structurename ie. sflight- ). This was a feature I missed in the eclipse tools, but maybe I just have overseen it.

            I don’t know whether I got your wrong, but you already showed this feature in Eclipse in this blog (see screenshot http://scn.sap.com/servlet/JiveServlet/downloadImage/38-70872-131700/535-400/code_completion_fields_complete.jpg).

            BTW – You can display further information for each used code element by setting the cursor on it in the editor and pressing F2.

            Michael

            (0) 
    2. Andreas Pöschl Post author

      Tried this now and I have to admit that this is also a cool feature! Thanks 😉

      Even under NW 7.02 and higher I like the enhanced features of automatic code completion and the repository lookup possibilities. That really speeds up development if you know how to use this stuff.

      (0) 

Leave a Reply