Etiqueta > SAPgui
Supported by

Source-code based class development

Being used to develop in Java and C++, the way transaction SE24 forces you to navigate between each of its parts and the fact that every method has its own include was very confusing to me when I first started using it. Why does SAP always have to make things so complicated? I eventually got used to it.

At some point in time SE24 introduced the option “source-code based” which shows the class and all its methods in a single text. But for some reason I never felt comfortable using it.


Today I think I know why. Because I didn’t know of any form of navigation which would allow me to directly jump to a method’s definition or implementation.

But it is there. Just press CTRL-F5 (or the equivalent toolbar button) and you’ll get this popup:


Now we’re talking. I finally can starting to do source-code based development in ABAP.

And so that it becomes a habit, you can change the ABAP Workbench settings to make this the default mode.

Greetings from Abapinho.

Jump to your last change

Imagine that you’re editing one of those ancient programs with thousands of lines (yes because today you know that it’s wrong not to modularize (it’s a sin really) your methods (yes because today you always use methods) don’t have more than 200 lines).

So there you are, editing a line somewhere in the middle on all that code when (because you’re not getting younger) the name of a variable you need completely vanishes from your memory. You have no alternative but to press HOME to go to the top of the program where all the variables are declared (yes because whoever made this program didn’t modularize yet but was a very tidy person).

And then you forget the line number of the change you were making. And there you go PAGE DOWNing your way through all that code trying to find your line again.

It’s either that or…

Ler o resto do artigo! »

Disable value history for a single field

SapGUI usually keeps a history of the last values entered on each field. This is usually a good thing. But you may very well not want it to happen (in case you’re entering pornographic values in a specific field for example). You could always turn it off globally in the SapGUI settings.

But what if you just want to disable it in one particular field? Abapinho tells you how to do it.

Ler o resto do artigo! »


Class CL_GUI_FRONTEND_SERVICES is commonly used to upload and download files from and to the user’s local computer. But it can do many more good things. For example:

Ler o resto do artigo! »

SAP can take selfies!

I just found out that SAP can take selfies. I still don’t see why one would need it. But that’s understandable because I never really understood the need for selfies anyway.

Here’s how SAP can take a selfie:

Ler o resto do artigo! »

Is the GUI available?

To check if a program is running in background usually one takes a peek at SY-BATCH. SY-BINPT can also be used to check if the background program is a BDC session. You usually check one of these.

There is a similar but not exactly equal question, though. How do you ask if the GUI is available? Most times both questions will have the same answer. But not always.

It’s like saying the Sun can be seen during the day while the Moon can be seen during the night. If the sky is cloudy you won’t be seeing them.

Ler o resto do artigo! »

How to avoid timeout when running a program

Usually SAP systems have a predefined time limit for running a program interactively. If the program takes longer to run than that you’ll get a runtime execution error. A dump.

Ler o resto do artigo! »

Shortcuts for making small and big letters

You may not even know how to program but if you’re able to type fast and know enough keyboard shortcuts everyone will think you’re an expert.

In the ABAP editor write the following word: subdermatoglyphic

Now try the following shortcuts:

CTRL+L: subdermatoglyphic small letters! lower case!
CTRL+J: Subdermatoglyphic The First Letter Of Each Word In Upper case!

Thank you José Vília for the tip.

Thank you Chris for the photo.

Greetings from Abapinho.

Multiple OR selections in SE16N

If you are one of those persons who still uses SE16, this article is not for you. If you keep reading, you might find yet another reason to finally start using SE16N (as if all others were not enough already).

Imagine that you want to select all materials whose name contains “PREGO” and whose type is “FERRAGENS”, and all materials whose name contains “GUARDANAPO” and whose type is “COMIDA”. In other words, “PREGO_NO_PAO” or “GUARDANAPO_PAPEL” won’t be part of the result set. What you want is this:


As you know, using SE16N in a regular way (which doesn’t use what I’m about to show you) you would need to execute it twice and manually compare data, because the selection screen does not allow you to make multiple OR selections.

Or does it?

Ler o resto do artigo! »

Write in multiple lines at the same time

The ABAP editor has many curious functionalities.
You can even write in multiple lines at the same time.

Ler o resto do artigo! »

Block indent

To indent a block of lines do the following:

Ler o resto do artigo! »

Clearing the buffers of an SAP session

I keep learning new transaction commands. Today I learned some which solve a problem which, although rarely, has happened to me in the past.

Did this happen to you? You make a change to a text of a data element you’re using in a table to be edited through SM30. But when you go and edit that table in SM30 the old text is still there. You activate objects, close windows, open windows, no matter what you do, the new text is not shown.

Ler o resto do artigo! »

Automatic model just using CTRL-SPACE

Of course you already know the “Model” button in the ABAP editor that allows you to automatically add models for function modules, calls for methods and others.

The new editor has now grown a bit (it’s now only 10 years behind Eclipse instead of 20) and it allows you to automatically complete some commands through the CTRL-SPACE shortcut.

Ler o resto do artigo! »

Put it between parentheses

Sweet little trick: when in SE38 you need to surround a word or expression with () or [] or ‘’, just select it and press ( or [ or ‘ and it immediately becomes (it) or [it] or ‘it’.

Thank you Sérgio Fraga for the tip.

Contemplating the package

You are looking at a class in SE24, a table in SE11 or a program in SE80. Now you want to see the package of this object and its content. Until recently, I would do this: first I would look in the object’s characteristics to see its package, then open a new session, go to SE80 and write the package there.

Now I’ve learned a much easier way.

Ler o resto do artigo! »

About Abapinho
Abapinho runs on WordPress
Articles (RSS) e Comments (RSS).