Category > Tips & tricks

Reconstants

images/thumbnail.jpg - Thumbnail

In my current project constants are all over the place, with confusing or wrong names. It’s a mess. I’ve found a way to reorganize and rearrange the constants so that the new code can use pretty constants without messing up the old code, which can continue to use the confusing ones.

We finally have FINAL

images/thumbnail.jpg - Thumbnail

There’s nothing worse than seeing people abusing variables. They’re so delicate and yet so badly treated, poor things. Here’s a way to show them some love.

How do you like your blank lines?

images/thumbnail.png - Thumbnail

Everyone uses blank lines to better organize their code. But where to use them and how many? Let’s talk about that.

In Eclipse ADT you can open an object in another client

images/thumbnail.jpg - Thumbnail

Historically, it has always been impossible to jump from one SAP system to another without losing context. Now it’s possible.

Eclipse ADT Data browser is much better than SE16N

images/thumbnail.jpg - Thumbnail

The tools that SAP provides for viewing the contents of database tables have always been very sketchy.

In Eclipse ADT you can always undo

images/thumbnail.jpg - Thumbnail

They say: Don’t go back to where you were once happy. But the truth is that in many cases, if you could go back, you would.

Eclipse ADT has lots and lots of keyboard shortcuts

images/thumbnail.jpg - Thumbnail

I like keyboard shortcuts. If I could do my job without taking my hands off my keyboard I’d be an even happier programmer.

In Eclipse ADT you can share links to your code

images/thumbnail.jpg - Thumbnail

Until recently, ABAP has never been one for big collaborations.

Eclipse ADT puts ABAP Doc to good use

images/thumbnail.jpg - Thumbnail

ABAP Doc is an excellent way of integrating documentation into the code.

The magical F2 in Eclipse ADT

images/thumbnail.jpg - Thumbnail

Eclipse ADT calls it Code element information.

Use BASE to not ruin what you already have

images/thumbnail.png - Thumbnail

We used to use the APPEND and INSERT commands to add rows to internal tables. Now that ABAP has grown, we can use VALUE, REDUCE, CORRESPONDING, etc. But what if the internal table already has rows and we don’t want to lose them?

INNER JOIN instead of FOR ALL ENTRIES

images/thumbnail.png - Thumbnail

A while ago I showed you that you could SELECT from an internal table. And then I asked myself: if that is possible, shouldn’t INNER JOIN be possible too?

Copy from SAPGui to the clipboard

images/thumbnail.png - Thumbnail

Did you know that your ABAP programme can copy content to your operating system’s clipboard?

SELECTing from an internal table

images/thumbnail.jpg - Thumbnail

Now you can SELECT from an internal table.

SELECT SINGLE vs SELECT UP TO 1 ROWS

images/thumbnail.jpg - Thumbnail

Man, this is one of those endless discussions that will never get anywhere. Ditto trying to decide if you deserve to go on living if you put pineapple on your pizza or Philadelphia cheese on your sushi.