Scharpen your ABAP Editor for Test-Driven-Development (TDD) – Part IV.

Tips and Tricks for using the Object Navigator

Buฬˆcher.jpg

[copyright Fotos, lizenzfreie Bilder, Videos und Musikclips – iStock – iStock DE]

What else can help?

In my previous Blogs I described what is necessary for sharpen your ABAP Editor to use successful TDD. In this Blog I will show you:

  • Autocompletion
  • Drag & Drop
  • Navigation
  • Navigation stack & Worklist

Tips and Tricks for using the Object Navigator

I´ve tried to implement some methods and techniques in my daily work as an agile ABAP Developer. Some works for me and some works for others ๐Ÿ™‚

Autocompletion in SE80

Imagine that you follow the clean code suggestions and try to use self describing variable names. But if you have to write longer names than it could happen that you forget some letter and you got an syntax error…

The Solution is easy, try to use as often as you can the Autocompletion by hitting the Keyboard-Functions (CTRL + Space)

Editor_Video_5.png

you don´t have to write the syntax word complete, just Hit the Keyboard-Functions and you will get the possible execution Parts.

And now the important Part, if you wish to autocomplete then hit (CTRL + SHIFT + ENTER) and also the Parameter Values will be generated:

Editor_Video_5.png

Drag and Drop in SE80

The Drag and Drop Feature within the ABAP Editor is similar to the Autocompletion, but in addition you does not have to type any statement and you could easily Drag and Drop the Methods, Functions that you wish to call. The following steps should help you to use this feature:

  1. Go into the SE80 and make your Sources (for example Program, Methods, Functions etc..) editable
  2. Then go in the left Navigation Part of the SE80 Editor and open the Package or directly the function, Class which will you use
  3. Then click on the Function, Method and Drag it on the right side into your editable Sources
  4. The Statement will be generated

Editor_Video_5.png

While you Drag the Method the Cursor will Changed into an + Sign

Editor_Video_5.png

The Sources inclusive the Returning Parameter are generated.

Navigation in the Repository Search Control

Over a long working day you navigate and analyze a lot of coding. Your Navigation root is saved into the Previous Tree and Next Tree Buttons.

This would help you to find quickly your used sources:

Using the Previous Tree:

Editor_Video_5.png

and the Next Tree Button:

Editor_Video_5.png

Navigation stack and Worklist

For your current session the SAP System will save your Navigation stack. This stack could be displayed with the Menu

Utilities > Display navigation window or by using the Keyboard-Functions (CTRL + Shift + F4 )

Editor_Video_5.png

Then the Navigation stack will be displayed at the bottom of your right Editor Control:

Editor_Video_5.png

With the left or right Button you could navigate in the stack, or if your navigation stack is too long then you could maybe select all items by (CTRL + A) and DELETE the Items. This is really helpful but when you shutdown your system the navigation stack will be deleted…

Is there an other Option – Yes use additionaly the Worklist ๐Ÿ™‚

Editor_Video_5.png

after Opening the Worklist in the Menu with Utilities > Worklist > Display :


Editor_Video_5.png

The great advantage of the Worklist is that the Items will be save permanent, and you have in the Comment Column the Option to comment some analysis Findings. Or Todo Notifications… Ok it is not comparable as the Mylyn Eclipse TODO Plugin, but it helped me a lot to organize my daily programming work!

  My experience is..

Try every Hint that could you speed up in programming. Some Tips work for you and some doesn´t.

It´s up to you to become familiar with every Option, that would help you to master your editor.

Try out the Tips. Look if it speed up your work.

Your experience is?

What is your experience with using the above Tips?

What was good and what could be implemented better?

Have you something diffrent that works for you?

  Further Information

Blogs in this Series:

/wp-content/uploads/2014/06/icon_8324_484382.png Summary


This Series ends with this Blog. I hope that you find some at least interesting stuff.

If you have others and also useful Tips so dont hesitate and post a comment!


Cheers, Damir ๐Ÿ˜‰


To report this post you need to login first.

6 Comments

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

  1. Manish Kumar

    About autocompletion, I type Ctrl Space to show the list, and then Enter or Shift Enter work fine to fill the pattern.

    I also enabled ‘suggest non-keywords from the text’ option in New ABAP Editor settings.

    Doing this lets me use local autocomplete for variable names.

    (0) 
    1. Damir Majer Post author

      Hi Manish,

      yes of course this is the setting that enables it for your own written statements.

      Thanks for this important info!

      Best Regards,

      Damir

      (0) 
    1. Damir Majer Post author

      Hi Jürgen,

      thanks for the flowers ๐Ÿ™‚

      yes, the really cool features are sometimes concealed…

      Regards,

      Damir

      (0) 
  2. Phillip Morgan

    Thank you for this series!

    If I had one wish, it would be to have shortcut keys to manage the worklist. I have mine always open (there is a setting for that) and use the comment column a lot.

    You can also drag and drop from the left navigation tree!

    (0) 

Leave a Reply