"
Etiqueta > SAPgui
Supported by

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

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+U: SUBDERMATOGLYPHIC BIG LETTERS! UPPER CASE!
CTRL+L: subdermatoglyphic small letters! lower case!
CTRL+J: Subdermatoglyphic The First Letter Of Each Word In Upper case!
CTRL+K: sUBDERMATOGLYPHIC tHe BiG aRe NoW sMaLl AnD tHe SmAlL ArE nOw BiG!

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:

(MATNR = “PREGO%” AND MTART = “FERR” ) OR (MATNR = “GUARDANAPO%” AND MAKT = “COMI” )

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! »

SE16N’s technical view

Hi. How’ve you been? How’s life? All cool? This tip is so simple that if we don’t talk for a while it will all end too quickly. The sun is shinning. It rained in the morning but now it stopped.

Moving on.

Every time I see someone still using SE16 I wonder why, since SE16N is so much better and already exists for so long. But this is not the tip.

The tip is that in SE16N you can turn a technical view on which, besides the field’s technical name, gives you more useful information on the field.

Before:

se16n_vista_tecnica_desligada

You can find it under the “Extras” menu:

se16n_vista_tecnica

After:

se16n_vista_tecnica_ligada

Thank you Sérgio Fraga for the tip.

And thank you OZinOH for the photo.

Greetings from Abapinho.

0 is Private, 1 is Protected, 2 is Public

Simple tip to speed up entering data in (some) fields.
Ler o resto do artigo! »


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