Supported by
Supported by Inetum

Create templates in SE80 by dragging stuff into the code

images/thumbnail.jpg - Thumbnail

While coding, it’s always good to have ways to speed up what we’re doing. A good one is automatic generation of templates for function and method calls.

I know 3 ways to achieve this.

The more classic one is to use the “Pattern” button in the toolbar. It lets you choose a function/method/etc, and SAP will inject in your code the template of the desired call. Then you just need to complete it with your variables and that’s it.

Another, more sophisticated way, is by using the keyboard shortcut CTRL-SPACE, and this was already explained here.

The third one only works in SE80. When you have the desired method (or whatever) on the left pane tree, just drag it into the desired point in your code and the ABAP Workbench will automatically generate a template for it.

In this screen capture you can see an example where I first dragged and dropped method CONSTRUCTOR and then method GET_COLUMN, both from class CL_SALV_COLUMNS:


Greetings from Abapinho.